You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 18, 2022. It is now read-only.
When installing composer dependencies in the plugin, with composer v1 -
Warning: Ambiguous class resolution, "watchfulli\XClonerCore\Xcloner" was found in both "/home/demos/webapps/wpdemo/public/32/wp-content/plugins/XCloner-Wordpress/vendor/watchfulli/xcloner-core/src/Xcloner_Encryption.php" and "/home/demos/webapps/wpdemo/public/32/wp-content/plugins/XCloner-Wordpress/vendor/watchfulli/xcloner-core/src/Xcloner.php", the first will be used.
I have confirmed this leads to fatal errors when plugin is built with composer 2.0 or later.
Based on how I am reading the plugin -- I am new to this code -- I see two ways src/Xcloner_Encryption.php may be used.
In the main plugin file, it is used to encrypt and decrypt backups.
The examples directory shows how to call it using PHP, not using WordPress, in order to encrypt or decrypt a backup. In this use case, the autoloader isn't included, so Xcloner doesn't already exist.
The solution is probably to use require_once the autoloader in place of double declaring the class. That probably will not break anything.
I am testing this branch in the plugin. Original issues are fixed. I get this though:
Class Watchfulli\XClonerCore\Index located in ./vendor/watchfulli/xcloner-core/src/index.php does not comply with psr-4 autoloading standard. Skipping.
When installing composer dependencies in the plugin, with composer v1 -
I have confirmed this leads to fatal errors when plugin is built with composer 2.0 or later.
Related #2 and watchfulli/XCloner-Wordpress#189
The text was updated successfully, but these errors were encountered: