Open Rahe opened 2 years ago
php_error.log
below.Both in the Media Library in List View and the Media Detail Page there's a banner hint on top saying:
As BEA - Media Analytics plugin has been activated, the process of indexing contents will silently launch himself soon.
(Note: The correct English pronoun for software/computer/machine is "it" so "launch itself" would be correct)
That banner never goes a way. A look at php_error.log
shows it died with a fatal error:
[03-Feb-2023 19:50:28 UTC] PHP Warning: Undefined array key "file" in /my-document-root/wp-content/plugins/media-file-renamer/classes/rest.php on line 349
[03-Feb-2023 21:52:33 UTC] PHP Warning: The magic method BEA\Media_Analytics\Singleton::__wakeup() must have public visibility in /my-document-root/wp-content/plugins/bea-media-analytics/classes/singleton.php on line 59
[03-Feb-2023 21:53:49 UTC] PHP Fatal error: Uncaught Error: Non-static method BEA\Media_Analytics\Main::force_indexation() cannot be called statically in /my-document-root/wp-content/plugins/bea-media-analytics/classes/crons.php:44
Stack trace:
#0 /my-document-root/wp-includes/class-wp-hook.php(308): BEA\Media_Analytics\Crons->cron_force_indexation()
#1 /my-document-root/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#2 /my-document-root/wp-includes/plugin.php(565): WP_Hook->do_action()
#3 /my-document-root/wp-cron.php(188): do_action_ref_array()
#4 {main}
thrown in /my-document-root/wp-content/plugins/bea-media-analytics/classes/crons.php on line 44
Hi @porg
Thanks for commenting on the issue with your findings.
We are in the process of testing the plugin on the latest version of PHP and WordPress. In addition to the PHP8 compatibility issue you mentioned, there might be another issue with the parsing of images for posts saved via Gutenberg.
We are working on a new release to address all the issues.
Hi @petitphp,
glad to read that an update is in the works!
ā¦ might be another issue with the parsing of images for posts saved via Gutenberg.
- Yes media handling is a bit inconsistent in Wordpressā¦ I had different outcomes regarding media when inserting via classical editor vs. block editor (Gutenberg) vs. media library upload dialog, and also classical media detail page vs. newer media detail modal popup behave differently regarding editing metadata.
- Among other media bugs I had reported WordPress/gutenberg/issues/34149
- Adam Silverstein wrote that Gutenberg deals with media through the REST API which differs to the regular media uploader. He wrote this fix. Maybe this co-incidentially also helps your caseā¦? At least I wanted to mention it to you.
Test and release new version compatible with WP 6.0 if needed