zenphoto forums » Installation Support

Path errors?

(10 posts)
  • Started 7 years ago by lisavollrath
  • Latest reply from lorbaal

Tags:

  1. lisavollrath

    Junior
    Joined: Jan '06
    Posts: 7

    OK, I've installed 1.0, created databases, and then uninstalled and deleted databases three times, and each time, I get a different problem.

    My current problem: the paths to my images, and the navigation links are both wrong. Take a look:

    http://www.lisavollrath.com/zp/

    In the admin and on the site, I'm showing a gallery, and my first folder---but the navigation links from the main gallery are missing part of the path, so they're broken. Instead of http://www.lisavollrath.com/zp/albums/Glass/ the navigation is showing up as http://www.lisavollrath.com/zp/Glass/ so I'm getting a 404.

    Same with the images. Part of the path is missing, so they're showing up as broken links.

    Posted 7 years ago #
  2. lisavollrath

    Junior
    Joined: Jan '06
    Posts: 7

    Oh, OK---I tried a different way of addressing the path in .htaccess, and it worked.

    It didn't want the complete path to my directory---it just wants it from the root.

    Posted 7 years ago #
  3. cmaurin

    Apprentice
    Joined: Jan '06
    Posts: 3

    Hi,
    I think I have the same problem. Everything is ok after uploading and saving (images, thumbs, etc.) and then: http://www.cmaurin.net/zenphoto/
    This is what I put in .htaccess :
    RewriteBase /zenphoto
    Thank you for helping me.

    Posted 7 years ago #
  4. qtrc

    Member
    Joined: Nov '05
    Posts: 33

    cmaurin,

    I had to add a trailing slash. So my .htaccess:

    RewriteBase /zenphoto/

    Posted 7 years ago #
  5. cmaurin

    Apprentice
    Joined: Jan '06
    Posts: 3

    Hi gtrc,
    I have tried this (and a lot of other things...), and I have the same result.
    Thank you.

    Posted 7 years ago #
  6. dansroka

    Apprentice
    Joined: Jan '06
    Posts: 2

    Does anyone have any idea why the mod rewrite is working for some people and not for others (e.g. see http://www.zenphoto.org/support/topic.php?id=159)?

    Thanks

    Posted 7 years ago #
  7. biffta

    Member
    Joined: Jan '06
    Posts: 11

    I had very similar problems, I am not convinced the problem is in the .htaccess file because I still experienced the problems when I turned mod_rewrite off. The only way I got it to work was the edit the zen/functions.php file in the following way.

    <?php
    // functions.php - HEADERS NOT SENT YET!

    require_once("config.php");
    /*comment out this bit
    if (strstr(basename(dirname($_SERVER['SCRIPT_NAME'])), "zen")) {
    define('WEBPATH', dirname(dirname($_SERVER['SCRIPT_NAME'])));
    } else {
    define('WEBPATH', dirname($_SERVER['SCRIPT_NAME']));
    }
    */
    define('WEBPATH', '/zenphoto');

    Posted 7 years ago #
  8. cmaurin

    Apprentice
    Joined: Jan '06
    Posts: 3

    That works!
    Thank you biffta.

    Posted 7 years ago #
  9. unruly

    Junior
    Joined: Jan '06
    Posts: 5

    biffta, you rock. i was about ready to cry, couldn't figure how to get the install finished properly (despite multitudinous mt and wp installs the past few years). you saved me a night of tears, as this did the trick. =) thanks.

    Posted 7 years ago #
  10. lorbaal

    Apprentice
    Joined: Feb '06
    Posts: 1

    Thanks biffta!

    It works fine.

    Posted 7 years ago #

RSS feed for this topic

Reply

You must log in to post.