backdrop-contrib / wpmenu

WordPress Menu for Backdrop
GNU General Public License v2.0
0 stars 0 forks source link

Document where the "libraries" folder should be placed #2

Open steve65140 opened 7 years ago

steve65140 commented 7 years ago

It would be very helpful if the "read me" file included where to create the "libraries" folder as it doesn't seem to be documented anywhere. I guess it just goes at the top level of the site?

The module works for me and I think the resulting menu is better than the default Backdrop admin menu but I get a numerous warnings in the Backdrop log in the form:

Warning: file_get_contents(/libraries/wordpress/wp-includes/js/utils.min.js): failed to open stream: No such file or directory in backdrop_build_js_cache() (line 5296 of /.../backdrop/bd100.loc/core/includes/common.inc).

and:

page not found libraries/wordpress/wp-admin/css/site-icon.min.css

Maybe because I've not put the "libraries" folder in the right place?

klonos commented 7 years ago

Hello @steve65140 and welcome to Backdrop! Can you please let me know where exactly you downloaded the WordPress .css and .js files?

steve65140 commented 7 years ago

Hi Gregory,

First I downloaded and enabled the Libraries module as I thought it might create the libraries folder but it didn’t.

In Drupal I put the libraries folder under /sites/all but Backdrop seems to keep everything at a higher level so in the end I put it at the top level i.e. the same level as /core etc.

I downloaded the current version of WordPress from https://wordpress.org/download/ (first time I’ve downloaded WP so I felt very guilty as if I was betraying Drupal).

I manually copied in just the files in the diagram on https://www.drupal.org/project/wpmenu.

The menu worked but I noticed the messages like:

Warning: file_get_contents(/libraries/wordpress/wp-includes/js/utils.min.js): failed to open stream: No such file or directory in backdrop_build_js_cache() (line 5296 of /.../backdrop/bd100.loc/core/includes/common.inc).

in the Reports section.

So I then copied in all the files in the directories:

libraries |--wordpress |--wp-admin | |--css | |--js |--wp-includes |--css |--js

That's when I saw the additional messages like:

page not found libraries/wordpress/wp-admin/css/site-icon.min.css

I don't have the site bd100.loc with the WordPress Menu module installed anymore as I rolled back the site to a Backup & Migrate dump I took before installing the WordPress Menu module but if it helps diagnostics, I can reinstall the module.