Coder Social home page Coder Social logo

Comments (10)

samrueby avatar samrueby commented on June 12, 2024

Are you comfortable sharing a public URL of the issue?

from wordpress-linux-appservice.

rabollin avatar rabollin commented on June 12, 2024

@stevenhayles - Are you still facing this issue?

from wordpress-linux-appservice.

rabollin avatar rabollin commented on June 12, 2024

@stevenhayles -this issue is already fixed, can you confirm if we can close the issue.

from wordpress-linux-appservice.

stevenhayles avatar stevenhayles commented on June 12, 2024

@rabollin @samrueby apologies, I've not been paying attention. It is fixed, thanks.

from wordpress-linux-appservice.

stevenhayles avatar stevenhayles commented on June 12, 2024

Fixed

from wordpress-linux-appservice.

dlx-GH avatar dlx-GH commented on June 12, 2024

@stevenhayles .. Care to share what the issue was and the fix?
I'm seeing mostly the same thing.. Single images display in editor, but gallery images don't.

Fresh install, disabling both smush and w3tc plugins.. No difference.

All display on the front end ok

from wordpress-linux-appservice.

rabollin avatar rabollin commented on June 12, 2024

@dlx-GH - can you open a separate issue describing clearly what was your setup and what was the challenge being faced so that we can evaluate and fix it right. The above issue described was due to CDN not loading the files due to conflicts enforced by Alpine which might be completely different from yours.

from wordpress-linux-appservice.

TCLNA avatar TCLNA commented on June 12, 2024

Had this problem too and stumbled into this post. I'm going to try to explain the context and how I "fixed" it.

image

The issue in my case seems to be because the img has a relative src, which works in preview, but not in the editor.
It is verifyable by inspecting the html, the tag will look like <img src="/wp-content/....

I tried twice, once with the Azure CDN advanced option, once without.
While the procedure below works without the CDN, having this option enabled dooms you to have it absent of your editor, also if you follow through you might have images not working at all.
Please only follow this if you have checked-out the CDN option.
image

One possible escape if you still want the CDN, is to use Elementor editor, which seems to work.

I stumbled upon this config that could help change content urls to relative or absolute.
In the /var/www/wordpress/wp-config.php file, there is this line :

define('WP_CONTENT_URL', '/wp-content');`

This is because of the CDN option apparently.
You can access the config file by connecting to your server via the SSH tool embedded in the Azure dashboard.
image

cd /var/www/wordpress
nano wp-config.php

image

Set it to something like https://contoso.azurewebsites.net/wp-content, then reset your wordpress resource.

Hope that helps !

image

from wordpress-linux-appservice.

augustl avatar augustl commented on June 12, 2024

I also have this issue, on a managed Wordpress in Azure App Services. The steps outlined by @TCLNA fixes the issue for me also.

from wordpress-linux-appservice.

timblackburn avatar timblackburn commented on June 12, 2024

Having same problem with images broken in the block editor when CDN enabled.

from wordpress-linux-appservice.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.