Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin looking for folder in wrong folder. #1

Open
jnor opened this issue May 15, 2013 · 3 comments
Open

Plugin looking for folder in wrong folder. #1

jnor opened this issue May 15, 2013 · 3 comments

Comments

@jnor
Copy link

jnor commented May 15, 2013

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
Copy link
Owner

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
Copy link
Author

jnor commented May 15, 2013

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
Copy link
Owner

I believe you have 2 options:

  • Rewrite the plugin
  • Use a different one (or the built in media galleries)

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 [email protected]:

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//issues/1#issuecomment-17924703
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants