angay9 / rcp-file-protector

File Protector Plugin For Restrict Content Pro
https://andriy.space
GNU General Public License v3.0
1 stars 1 forks source link

Fatal errors due to lowercase directory names #1

Open ashleyfae opened 4 years ago

ashleyfae commented 4 years ago

I get this fatal error when activating the plugin:

PHP Fatal error:  require_once(): Failed opening required '/var/www/rcp/wp-content/plugins/rcp-file-protector/src/Core/Autoload/Psr4Autoloader.php' (include_path='.:/usr/local/lib/php') in /var/www/rcp/wp-content/plugins/rcp-file-protector/bootstrap.php on line 16

It's looking for src/Core/Autoload/ but it looks like the actual file path being used is src/core/Autoload (note lowercase c). The directory should be renamed to Core.

Additionally, after fixing that, the following error gets thrown:

PHP Fatal error:  Uncaught ReflectionException: Class RcpFileProtector\Core\Admin\Settings does not exist in /var/www/rcp/wp-content/plugins/rcp-file-protector/src/Core/DI/Container.php:112

This is due to admin not being capitalized in the directory name, and same for helpers.

angay9 commented 4 years ago

Thanks @nosegraze , I think it should be resolved now if you use the latest commit from Master branch

ashleyfae commented 4 years ago

Works now!