• This PHP Warning appears in PHP Error Log with plugin version 1.4.0

    PHP Warning: Use of undefined constant CE_SETTINGS_PATH - assumed 'CE_SETTINGS_PATH' (this will throw an Error in a future version of PHP) in ../wp-content/plugins/cache-enabler/inc/cache_enabler_disk.class.php on line 572

    The constant is not defined anywhere in plugin code as far as I can see.

    Rolling back to one of the 1.3.5 versions from 24th of July resolves the problem here.

    Would suggest to test with WP_DEBUG enabled before release.

    A quick Google search shows also at least another site having the same problem and it seems that site is currently down due to this problem and their setting of PHP Error output.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author KeyCDN

    (@keycdn)

    This has been fixed in 1.4.1.

    Thread Starter Ov3rfly

    (@ov3rfly)

    Rolled back to an earlier version, no time to keep up with this now…

    Please provide a proper changelog, thanks.

    Anonymous User 16850768

    (@anonymized-16850768)

    This issue is resolved. You can find the Cache Enabler changelog in the Development section. Please check out our GitHub commit log for more information. With my commits I do my best to include what changes were made, how it was done, and most importantly why the change was introduced.

    Let me explain the unfortunate accident that occurred in version 1.4.0. In PR #96 the CE_SETTINGS_PATH constant was added. However, in 15b6842 it was accidentally removed. This led to the undefined constant warning in version 1.4.0. This would have only caused an issue with the advanced cache settings file, nothing else. This change was quickly reverted in ee4fc44 and released in version 1.4.1.

    Feel free to open a new topic at any time if you’re in need of additional assistance or have more feedback to share.

    Thread Starter Ov3rfly

    (@ov3rfly)

    .. find the Cache Enabler changelog in the Development section. ..

    It says 1.4.1 Fix minor bugs, that’s not a proper changelog. This is the www.remarpro.com plugin repository, no regular user reads a GitHub commit log.

    .. This would have only caused an issue with the advanced cache settings file, nothing else. ..

    This bug caused two different warnings:

    Warning: Use of undefined constant CE_SETTINGS_PATH - assumed 'CE_SETTINGS_PATH' (this will throw an Error in a future version of PHP) in .../wp-content/plugins/cache-enabler/inc/cache_enabler_disk.class.php on line 572

    Warning: Use of undefined constant CE_SETTINGS_PATH - assumed 'CE_SETTINGS_PATH' (this will throw an Error in a future version of PHP) in .../wp-content/advanced-cache.php on line 31

    These warnings are now shown in frontend of various sites.

    They also crashed a number of sites completely, those show gzip raw data now, screenshot: https://imgur.com/HOwXVDU

    Settings files have been written to root folder of WordPress.

    I have assisted some broken sites to get back up during the day but several are still down or defaced with the warnings. You can find examples via searches for the CE_SETTINGS_PATH constant name with optional additional keywords, a Google example has been given in my initial bug report.

    Thread Starter Ov3rfly

    (@ov3rfly)

    Stop marking this problem as resolved as long as there is even one site out there that is defaced or completely offline due to this bug..

    ..and currently there are many sites!

    It would be your responsibility to search for and fix all these sites, did you even try?

    Plugin Author KeyCDN

    (@keycdn)

    The issue on impacted sites gets fixed as soon as the plugin gets updated automatically or manually.

    Thread Starter Ov3rfly

    (@ov3rfly)

    Error: Cookies are blocked due to unexpected output. For help, please see this documentation or try the support forums.

    That’s what people on impacted sites get when they try to login and update 1.4.0 manually, screenshot: https://imgur.com/ZM2tNrH

    Reason is described here.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘PHP Warning: Use of undefined constant CE_SETTINGS_PATH …’ is closed to new replies.