Fatal error with 1.1 update

Just updated to 1.1 and have this error. Any suggestions?

Fatal error: main(): Failed opening required 'zp-core/template-functions.php' (include_path='.;c:\php\pear') in D:\inetpub\re-lee\zenphoto\index.php on line 3

Comments

  • trisweb Administrator
    Can you check for that file's existence? It should be `template-functions.php` in the /zp-core/ folder.
  • Located in zenphoto/zp-directory/zp-core
  • Is index.php in the zenphoto folder?

    Never mind, I looked more closely at your post.
  • Any thoughts?
  • Not really. If template-functions.php resides in the zenphoto/zp-core/ folder, it should get found.

    What version were you running before the upgrade?
  • You sure you deleted your entire zen, now zp-core folder, and uploaded the entire new folder? I thought pear.php used to be in the zen folder, it is no longer used.
  • trisweb Administrator
    pear being in the include path is fine, that shouldn't affect it.

    Are the permissions on the directory set such that the web server can read the files?

    Also, can we have the URL of the installation so we can research better?
  • I am not sure how to provide hte URL of the installation but here I will try: http://www.re-lee.com/wordpress/wp-admin/install.php

    Please let me specifcally what you need to help me. Thanks!
  • Is there anywhere to go from here?
  • You still havent answered a couple things.

    Are the permissions on the directory set such that the web server can read the files?

    What version were you running before the upgrade?
  • 1. How can I check the permissions
    2. I do not know what version I was using previously.
  • trisweb Administrator
    Ah. Confusion. I see it.

    You are supposed to install to /zenphoto, not `/zenphoto/zp-directory`

    "[zp-directory]" in the installation literature refers to the directory where you are installing zenphoto, not to a directory named zp-directory.

    Please copy the files such that the `index.php` file is in the root `/zenphoto` folder, and the `zp-core` folder, `albums` folder, `themes` folder, and `cache` folder are in the `/zenphoto/` folder on your server. They should not be in any subdirectory.

    Just to be completely clear, this is how the file and folder structure should look:

    /zenphoto
    --> index.php
    --> rss.php
    --> (a few other .php files)
    --> /albums/
    --> /cache/
    --> /zp-core/
    ||--> zp-config.php
    ||--> template-functions.php
    \\--> (A lot of other .php files)
    --> /themes/

    There may be more files and folders, that's just to give you an idea of how it should look.

    Once you have it extracted correctly the error message should disappear, but come back if you have more problems. Good luck.
  • Thank you so much. I did EXACTLY that. OK I started over and reinstalled the zenphoto directory and changed the zp-config.php file with my information and I have this error: MySQL Query ( SELECT `name`, `value` FROM `options` ) Failed. Error: Table 'zenp.options' doesn't exist

    re-lee.com. Any thoughts? Thank you for bearing with me as I sort this out.
  • Please download and install version 1.1.2 as this fixes the problem you are having.
  • trisweb Administrator
    Yep, 1.1.2 should fix that.

    We'll take a look at the install instructions and make them clearer so there's less confusion in the future. Sorry about that!
  • Hi, I updated to 1.1.2 and I still see this error:
    Zenphoto Error

    MySQL Query ( SELECT `name`, `value` FROM `options` ) Failed. Error: Table 'zenp.options' doesn't exist

    re-lee.com/zenphoto
  • Please try the nightly build to see if you still have this problem.
  • trisweb Administrator
    You have to run /zp-core/upgrade.php *after* you install 1.1.2 -- it will create the options table.
  • Hi,
    I get an error saying username, password are incorrect. http://www.re-lee.com/zenphoto/zp-core/upgrade.php#

    I am using the username and password in my zp-config.php?
    Thanks
  • There are two different user/password sets in the zp-config file. Be sure you are not using the mySQL ones. If this does not work, you can update to the nightly build. If you have entered an email address, there will be a link on the logon screen that will email you your user/password.
  • I was using the mySQL ones. Where can I find the username and password. This screen does not provide a place to have the information emailed to me.
  • trisweb Administrator
    Onyourplate - you have to use a blank username and password to start. Sorry this is very confusing and not documented anywhere, but that's what's needed for the setup.

    Since it's a blank password, I've gone ahead and done the setup for you, and everything seems to be working now. Be sure to change your password in the admin options page.

    [Stephen, this is a point of confusion - the default username and password are blank, before the options db is set up. Setup should create the tables without a login, and then guide the user through setting an admin login. Following that, setup and upgrade *should* ask for a username and password for security.]
  • Thank you, things are better. I don't have access to the first album.
    http://www.re-lee.com/zenphoto/index.php?album=Ryan's+Birthd

    Error: Zenphoto Error: the requested object was not found. Please go back and try again.
  • Rename your folder to ryans_birthday, ie: take out the apostrophe. You can go into the admin and name the album "Ryan's Birthday" but the folder itself cannot have the apostrophe.
  • acrylian Administrator, Developer
    onyourplate: you got aitf311 wrong. You can have an album title called "Ryan's Birthday" but you have to delete the ' in the folder name. If you change the name it the admin the folder is not changed. You have to do that manually.
  • trisweb Administrator
    That is a bug. All folder names should work. I'm adding it to trac...

    Update: Tested the apostrophe and it does work..... strange.

    Update: It's without mod_rewrite on. It does break.
  • acrylian Administrator, Developer
    Trisweb: I tested it with a big german host that is really different with such things (doesn't allow mod_rewrite even in bigger webspace packets!). While the host accepts filenames with an "'", he doesn't accept folders with (just like he doesn't accept special characters like "öäü" in file- and foldernames).
    I learnt a few days ago here on the forum that it's possible to use special characters, but that's apparently not the standard server setup of most hosts. I always tell people not to use any special characters in filenames ever.
Sign In or Register to comment.