Archived topic
GeneratePress 3.0 conflict with H5P Plugin
8 replies · Started by Silko on October 7, 2020
Hello Guys,
I want to report a conflict with the new version of the theme and this plugin: https://de.wordpress.org/plugins/h5p/
The shortcodes from the H5P plugin do not work after the update. There is no output and only a blank white screen. After a rollback everything is working great again.
Example: https://www.thailernen.net/lektion-1/#Memory_spielen (the memory game) Shortcodes look like this: [h5p id="8"]
After update to 3.0 the shortcodes do not work anymore.
Best regards,
Silko
Hi there,
Where is the shortcode being used? In the content area?
Do you have any recent errors in your error_log file on your server?
Hi Tom,
unfortunately the hosting provide does not log php errors by default. I will try to figure out how to do it. Yes the shortcodes are used in the content area.
This should help: https://wordpress.org/support/article/debugging-in-wordpress/
Specifically, WP_DEBUG set to true, and WP_DEBUG_LOG set to true.
Update: I used a code like this in the .htaccess:
php_flag log_errors on
php_value error_log "/www/htdocs/1234567/my.domain.net/logs/error.log"
Made the update again, used a fresh browser and loaded several pages. No errors.
This should help: https://wordpress.org/support/article/debugging-in-wordpress/
Specifically, WP_DEBUG set to true, and WP_DEBUG_LOG set to true.
Same. No errors. Just no shortcode output.
Very strange - is there any way we can see the issue? Maybe on a staging site?
Nothing content-related changed in the theme, the content itself is handled by WordPress 100%.
I made some tests. The problem is connected with the Autoptimize-Plugin. When I disable "Optimize JavaScript" than I get the shortcode output via the h5p-Plugin. But I still dont understand how this is connected with the new theme version.
If you want to investigate this just please let me know.
It's likely not connected with the theme, as the theme isn't doing anything extreme with javascript (we don't even load jQuery).
It's possible that the plugin requires jQuery and you're this option: https://wpshowposts.com/support/topic/carousel-doesnn-show/#post-19200
The same issue exists with our WPSP plugin shortcode.