mbo2olivier / mukadi-wordpress-bundle

Integrate wordpress and symfony in the same application
21 stars 11 forks source link

The theme directory "wp-blank" does not exist. #7

Open webgrity2016 opened 4 years ago

webgrity2016 commented 4 years ago

I am using Symfony 4.3 with mukadi-wordpress-bundle. Follow the exact instructions given here. But after completing the installation, display the following error:

The theme directory "wp-blank" does not exist.
ERROR: The themes directory is either empty or doesn’t exist. Please check your installation.

In my composer.json file the theme, plugin folder not under the wp folder, nut installed under public folder directly as per the given instruction. Please refer below: Before installing the bundle, edit your composer.json file and specify the following options:

"extra": { ... "symfony": { ... "allow-contrib": "true" # allow symfony flex to install recipe (if your are using symfony flex) } ...

set installation path for wordpress themes and plugins

"installer-paths": {
    "public/mu-plugins/{$name}": ["type:wordpress-muplugin"],
    "public/plugins/{$name}": ["type:wordpress-plugin"],
    "public/themes/{$name}": ["type:wordpress-theme"]
},
# install wordpress in a public sub-directory
"wordpress-install-dir": "public/wp"

},

Pls help me.

mbo2olivier commented 4 years ago

Hello @webgrity2016 i have tried to reproduce your bug by following documentation but everything seem to be alright. Are you sure you don't miss some step ?

cjanow3 commented 3 years ago

I also had this bug but then resolved it. It came up when resolving dependency issues between what is included in symfony/skeleton and what is required by mukadi-wordpress-bundle. I made sure to remove any packages from my composer.json file that are included in mukadi-wordpress-bundle composer.json and then it worked.