Forums

Photopress fails with domain root as main page (4 posts)

  1. chapmanchoi
    Member
    Posted 6 years ago #

    I have a problem with Photopress when I use my root as the blog home page instaed of the default directory /wordpress.

    I've installed wordpress in the directory mydomain.com/wordpress and made root mydomain.com to be my blog home page. I followed the instruction here http://wordpress.org/docs/installation/different-address/ and my blog works fine.

    I installed Photopress 0.71 and I had to change the lines in photopress-inc.php to make it work.


    $pp_photosaddress = $pp_blogurl . '/wordpress/wp-content/' . $pp_photofolder; //add /wordpress
    $pp_photospath = $home_path . 'wordpress/wp-content/' . $pp_photofolder; //add wordpress

    However, when I open the image browser in admin, and use the button "Add thumbnail", it creats a post with the thumbnail as the link to the larger picture. When I click the link, errors occur.


    Warning: main(./wordpress/wp-blog-header.php): failed to open stream: No such file or directory in /mydomain.com/wordpress/index.php on line 4
    Warning: main(./wordpress/wp-blog-header.php): failed to open stream: No such file or directory in /mydomain.com/wordpress/index.php on line 4
    Fatal error: main(): Failed opening required './wordpress/wp-blog-header.php' (include_path='.:/usr/local/psa/apache/lib/php') in /mydomain.com/wordpress/index.php on line 4

    Does anyone have the same problem?

    I am thinking if it helps to modify the line here in photopress-inc.php:

    $pp_albumaddress = $pp_siteurl . '/' . $pp_albumname;

    Can anyone please help?

  2. James
    Happiness Engineer
    Posted 6 years ago #

    Have you contacted the plugin's developer?

  3. chapmanchoi
    Member
    Posted 6 years ago #

    I saw some of his posts here and I was hoping that he would see this post. I am going to send him a email too.

  4. isaacwedin
    Member
    Posted 6 years ago #

    The latest version lets you specify paths and addresses on the Options page. You can get it at familypress.net/photopress.

Topic Closed

This topic has been closed to new replies.

About this Topic