I’m trying to automate the deployment of blogs inside my organization. I’m using wp-cli to install the plugins but have found an issue with Geodirectory and the installation of geodir plugins.
Geodirectory install just fine:
$ wp –activate plugin install geodirectory
Installing GeoDirectory – Directory Plugin (1.6.15)
Downloading install package from https://downloads.wordpress.org/plugin/geodirectory.1.6.15.zip…
Using cached file ‘/root/.wp-cli/cache/plugin/geodirectory-1.6.15.zip’…
Unpacking the package…
Installing the plugin…
Plugin installed successfully.
Activating ‘geodirectory’…
Plugin ‘geodirectory’ activated.
Success: Installed 1 of 1 plugins.
but when trying to install a geodir_ plugin (for example, geodir_buddypress) which I already have on disk:
$ wp –activate plugin install /opt/plugins/geodir_buddypress_1.1.5.zip
Unpacking the package…
Installing the plugin…
Plugin installed successfully.
Activating ‘geodir_buddypress’…
Error: There was an issue determining where GeoDirectory Plugin is installed and activated. Please install or activate GeoDirectory Plugin.
As an added “value”, when installing it that way, the Geodirectory -> General tabs are broken (it only shows the word “General” without any CSS applied) and the Chrome console shows a “Uncaught ReferenceError: geodir_all_js_msg is not defined”.
If I install Geodirectory through the Admin interface, the plugins gets installed, and as soon as I click Activate, I’m redirected to Geodirectory -> General. And installing the geodir_buddypress.zip works fine.
Any suggestion…?