Closed dmalshin closed 7 years ago
Note: The plugin is not yet compatible with WordPress 4.7.
That being said, this error should not be happening on 4.7 or any previous version.
The (attempted) exception being thrown is:
Plugin dir is not inside of the
wp-content
directory
It seems that the plugin is having a hard time locating itself on your Windows filesystem.
As well. I can't activate it. Looke like this plugin does not have support for symlinks. Also, is not a good method to extend a class like this:
class Exception extends \Exception {}
IMHO, something like this this is better:
class DoException extends \Exception {}
I would love to see this fixed. Should I do a contribution?
@Smartik89 the name of the exception is fine and is as intended, since it is being namespaced. Please do open a PR with a fix for the symlink issue.
I have the same issue on Linux:
[15-Jul-2017 13:34:30 UTC] PHP Fatal error: Uncaught Error: Class 'CustomizeSnapshots\Exception' not found in /.../wp-content/plugins/customize-snapshots/php/class-plugin-base.php:152
Stack trace:
#0 /.../wp-content/plugins/customize-snapshots/php/class-plugin-base.php(71): CustomizeSnapshots\Plugin_Base->locate_plugin()
#1 /.../wp-content/plugins/customize-snapshots/php/class-plugin.php(56): CustomizeSnapshots\Plugin_Base->__construct()
#2 /.../wp-content/plugins/customize-snapshots/instance.php(15): CustomizeSnapshots\Plugin->__construct()
#3 /.../wp-content/plugins/customize-snapshots/customize-snapshots.php(33): require_once('...')
#4 /.../wp-admin/includes/plugin.php(1882): include('...')
#5 /.../wp-admin/plugins.php(164): plugin_sandbox_scrape('customize-snaps...')
#6 {main}
thrown in /.../plugins/customize-snapshots/php/class-plugin-base.php on line 152
Not a PHP expert at all but a quick search suggests this.
Please test fix in #139.
You can go ahead with the merge, confirmed. Thank you.
Can't activate the plugin due to a fatal error. Tested on two different websites, on WP 4.7 and on the previous WP version.