Error after initial setup.php

It took me forever to get the setup.php file to even work, the support team at dreamhost told me it was a corrupt install file (the setup.php file) and they had to copy a new one to my site for it to work. But now, it finally worked and I typed in all the SQL info which is 100% right. The new error I get is:

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/.belvy/mpgroup/photos.pablossite.com/zp-core/setup.php on line 51

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/.belvy/mpgroup/photos.pablossite.com/zp-core/admin-functions.php on line 407

Can someone please help with any thoughts?

Comments

  • Can you tell us what version of zenphoto this is supposed to be? The first error makes no sense on the current versions--there is no call on `mysql_num_rows()` anywhere near line 51 of setup.php.

    Where did the setup script come from? From a download on the zenphoto web pages or from Dreamhost?
  • This is a download from the zen photo website. Dreamhost does not support a custom install of ZenPhoto - they only do the "One-click-install" that doesn't allow you to batch import photos via ftp (which is stupid IMO).

    Is there somewhere else I can download it from? Maybe an older version? When I tried to install it by myself without help from Dreamhost support - it gave me the an error and Dreamhost said that the file on the ZenPhoto website was corrupted. This is what they said:

    "I've
    taken a quick look at your site and it looks like the setup.php file is
    corrupted or incomplete. I've compared it to a fresh download of
    ZenPhoto and there is a large chunk that is missing from the file on your
    web server. A fresh download may do the trick."

    I downloaded it about 10 times, the size was always the same, about 55kb. Thanks for the help!
  • acrylian Administrator, Developer
    I can't reproduced any problem with downloading. Both files on our home page are complete and as they should be.
  • Well, the zip file at least is 2,627kb so something is going drastically wrong with your download. You could also try to download one of the nightly builds to see if it comes down beter: http://www.zenphoto.org/files/nightly/
  • Is there a way to do private messages here? I wanted to explain this in further detail and see if you can help? I downloaded both the ZIP and TGZ file and uncompressed both and uploaded them to an empty subdomain and a different site. Both did not work and both give me the same error:

    Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/.belvy/mpgroup/pablossite.com/Photos/zp-core/setup.php on line 914

    Dreamhost somehow uploaded a different file that they say is "not corrupted" and it works initially but after I enter in all my SQL information it gives me the errors that I mentioned in the first post. Do you have any suggestions? How big is the setup.php file supposed to be? Is there anything special I need to do when uploading? Do I need to do anything with mySQL before I upload? Or is that taken care of during setup.php?

    Thanks! you guys are quick to response which I love.
  • We don't do private support. It is best if everyone can see the transcript. First, so that the whole community can possibly help out. Second, so that if someone else is having the same problem we don't have to deal with it again and again.

    Did you get the correct file size when you downloaded the files? If not, there is no point in going further since the problem is with the download.

    Here are the file sizes of the 1.2.1 release:
    Name Size
    404.php 0.8 KB
    admin.css 14.7 KB
    admin.php 45.5 KB
    admin-albumsort.php 2.1 KB
    admin-cache-images.php 2.7 KB
    admin-comments.php 12.4 KB
    admin-dynamic-album.php 6.9 KB
    admin-functions.php 68.5 KB
    admin-options.php 63.9 KB
    admin-plugins.php 5.1 KB
    admin-refresh-metadata.php 4.0 KB
    admin-sortable.php 6.1 KB
    admin-tags.php 5.9 KB
    admin-themes.php 5.8 KB
    admin-upload.php 10.4 KB
    archive.php 19.3 KB
    auth_zp.php 4.0 KB
    c.php 1.0 KB
    changelog.html 27.2 KB
    class-album.php 37.3 KB
    classes.php 10.4 KB
    class-gallery.php 20.2 KB
    class-image.php 20.9 KB
    class-load.php 0.5 KB
    class-search.php 20.8 KB
    class-transientimage.php 0.9 KB
    class-video.php 2.8 KB
    controller.php 3.3 KB
    full-image.php 4.4 KB
    functions.php 89.8 KB
    functions-controller.php 15.7 KB
    functions-db.php 6.2 KB
    functions-i18n.php 12.6 KB
    functions-image.php 16.9 KB
    i.php 8.0 KB
    index.php 0.1 KB
    lib-encryption.php 1.6 KB
    lib-htmlawed.php 46.5 KB
    lib-pclzip.php 192.0 KB
    lib-sajax.php 10.3 KB
    lib-seo.php 7.5 KB
    lib-utf8.php 26.0 KB
    setup.php 53.2 KB
    setup-option-defaults.php 6.1 KB
    setup-primitive.php 4.8 KB
    template-functions.php 123.6 KB
    upgrade.php 0.1 KB
    version.php 0.2 KB
    zp-config.php.source 4.7 KB
  • Sounds to me like you are downloading the setup.php file only (somehow) and not the other files since you said it is 55kb..

    I use Dreamhost and have not had issues. Do you have SSH access to your account? If so, log in using SSH.

    Then you should have a shell open. Do the following:

    `mv photos.pablossite.com/ oldsite`

    `wget http://www.zenphoto.org/files/nightly/zenphoto-2008-10-17-trunk.zip`
    (or any of the other nightly builds)

    `unzip zenphoto-2008-10-17-trunk.zip`

    You should then have a full copy of all zenphoto files.

    `mv zenphoto/ photos.pablossite.com`

    Then you can do whatever you need to do, including uploading via FTP. I have done this a billion times using SSH in Dreamhost.

    ---- if you don't have SSH access, well.....
  • I have all those files that you mentioned and the setup file is 53.1 KB (54,453 bytes)

    the ZP-core folder is 5.99 MB (6,287,713 bytes)/183 Files
    the whole zen photo folder is 30.9 MB (32,491,696 bytes)/3784 Files

    Where do I see if I have SSH? Do you mean secure hosting? If so then no. I dont understand how no one else has had this problem.. I just don't see how I can be doing anything wrong if I'm simply uploading a folder via FTP to another folder... pretty hard for me to mess this up. Thanks again for everyone's help.
Sign In or Register to comment.