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

Last version of comet cache generates an error #755

Closed
abiere opened this issue Apr 28, 2016 · 12 comments
Closed

Last version of comet cache generates an error #755

abiere opened this issue Apr 28, 2016 · 12 comments

Comments

@abiere
Copy link

abiere commented Apr 28, 2016

The last version of Comet Cache generates the following error:

Fatal error: Uncaught exception 'Exception' with message 'Undefined method/closure: `loadAcPlugins`.' in /home/axel/public_html/site/wp-content/plugins/comet-cache-pro/src/includes/classes/AbsBaseAp.php:57 

Stack trace: #0 /home/axel/public_html/site/wp-content/plugins/comet-cache-pro/src/includes/classes/AdvancedCache.php(57): WebSharks\CometCache\Pro\AbsBaseAp->__call('loadAcPlugins', Array) 
#1 /home/axel/public_html/site/wp-content/plugins/comet-cache-pro/src/includes/classes/AdvancedCache.php(57): WebSharks\CometCache\Pro\AdvancedCache->loadAcPlugins() 
#2 /home/axel/public_html/site/wp-content/advanced-cache.php(431): WebSharks\CometCache\Pro\AdvancedCache->__construct() 
#3 /home/axel/public_html/site/wp-settings.php(74): include('/home/axel/publ...') 
#4 /home/axel/public_html/site/wp-config.php(86): require_once('/home/axel/publ...') 
#5 /home/axel/public_html/site/wp-load.php(37): require_once('/home/axel/publ...') 
#6 /home/axel/public_html/site/wp-blog-header.php(13): require_once('/home/axel/publ...') 
#7 /home/axel/ in /home/axel/public_html/site/wp-content/plugins/comet-cache-pro/src/includes/classes/AbsBaseAp.php on line 57

I was only able to fix it by renaming the comet cache plugin directory. I have no clue how github etc works. Please let me know how to fix this.

@abiere
Copy link
Author

abiere commented Apr 28, 2016

After I renamed the comet cache plugin directory back to the original name and refreshed wp-admin I could activate the plugin again. It recompiled and seems to work again.

@raamdev
Copy link
Contributor

raamdev commented Apr 28, 2016

@abiere Thank you for the report. Do you remember which version of Comet Cache you were upgrading from? Was it v160417, v160416, or v160227?

@abiere
Copy link
Author

abiere commented Apr 28, 2016

I'm sorry, but I don't remember. I updated everything every month or so. Is there some way I can check this for you?

@raamdev
Copy link
Contributor

raamdev commented Apr 28, 2016

Is there some way I can check this for you?

Hmm, I'm afraid not. However, do you have an idea roughly how long ago you did the last update? v160417 and v160416 were released within the past 2 weeks, so if the last time you updated was earlier than that, you must've been running v160227.

@abiere
Copy link
Author

abiere commented Apr 28, 2016

It is a month or more since I've updated, so it must be v160227. There is no harm done. Everything works again. Scared me as hell, but I survived ;)

@raamdev
Copy link
Contributor

raamdev commented Apr 28, 2016

When it crashed, were you updating using the built-in Pro Plugin Updater, or were you upgrading in some other way?

@jaswrks
Copy link

jaswrks commented Apr 28, 2016

Fatal error: Uncaught exception 'Exception' with message 'Undefined method/closure: loadAcPlugins.' in /home/axel/public_html/site/wp-content/plugins/comet-cache-pro/src/includes/classes/AbsBaseAp.php:57

This looks like an issue with the OPcache to me. This exception had to have been thrown by the old version of the software as seen here on line 57 in v160227: https://github.com/websharks/comet-cache/blob/160227/src/includes/classes/AbsBaseAp.php#L57

Now look at these lines where the closures are loaded in the old version of the software. If those files no longer exist (e.g., if you upgraded to the latest release that doesn't come with those files), you will see the exception about a missing closure.

This can happen as a result of updating the plugin, but with a stale opcode cache; e.g., the old version of files that existed in both versions of the software are still in memory, but with missing dependencies that those old versions had, because the filesystem itself was updated, and no longer contains the .../closure files.

@raamdev
Copy link
Contributor

raamdev commented Apr 28, 2016

Related: #740

@abiere
Copy link
Author

abiere commented Apr 28, 2016

I was updating with the built in updater.

@jaswrks
Copy link

jaswrks commented Apr 28, 2016

I was updating with the built in updater.

Yeah, this is not your fault. Sorry for any confusion. I'm just seeing how we can avoid this in the future and I think Raam is too. The OPcache is something that works internally in a lot of PHP installations and if not properly flushed after an upgrade it can lead to this problem. Thanks for your patience.

@abiere
Copy link
Author

abiere commented Apr 28, 2016

No worries guys :) I was glad I was able to fix it with my nub skills ;) I will patiently await your magic to avoid panic with nubs like me ;) Keep up the good work!

@raamdev
Copy link
Contributor

raamdev commented Apr 28, 2016

@abiere Thanks again for the report. :-) I'm glad things are working now on your end but it's reports like this that help us improve the software for future releases, so I really appreciate it!

I'm going to close this issue in favor of #740, which should address the issue that you experienced here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants