@coolearth Can you please install the newly updated Development Version (1.9.4-beta) and let me know if that clears the error?
You’ll need to deactivate and delete your current version, then install this one using Plugins > Add New > Upload
@kevinb ,
I can confirm that this version no longer throws the fatal error.
Thank you for the quick response.
@coolearth Thanks for letting us know. We’ll update the production release soon.
@coolearth PublishPress Capabilities 1.9.4 is now released to fix this bug.
The error depended on a server configuration variable present in only a small percentage of installations.
@kevinb Excellent responses.
Many thanks and all the very best from Cool Earth at this demanding time.
@kevinb Sorry, I spoke too soon.
While this fixed has worked on our dev server, the problem remains after pushing 1.9.4 to our live server.
WordPress version 5.4
Current theme: Cool Earth (version 1.1.1)
Current plugin: PublishPress Capabilities (version 1.9.4)
PHP version 7.2.24-0ubuntu0.18.04.3
Error Details
=============
An error of type E_ERROR was caused in line 61 of the file /.../src/wp-content/plugins/capability-manager-enhanced/vendor/publishpress/wordpress-version-notices/src/Template/TemplateLoader.php. Error message: Uncaught PPVersionNotices\Template\TemplateNotFoundException: Template file not found in /.../src/wp-content/plugins/capability-manager-enhanced/vendor/publishpress/wordpress-version-notices/src/Template/TemplateLoader.php:61
Stack trace:
#0 /.../src/wp-content/plugins/capability-manager-enhanced/vendor/publishpress/wordpress-version-notices/src/Template/TemplateLoader.php(90): PPVersionNotices\Template\TemplateLoader->load('top-notice', 'notice', Array, false)
#1 /.../src/wp-content/plugins/capability-manager-enhanced/vendor/publishpress/wordpress-version-notices/src/Module/TopNotice/Module.php(86): PPVersionNotices\Template\TemplateLoader->displayOutput('top-notice', 'notice', Array)
#2 /.../src/wp-includes/class-wp-hook.php(287): PPVersionNotices\Module\TopNotice\Module->display('You're using Pu...', 'https://publish...')
#3 /.../src/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('
-
This reply was modified 6 years, 2 months ago by
coolearth.
-
This reply was modified 6 years, 2 months ago by
coolearth.
@coolearth Can you please confirm that version 1.9.5 resolves the error on that site?
@kevinb Actually worse, could not access the wp-admin dashboard.
[Tue Apr 07 07:45:00.349107 2020] [proxy_fcgi:error] [pid 27035:tid 139970106820352] [client 162.158.155.86:14526] AH01071: Got error 'PHP message: PHP Warning: require_once(/.../src/wp-content/plugins/capability-manager-enhanced/includes/CoreAdmin.php): failed to open stream: No such file or directory in /.../src/wp-content/plugins/capability-manager-enhanced/capsman-enhanced.php on line 131\nPHP message: PHP Fatal error: require_once(): Failed opening required '/.../src/wp-content/plugins/capability-manager-enhanced/includes/CoreAdmin.php' (include_path='.:/usr/share/php') in /.../src/wp-content/plugins/capability-manager-enhanced/capsman-enhanced.php on line 131\n', referer: https://www.coolearth.org/wp-admin/...
-
This reply was modified 6 years, 2 months ago by
coolearth.
-
This reply was modified 6 years, 2 months ago by
coolearth.
@coolearth Can you use FTP or a site manager to take a look at your installation and see if the reported file exists?
…/src/wp-content/plugins/capability-manager-enhanced/includes/CoreAdmin.php
It seems like you must have a permissions or file transfer error on that site because the file clearly exists in the plugin zip:
https://plugins.trac.ww.wp.xz.cn/browser/capability-manager-enhanced/trunk/includes
You may need to delete the capability-manager-enhanced plugin folder and re-install.
@kevinb
You were correct in that the permissions appear to have been the issue. Once again, i’ll confirm its working… On production this time! π
Many thanks again.
@coolearth I’m glad to hear you’re back in production. Thanks for following up.