Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v160416: Undefined class constant ‘CACHE_PATH_NO_SCHEME’ #739

Closed
raamdev opened this issue Apr 17, 2016 · 3 comments
Closed

v160416: Undefined class constant ‘CACHE_PATH_NO_SCHEME’ #739

raamdev opened this issue Apr 17, 2016 · 3 comments
Milestone

Comments

@raamdev
Copy link
Contributor

@raamdev raamdev commented Apr 17, 2016

When Comet Cache Feed Caching is enabled (Comet Cache → Plugin Options → RSS, RDF, and Atom Feeds), a fatal error is produced whenever the cache is cleared (reproduced with Comet Cache Lite v160416):

PHP Fatal error:  Undefined class constant 'CACHE_PATH_NO_SCHEME' in /home/www/wordpress/wp-content/plugins/comet-cache/src/includes/classes/FeedUtils.php on line 232
PHP Stack trace:
PHP   1. {main}() /home/www/wordpress/wp-admin/post.php:0
PHP   2. edit_post() /home/www/wordpress/wp-admin/post.php:193
PHP   3. wp_update_post() /home/www/wordpress/wp-admin/includes/post.php:369
PHP   4. wp_insert_post() /home/www/wordpress/wp-includes/post.php:3602
PHP   5. clean_post_cache() /home/www/wordpress/wp-includes/post.php:3426
PHP   6. do_action() /home/www/wordpress/wp-includes/post.php:5661
PHP   7. call_user_func_array() /home/www/wordpress/wp-includes/plugin.php:525
PHP   8. WebSharks\CometCache\Classes\Plugin->autoClearPostCache() /home/www/wordpress/wp-includes/plugin.php:525
PHP   9. WebSharks\CometCache\Classes\Plugin->autoClearXmlFeedsCache() /home/www/wordpress/wp-content/plugins/comet-cache/src/includes/traits/Plugin/WcpPostUtils.php:95
PHP  10. WebSharks\CometCache\Classes\FeedUtils->convertVariationsToHostCachePathRegexFrags() /home/www/wordpress/wp-content/plugins/comet-cache/src/includes/traits/Plugin/WcpFeedUtils.php:105

This issue appears to be that FeedsUtil extends AbsBase, which itself does not extend AbsBaseAp, which is where the CachePathConsts interface is implemented.

So, it appears that FeedsUtil should extend AbsBaseAp instead of AbsBase.


This is a high-priority issue and I'll be pushing a maintenance release shortly to fix this issue. In the meantime, I recommend disabling Comet Cache Feed Caching (Comet Cache → Plugin Options → RSS, RDF, and Atom Feeds) to work around this issue.

@raamdev
Copy link
Contributor Author

@raamdev raamdev commented Apr 17, 2016

Next Release Changelog:

  • Bug Fix: Fixed a "PHP Fatal error: Undefined class constant ‘CACHE_PATH_NO_SCHEME’" with introduced by the previous release (v160416). This issue only affected sites where Feed Caching was enabled (Comet Cache → Plugin Options → RSS, RDF, and Atom Feeds). Props MassimoD and @emanwebdev for reporting. See Issue #739.
@raamdev raamdev closed this Apr 17, 2016
@raamdev raamdev added this to the v160417 milestone Apr 17, 2016
@raamdev
Copy link
Contributor Author

@raamdev raamdev commented Apr 17, 2016

Comet Cache v160417 has been released and includes changes from this GitHub Issue. See the v160417 announcement for further details.


This issue will now be locked to further updates. If you have something to add related to this GitHub Issue, please open a new GitHub Issue and reference this one (#739).

@wpsharks wpsharks locked and limited conversation to collaborators Apr 17, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant