Problems Making 1.1.2 Work (first time installation)

Hi,
I just downloaded 1.1.2 and attempted to install it (my first ever installation of ZenPhoto) and I'm having a very hard time of it.

I unzipped and copied everything into mydomain.com/zenphoto. I edited the config to my database info, added a prefix and commented out the external album folder.

I ran Setup and it seemed to work fine (tables were added to the DB).

I changed .htaccess in the Zenphoto folder:

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

I can access the admin backoffice, I turned ModRewrite on, but there was very little to change. Everything in the Admin office seems to work well.

And thats where everything seems to stop working well. When I look at a gallery, it doesn't actually use any theme (I've tried a few). So for instance I click on 'Browse your gallery" from the admin page: it takes me to http://www.mydomain.com.au/zenphoto/ which has no design whatsoever (default text only).

If i then click on one of my galleries, it takes me to http://www.mydomain.com.au/Gallery/ which is not where it is (which may just be the rewrite, but...) and it gives me a "Not Found
The requested URL /gallery/ was not found on this server." error message.

If I manually insert Zenphoto/ into the URL: http://www.mydomain.com.au/ZenPhoto/Gallery/ it seems to work and I see the thumbnailed gallery. But then if I click on one of the thumbnails, I get:

"Zenphoto Error: the requested object was not found. Please go back and try again."

And so on. It seems to be having a lot of trouble keeping in the right folder. Another error I got had to do with not being able to find the theme path/folder/filename.

Have I installed it wrong, or is this another bug with the recent upgrade?

Comments

  • It may help if you can actually see what I am talking about so here is the broken gallery:
    http://www.tdmskp.com.au/zenphoto/
    and here is the corrected album:
    http://www.tdmskp.com.au/zenphoto/Serendipity/
  • aegist:

    You say you "I edited the config to my database info, added a prefix and commented out the external album folder."

    What exactly did you do? No change is necessary for the external album folder if your installation is standard.

    Please reset mod_rewrite and see how things behave. Also, please post your .htaccess file.
  • OK, I fixed the external album folder. I had commented it out : //$conf[external...etc because I made a change to it which didn't work, then couldn't remember the default setting and everything I tried returned an error, so by commenting the line, it removed all mention of it and thus all problems. It is back to default now though (Null). Everything is still the same.

    How do you mean reset mod_rewrite? In the admin panel? Or in the .htaccess file?

    I unticked modrewrite in the admin panel, saved, then reticked it...No Change.

    Found a new symptom too: ON the admin Overview page, if I click 'Refresh Database', it adds something like 50 new albums. Apparently I have 9500+ albums...... (so clearly something else is adding albums too, I haven't clicked that button that many time.)

    .htAccess
    My root directory .htaccess is short and sweet:

    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^tdmskp.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www.tdmskp.com$
    RewriteRule ^(.*)$ http://www.tdmskp.com.au [R=301,L]

    The zenphoto directory htaccess is completely unchanged except for the line posted previously, which I copied pasted from the document. I don't see how I can attach documents to these posts, but if you want me to copy paste the entire document in here I will do it as a whole post.
  • I am not sure that you can have two .htaccess files. The server only looks in the root for it.

    reset mod_rewrite from the admin options panel. Once you have reset it, try your album. It really sounds like problems with mod_rewrite and your configuration.
  • Merged the two .htaccess files into one in the root directory. Deleted htaccess from zenphoto folder.

    .htaccess now says:

    # htaccess file for zenphoto
    # NOTE: Change the RewriteBase below to the absolute path to your zenphoto directory.
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^tdmskp.com$ [OR]
    RewriteCond %{HTTP_HOST}
    ^www.tdmskp.com$
    RewriteRule ^(.*)$ http://www.tdmskp.com.au [R=301,L]
    #### !!! Change this to the web path (eg: http://www.yourwebsite.com/photos --> /photos)
    !!!
    RewriteBase /zenphoto
    ####
    RewriteRule ^admin/?$ zp-core/admin.php [R,L]

    ...etc as default.

    I turned modrewrite off and saved and on and saved several times via admin panel, no change.
  • I guess I am not making myself clear. I want you to turn mod_rewrite off and leave it off. I want to know if the album works with it off. Turning it off and back on again does nothing.
  • Turned it off from the Admin panel. No change.
  • trisweb Administrator
    In zp-config.php, find the line near the bottom that reads:

    `// define('WEBPATH', '/zenphoto');`

    Uncomment it, and leave the '/zenphoto' setting, as that happens to be correct for you.

    See if that makes things right. It seems to me that the URL isn't being detected correctly.

    (To Stephen: this may be a bug. It looks like the path is detected correctly on the album page (images are loaded, theme styles work) but not on the index page. Not sure why... ex: http://www.tdmskp.com.au/zenphoto/index.php?album=Grand+Canyon )
  • Interesting. The index page works if I enter http://www.tdmskp.com.au/zenphoto/index.php

    Aegist:

    Can you list out the files that are in the zenphoto folder?
  • Brilliant. trisweb got it. I had uncommented both of those lines at one time, (the define server path one too) but it returned an error, so I re-commented both fo them. Obviously I should have played with that a bit more.

    In case you are still interested in knowing sbillard, the zenphoto folder has:
    .htaccess (I separated them again, I am pretty sure you can have multiples no problem),
    index.php,
    rss.php,
    rss-comments.php,
    install.txt and
    license.txt

    As well as the 4 normal folders.

    But as far as I can see, everything is working fine now. Now I just need to figure out how it all works so that I can interface it with the rest of my Site LOL. Hard work for a non-programmer.

    Thanks very much for all of your help.
  • Interestingly, I tried turning ModReWrite back on, and it returned a 404 when I try to look at one of the galleries. I'll just leave it off, but that may be of interest to you.
Sign In or Register to comment.