Path Trouble

First, great software :-)

I'm having a tiny problem with tinyZenPage though. For some reason it is only half-working for me. Here's a photo of what I'm seeing :

http://imagevault.ath.cx/bug/Photo1.jpg

Digging a little deeper, I can see that zenpage is showing the wrong path in the logs:

[Wed Jan 07 05:13:57 2009] [error] [client x.y.z.a] File does not exist: /home/mgjk/xxx/index.php, referer: http://xxx.yyy.zzz/photos/zp-core/plugins/zenpage/page-edit.php?id=1

It *should* go to /home/mgjk/xxx/photos/index.php not /home/mgjk/xxx/index.php

In zp-config.php I have
define('WEBPATH', '/photos');
//define('SERVERPATH', '/home/mgjk/xxx/photos/');

I tried defining SERVERPATH, but it didn't seem to have any affect.

Anything else I can try? I might just move the whole thing to root if I can't figure this out.

Comments

  • acrylian Administrator, Developer
    So the issue is that you don't see the thumbs in tinyZenpage? What version of tinyZenpage, Zenphoto and Zenpage are you using? The thumbs are actually generated on the fly by `http://xxx.yyy.zzz/photos/zp-core/i.php`.

    Are you using a subdomain with the /photos folder maybe? Did Zenphoto's setup run and is the .htacess rewrite path set correctly to /photos?

    Anyway, Zenphoto/Zenpage works fine in the root, too.
  • Yep, that's the issue.

    D'oh! .htaccess rewrite path!

    .htaccess:

    #### !!! Change this to the web path (eg: http://www.yourwebsite.com/photos --> /photos) !!!

    Okay, I fixed that and now the first error no longer appears. Now it's only when tinyZenpage gets as far as loading the images from the gallery.

    [Wed Jan 07 06:38:04 2009] [error] [client x.y.z.a] File does not exist: /home/mgjk/xxx/zp-core, referer: http://xxx.yyy.zzz/photos/zp-core/plugins/tiny_mce/plugins/tinyzenpage/tinyzenpage.php?album=Berlin
    [Wed Jan 07 06:38:04 2009] [error] [client x.y.z.a] File does not exist: /home/mgjk/xxx/missing.html, referer: http://xxx.yyy.zzz/photos/zp-core/plugins/tiny_mce/plugins/tinyzenpage/tinyzenpage.php?album=Berlin

    This repeats for each image.

    According to the the dialogue in tinyZenpage, it's 1.0.1, Zenphoto tells me that at the bottom of the main page, it is 1.2.2, and that the Zenpage plugin is 1.0.1.

    I upgraded Zenphoto in-place before installing Zenpage. It used to be something in the 1.1 series. I can't recall. The rewrite bug was probably always there, it's just that it didn't actually cause any problems.

    I'm pretty sure Zenpage's setup.php ran when I first installed it, no problem. I've tried running it manually since, but it just seems happy that everything is already set.

    Since I messed up the .htaccess rewrite config, could the setup.php have stored any path information in the MySQL DB? Any other places to look?
  • acrylian Administrator, Developer
    Actually Zenphoto's setup should have done that htaccess change itself. Anyway if it works now. Your setup seems to be okay then.

    The url you see is actually correct, that is the url if you have selected an album to display. I have currently no idea why that does not work for you. Did you check the permissions on the albums and cache folder?
  • Somehow,

    File does not exist: /home/mgjk/xxx/zp-core

    Needs to go to:

    /home/mgjk/xxx/photos/zp-core

    I might just do a fresh install, it's pretty painless with this app and it will eliminate a lot of cruft. I probably made some bizzare error along the way.

    I'll prbably do a root domain this time, the gallery is new enough that a location change isn't a big deal. Time permitting, I'll try to set up a test you'll be able to reach to see if I can reproduce the original problem. I'll let you know how that goes.

    Thanks for your help :-)
Sign In or Register to comment.