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

Fatal Error when updating to v150709 (Lite) #524

Closed
raamdev opened this issue Jul 11, 2015 · 5 comments

Comments

@raamdev
Copy link
Contributor

commented Jul 11, 2015

Steps to reproduce this bug

  1. Install ZenCache Lite v150626
  2. Enable ZenCache
  3. Update ZenCache to the latest version (v150709) via Dashboard → Plugins.

Expected Behavior

ZenCache updates and reactivates.

Observed Behavior

2015-07-10_22-59-21

Support threads referencing this issue

@raamdev raamdev added bug lite labels Jul 11, 2015

@raamdev

This comment has been minimized.

Copy link
Contributor Author

commented Jul 11, 2015

Temporary Workaround

  1. Edit your wp-config.php file and remove the line that says define('WP_CACHE', TRUE);
  2. Visit ZenCache → Plugin Options → Enable/Disable and Disable ZenCache (then Save Changes at the bottom)
  3. Enable ZenCache (ZenCache → Plugin Options → Enable/Disable)

The issue is that ZenCache is failing to update your advanced-cache.php file upon updating. The process above will cause ZenCache to properly update advanced-cache.php. We'll have this fixed in the next release of ZenCache.

@raamdev

This comment has been minimized.

Copy link
Contributor Author

commented Jul 13, 2015

@jaswsinc writes...

It looks to me like this could be happening to people that upgraded to the last release. Remember, whenever they perform an upgrade, they are currently running this copy of advanced-cache.php.
See: https://github.com/websharks/zencache/blob/150626/src/includes/templates/advanced-cache.txt#L24

So their existing copy of advanced-cache.php is expecting to find files that are no longer present in the follow-up release, which was a reversion back to the old structure. This is the same sort of issue that we had to consider whenever we worked on the restructured copy. I ended up providing the share.php file as a filler in the restructured copy, only to help others avoid this error during the upgrade. https://github.com/websharks/zencache/tree/150626/includes

All of that said. This should only impact site owners who are running in WP_DEBUG mode. See: https://github.com/websharks/zencache/blob/150626/src/includes/templates/advanced-cache.txt#L24

@raamdev

This comment has been minimized.

Copy link
Contributor Author

commented Jul 13, 2015

I have confirmed this issue only affects sites who have WB_DEBUG enabled. If you don't have WP_DEBUG enabled, you don't see any fatal error and ZenCache automatically updates advanced-cache.php with the correct copy from the latest release.

@raamdev

This comment has been minimized.

Copy link
Contributor Author

commented Jul 14, 2015

Next release changelog:

  • Bug Fix: Fixed a Fatal Error when upgrading from v150629 to the latest version of ZenCache. This fatal error only occurred on sites that had WP_DEBUG enabled, at which point ZenCache failed to properly update advanced-cache.php. When WP_DEBUG was disabled, the new version of ZenCache was able to properly update advanced-cache.php and therefore the temporary failure was silent and inconsequential. This bug fix ensures that no fatal error will be produced when upgrading from v150629, even if WP_DEBUG is enabled. See Issue #524.

@raamdev raamdev closed this Jul 14, 2015

@raamdev

This comment has been minimized.

Copy link
Contributor Author

commented Jul 18, 2015

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 (#524).

@wpsharks wpsharks locked and limited conversation to collaborators Jul 18, 2015

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
1 participant
You can’t perform that action at this time.