creativecoder / wordpress-local-dev

WordPress local development environment that allows multiple sites using one copy of core files (without using multisite)
36 stars 5 forks source link

Plugin looking for folder in wrong folder. #1

Open jnor opened 11 years ago

jnor commented 11 years ago

Hi, I noticed the plugin "Nggallery" is looking for a folder called "gallery" in wp-content inside the wordpress installation, rather than the site specific wp-content folder. Is it correct accessing the admin panel through my-site.loc/wordpress/wp-admin ?

I'm new to wordpress development and might be missing something

creativecoder commented 11 years ago

I haven't looked at the code for that plugin, but if it hard codes the content or plugins directory, it will have problems when WordPress is installed in a subdirectory within the site url.

The dashboard is accessed through /wordpress/wp-admin, though in some cases, it will forward you to the right place from /wp-admin.

jnor commented 11 years ago

Thanks for answering! The plugin uses the constant ABSPATH defined in wordpress wp-load.php eg. /home/jn/www/lala/wp-sites/wordpress/ thus it will look the wrong place! Do you know any way to work around this? For now I'm just symlinking the gallery folder

creativecoder commented 11 years ago

I believe you have 2 options:

But I am surprised that nextgen gallery doesn't support wordpress in a subdirectory, being a pretty popular plugin. Maybe there is something else going on.

On Wed, May 15, 2013 at 12:55 AM, Jonas Norlin notifications@github.comwrote:

Thanks for answering! The plugin uses the constant ABSPATH which is /home/jn/www/lala/wp-sites/wordpress/ thus it will look the wrong place I suppose! Do you know any way to work around this?

— Reply to this email directly or view it on GitHubhttps://github.com/creativecoder/wordpress-local-dev/issues/1#issuecomment-17924703 .