WordPress Core Directory Structure
-
Hi,
I am helping someone with their site. They have two domains and appear not to be using multisite (it has not bee enabled), so I think they have just installed WordPress twice.
They have a public_html folder within which the structure is –
– wp-admin
– wp-content
– wp-includes
– guide (the second site directory)The main site works fine.
Within the guide directory the structure of the core files for the second site are –
– wp-content
– wp-admin (i.e. sub-folder of wp-content)
– wp-includesThe second site appeared to be up and working yesterday but today now can not be accessed. The error thrown up is a path error to wp-admin, with a double slash in the path i.e.
Warning: require_once(/websites/123reg/LinuxPackage22/te/ac/ht/teachtutti.com/public_html/music-guide//wp-admin/includes/plugin.php) [function.require-once]: failed to open stream: No such file or directory in /websites/123reg/LinuxPackage22/te/ac/ht/teachtutti.com/public_html/music-guide/wp-content/plugins/subscribe2/subscribe2.php on line 47
Fatal error: require_once() [function.require]: Failed opening required ‘/websites/123reg/LinuxPackage22/te/ac/ht/teachtutti.com/public_html/music-guide//wp-admin/includes/plugin.php’ (include_path=’.:/usr/local/php52/share/pear:/usr/local/php52/share/php’) in /websites/123reg/LinuxPackage22/te/ac/ht/teachtutti.com/public_html/music-guide/wp-content/plugins/subscribe2/subscribe2.php on line 47
If I disable that particular Plugin the same error occurs but a different Plugin is named. If I disable all Plugins then the error is similar (i.e. a pathy error) but the specific path is different and the double slashes in front of wp-admin disappear –
Warning: require_once(/websites/123reg/LinuxPackage22/te/ac/ht/teachtutti.com/public_html/music-guide/wp-admin/includes/class-wp-list-table.php) [function.require-once]: failed to open stream: No such file or directory in /websites/123reg/LinuxPackage22/te/ac/ht/teachtutti.com/public_html/music-guide/wp-content/themes/blaszok/php/class-tgm-plugin-activation.php on line 983
Fatal error: require_once() [function.require]: Failed opening required ‘/websites/123reg/LinuxPackage22/te/ac/ht/teachtutti.com/public_html/music-guide/wp-admin/includes/class-wp-list-table.php’ (include_path=’.:/usr/local/php52/share/pear:/usr/local/php52/share/php’) in /websites/123reg/LinuxPackage22/te/ac/ht/teachtutti.com/public_html/music-guide/wp-content/themes/blaszok/php/class-tgm-plugin-activation.php on line 983
It occurred to me that moving wp-admin up into the same directory level that wp-content and wp-includes are in might resolve this, and I can do with FTP.
However I thought I would seek views on this forum before I do this.
Thanks in advance for any help.
- The topic ‘WordPress Core Directory Structure’ is closed to new replies.