iframe disappearing from page when saved
-
@p44 DUDE!!!
That worked like a charm!@humptydumpty You cannot imagine how many hours I lost to fix that problem. I was embedding an iframe from Calendly and I discovered issue.
But solution... no solution on the web, only with variuos workarounds, jumps, plugins, fixes on functions.php, and so on...
Casually, the same day I had another issue to solve: Wordpress "file editor" was disappeared from admin menu. I googled how to put editor back again. Solution was to change some value in wp-config.php (
define( 'DISALLOW_FILE_EDIT', true )to false).When I put hands in wp-config.php changing that value to enable again file editor, just a row after my eyes fell on
define( 'DISALLOW_UNFILTERED_HTML', true );... and there I understood that it could be the reason for the "cleaning" of the code.Like you, at beginning I could not explain this problem, I thought it was due to the latest Wordpress release and instead it was due to that value
define( 'DISALLOW_UNFILTERED_HTML', true );.Just a note: they were all fresh Wordpress install from Cloudron. I think the script adds that new rows to wp-config.php that before it does not add.
-
@humptydumpty You cannot imagine how many hours I lost to fix that problem. I was embedding an iframe from Calendly and I discovered issue.
But solution... no solution on the web, only with variuos workarounds, jumps, plugins, fixes on functions.php, and so on...
Casually, the same day I had another issue to solve: Wordpress "file editor" was disappeared from admin menu. I googled how to put editor back again. Solution was to change some value in wp-config.php (
define( 'DISALLOW_FILE_EDIT', true )to false).When I put hands in wp-config.php changing that value to enable again file editor, just a row after my eyes fell on
define( 'DISALLOW_UNFILTERED_HTML', true );... and there I understood that it could be the reason for the "cleaning" of the code.Like you, at beginning I could not explain this problem, I thought it was due to the latest Wordpress release and instead it was due to that value
define( 'DISALLOW_UNFILTERED_HTML', true );.Just a note: they were all fresh Wordpress install from Cloudron. I think the script adds that new rows to wp-config.php that before it does not add.
-
This change was added as part of https://forum.cloudron.io/topic/3520/disallow-unfiltered-html-in-wp-config-php . Currently, it's present only in the unmanaged WP as the default. Like many other things, it seems more security === breaks something.
@p44 thanks for the solution!
-
This change was added as part of https://forum.cloudron.io/topic/3520/disallow-unfiltered-html-in-wp-config-php . Currently, it's present only in the unmanaged WP as the default. Like many other things, it seems more security === breaks something.
@p44 thanks for the solution!
@girish I think it's fine to keep it as it is. I only embed iframes on 1 out of 4 WP installs that I have running so I can see the benefit of having it set like that by default.
I've never went through this before and had no idea what to look for after I ruled out any plugins/themes as being the culprit. It just left me scratching my head. It would be nice if you could add a mention of it in the docs though https://docs.cloudron.io/apps/wordpress-unmanaged/
-
@girish I think it's fine to keep it as it is. I only embed iframes on 1 out of 4 WP installs that I have running so I can see the benefit of having it set like that by default.
I've never went through this before and had no idea what to look for after I ruled out any plugins/themes as being the culprit. It just left me scratching my head. It would be nice if you could add a mention of it in the docs though https://docs.cloudron.io/apps/wordpress-unmanaged/
-
@humptydumpty Done

@girish The changes aren't showing up for me in a new private window. I'm guessing you need to clear the cache on your end?
https://docs.cloudron.io/apps/wordpress-unmanaged/
Unless I'm looking at the wrong page

-
@girish The changes aren't showing up for me in a new private window. I'm guessing you need to clear the cache on your end?
https://docs.cloudron.io/apps/wordpress-unmanaged/
Unless I'm looking at the wrong page

@humptydumpty https://docs.cloudron.io/apps/wordpress-developer/ is the correct page
-
@girish On the WP (managed) doc page --> Database Access --> ARI Adminer - if you follow the link it'll show that it has been closed for security issue. https://wordpress.org/plugins/ari-adminer/
As an alternative, if someone needs a GUI, I've used Adminer before and it works well but requires manual upload of the file as it's not a plugin and isn't specific to Wordpress. https://www.adminer.org/
-
@humptydumpty https://docs.cloudron.io/apps/wordpress-developer/ is the correct page
@girish Cool, thanks. It loads the "unmanaged" version in the left sub-menu if I browse to the link directly even though it's opened in a private window so if I'm not mistaken, it shouldn't be a browser cache issue on my end.

-
@girish Cool, thanks. It loads the "unmanaged" version in the left sub-menu if I browse to the link directly even though it's opened in a private window so if I'm not mistaken, it shouldn't be a browser cache issue on my end.

Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login