Forums

[resolved] [Plugin: ZenphotoPress] Doesn't work if wp-config is in root (4 posts)

  1. For various security reasons, I wanted to put my wp-config.php file in root (instead of public_html). WordPress likes this just fine. ZenPhotoPress barfs :)

    Can you tweak your code to look in the main WP install and also one folder up, just like the regular WP code?

    http://wordpress.org/extend/plugins/zenphotopress/

  2. Simbul
    Member
    Posted 2 years ago #

    Actually, it's supposed to do that already. How many folders do you have between wp-config and the ZenphotoPress classes.php file?

    Also, I'm not sure I understand what you mean by root. Can you tell me something more on your folder structure?

  3. Root is /home/ipstenu/

    My public_html folder is a folder in my user root directory :) So mine looked like this:

    /home/ipstenu/wp-config.php
    /home/ipstenu/public_html/wp-content/plugins/zenphotopress/
    /home/ipstenu/public_html/zenphoto/

    So ... Three?

    FWIW - It worked before with this setup:

    /home/ipstenu/public_html/blog/wp-config.php
    /home/ipstenu/public_html/blog/wp-content/plugins/zenphotopress/
    /home/ipstenu/public_html/zenphoto/
  4. Simbul
    Member
    Posted 2 years ago #

    You were right: moving wp-config.php up one folder was making ZPP stop working.
    I released a bugfix in version 1.7.2 which should resolve your issue and hopefully make the loading process more robust.

    Thanks for the report.

Topic Closed

This topic has been closed to new replies.

About this Topic