cristian.spiescu
Forum Replies Created
-
Forum: Plugins
In reply to: [Media Cleaner: Clean your WordPress!] Media > Cleaner page is emptyThanks for your reply!
Right as we speak I play w/ docker. I will try to create a new “home” for our server. And maybe thanks to docker, this will be more robust as years go by and PHP versions evolve.
Forum: Plugins
In reply to: [Media Cleaner: Clean your WordPress!] Media > Cleaner page is emptyThanks a lot for your reply!
This is the list of installed plugins. I have just deactivated (but not deleted) all except “media-cleaner”. And had the same result. Does it matter if the plugins are still there, even if they are deactivated?
akismet authldap better-search-replace clipboard-images-premium duplicate-post easy-bootstrap-shortcodes easy-theme-and-plugin-upgrades enlighter index.php media-cleaner post-types-order rest-api restricted-site-access syntaxhighlighter taxonomy-terms-order tinymce-code-element wordpress-html5-shower-presentation.git wp-add-mime-types wp-updates-acknowledger-pluginUPDATE: looking at
/var/log/apache2/error.log, I notice:[Mon Mar 23 08:45:33 2020] [error] [client 192.168.100.201] PHP Parse error: syntax error, unexpected '[' in /data/wordpress/wp-content/plugins/media-cleaner/views/menu-screen.php on line 16,This kind of error: I’ve seen quite often lately, while trying to install various plugins. “Unexpected [“. I thought maybe it comes from the fact that I have PHP 5.3? I tried w/o success to upgrade to 5.6. Will try again this week to reinstall in a Docker container, that will hopefully make my life easier when dealing w/ deps.
It’s been a long time since I’ve written code in PHP. But looking at line 16, I don’t see new syntax or so, that would maybe not be supported by older PHP.
Best regards,
Cristian- This reply was modified 6 years ago by cristian.spiescu.
Forum: Fixing WordPress
In reply to: Embed a WordPress in an external site (with IFrame)Thank you catacaustic,
I started digging based on your suggestion. Apparently every template from a theme includes get_header(), get_footer(); and besides this, themes have theme specific ways of including sidebars.
I used a child theme. However, I did not override the template (which would have meant copying/pasting. I have inserted a JS that hides the blocks that don’t interest me.
Best regards,
Cristian.