Hi, we’re using the Molongui Authorship plugin on our site as that is the one you have recommended. Overall it is working, but when an author’s byline is clicked to go to the Author archive page, the site crashes with a critical error. The site’s error log shows:
Thu Aug 29 10:52:34.713871 2024
[proxy_fcgi:error [pid 1114142:tid 1114214 [client 108.53.178.178:0 AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught Error: Class “td_util” not found in /home/880971.cloudwaysapps.com/pjkwkavkqf/public_…………cludes/plugin.php(517): WP_Hook->do_action()\n#5 /home/880971.cloudwaysapps.com/pjkwkavkqf/public_html/wp-admin/admin.php(259): do_action()\n#6 {main}\n thrown i…’, referer: https://devsite.rethinking65.com/wp-admin/admin.php?page=td_theme_plugins
Is there any way this can be corrected? We are using the absolute latest version of the theme (12.6.7) and this is happening with all plugins except the TagDiv ones disabled.
Hello!
Make sure your WordPress and PHP version is up to date.
Please check the settings and also our requirements: https://forum.tagdiv.com/requirements-for-newspaper/
Check this article too: https://support.cloudways.com/en/articles/5127209-restrict-direct-access-to-wordpress-php-files
Hope that helps you!
Thank you!
Thank you, Bettina. WordPress is up to date and we have been using this theme for over four years now on the same installation so I don’t think it’s a PHP or version issue, we meet all the requirements. As far as direct access to PHP files, not sure what you are suggesting, that we should enable it, or disable it? The problem occurs whether we are using our child theme or the primary Newspaper theme, so we were able to rule out any code in the child theme’s functions.php file.
Same issue with 12.6.6. Here is the error when WP-DEBUG is enabled:
Warning: Trying to access array offset on value of type bool in /home/880971.cloudwaysapps.com/pjkwkavkqf/public_html/wp-includes/post-template.php on line 324
Warning: Trying to access array offset on value of type bool in /home/880971.cloudwaysapps.com/pjkwkavkqf/public_html/wp-includes/post-template.php on line 324
Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /home/880971.cloudwaysapps.com/pjkwkavkqf/public_html/wp-includes/post-template.php:324 Stack trace: #0 /home/880971.cloudwaysapps.com/pjkwkavkqf/public_html/wp-includes/post-template.php(247): get_the_content() #1 /home/880971.cloudwaysapps.com/pjkwkavkqf/public_html/wp-content/plugins/td-cloud-library/wp_templates/tdb_view_author.php(23): the_content() #2 /home/880971.cloudwaysapps.com/pjkwkavkqf/public_html/wp-includes/template-loader.php(106): include(‘/home/880971.cl…’) #3 /home/880971.cloudwaysapps.com/pjkwkavkqf/public_html/wp-blog-header.php(19): require_once(‘/home/880971.cl…’) #4 /home/880971.cloudwaysapps.com/pjkwkavkqf/public_html/index.php(17): require(‘/home/880971.cl…’) #5 {main} thrown in /home/880971.cloudwaysapps.com/pjkwkavkqf/public_html/wp-includes/post-template.php on line 324
There has been a critical error on this website.
Learn more about troubleshooting WordPress.
Hello!
Check out this article: https://kinsta.com/knowledgebase/there-has-been-a-critical-error-on-your-website/
I hope that helps you!
Thank you!
Hi, Bettina. Thank you but that is just a generic post about critical errors and why they happen. The issue in this case is that your cloud templates are poorly coded, which has been documented by the developers of the Molongui Authorship plugin here:
https://www.molongui.com/help/tagdiv-cloud-library/
It might be helpful to refer folks to this info in your support forum whenever you suggest the Molongui plugin as an option for multiple authors, so they are aware that there are issues caused by your TagDiv Cloud Library. I have been in contact with the Molongui devs, who may be able to provide additional code to work around the issue, and I will be happy to share any info and/or code that results from this if it can benefit anyone else in my situation.