1.2.6 RC1 install issues

Hi,

Thought I would let some people know some issues I had with the 1.2.6 RC1 vs. 1.2.5 install. Locally I was trying to install 1.2.6 RC1 and the setup page would just quit loading and have an error. I then tried to install 1.2.5 and it let me know that I was missing mbstring for php. I installed this and tried 1.2.6 RC1 again same problem, with 1.2.5 it was now telling me that I was missing a graphics plugin so I installed gd and there were no more errors. I went back to the 1.2.6 RC1 and the setup page now loaded correctly and installed :)

So to hopefully save someone some frustation make sure you have mbstring and gd already installed because it doesn't seem to warn you about it.

Comments

  • acrylian Administrator, Developer
    the mbstring is actually not required to run Zenphoto (you got a warning and no error). THe GDlib is required but that is clearly written on our download page and on our "Installation, Upgrading and Requirements" entry (http://www.zenphoto.org/2008/08/installation-and-upgrading/)
  • I actually did get an error with no mbstring, something about tring to find it caused an error.

    I was more writing because in the setup no errors displayed on 1.2.6 RC1 it just stopped displaying the page at the error (without actually showing an error) about mbstring whereas 1.2.5 actually showed me the error
  • acrylian Administrator, Developer
    Hm, okay, thanks for letting us know.
  • Can you look at your CGI log and tell us what errors are reported there?
  • These are the only errors that I can see that I have logged. Some of them may be permission errors that I worked out.
    It might have logged more at a different level.
    Once I added mbstring the errors all went away in the logs.

    [Sat Aug 01 10:31:21 2009] [error] [client ::1] PHP Warning: fopen(/var/www/html/zenphoto/zp-data/setup_log.txt) [function.fopen]: failed to open stream: Permission denied in /var/www/html/zenphoto/zp-core/setup.php on line 48
    [Sat Aug 01 10:31:21 2009] [error] [client ::1] PHP Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/html/zenphoto/zp-core/setup.php on line 49
    [Sat Aug 01 10:31:21 2009] [error] [client ::1] PHP Warning: fclose(): supplied argument is not a valid stream resource in /var/www/html/zenphoto/zp-core/setup.php on line 50
    [Sat Aug 01 10:31:21 2009] [error] [client ::1] PHP Warning: fopen(/var/www/html/zenphoto/zp-data/setup_log.txt) [function.fopen]: failed to open stream: Permission denied in /var/www/html/zenphoto/zp-core/setup.php on line 48
    [Sat Aug 01 10:31:21 2009] [error] [client ::1] PHP Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/html/zenphoto/zp-core/setup.php on line 49
    [Sat Aug 01 10:31:21 2009] [error] [client ::1] PHP Warning: fclose(): supplied argument is not a valid stream resource in /var/www/html/zenphoto/zp-core/setup.php on line 50
    [Sat Aug 01 10:31:21 2009] [error] [client ::1] PHP Notice: Use of undefined constant FILESYSTEM_CHARSET - assumed 'FILESYSTEM_CHARSET' in /var/www/html/zenphoto/zp-core/setup.php on line 656
    [Sat Aug 01 10:31:21 2009] [error] [client ::1] PHP Warning: require_once(/var/www/html/zenphoto/zp-data/zp-config.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/html/zenphoto/zp-core/js/zenphoto.js.php on line 8, referer: http://localhost/zenphoto/zp-core/setup.php
    [Sat Aug 01 10:31:21 2009] [error] [client ::1] PHP Fatal error: require_once() [function.require]: Failed opening required '/var/www/html/zenphoto/zp-data/zp-config.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/zenphoto/zp-core/js/zenphoto.js.php on line 8, referer: http://localhost/zenphoto/zp-core/setup.php
    [Sat Aug 01 10:33:26 2009] [error] [client ::1] PHP Notice: Use of undefined constant FILESYSTEM_CHARSET - assumed 'FILESYSTEM_CHARSET' in /var/www/html/zenphoto/zp-core/setup.php on line 656
    [Sat Aug 01 10:34:04 2009] [error] [client ::1] PHP Notice: Use of undefined constant FILESYSTEM_CHARSET - assumed 'FILESYSTEM_CHARSET' in /var/www/html/zenphoto/zp-core/setup.php on line 656
  • I doubt that these are the problem. I did find one possible problem now fixed in the nightly build. But I am not able to uninstall GD because my site is on a shared server. If you would be so kind and test the nightly with out the GD support we would be very appreciative.
  • I tried the nightly with and without GD and it didn't complain that it was missing either way but the setup page loaded. Not sure if it wasn't totally unistalled or not.
  • Ok, thanks for the try. Probably was still installed, at least so far as it reported supporting the necessary image types.
  • Just wanted to note that this problem still exists in the current stable version (.tar.gz) as of 2009 Sep 15: 1.2.6.

    The setup page will originally load only part way with an error at the end about FILESYSTEM_CHARSET. After setting up the database stuff (username, host, password, and database name), all of the pages would go blank (nothing, not even in the source). This made debugging extremely frustrating (since there was no error message describing why the pages went blank).

    I saw this thread and decided to give installing php-mbstring a shot. After that, the content returned to the pages.
  • I had this problem as well. The set up page would get to this step then stop loading:

    PHP gettext() support

    I had to rebuild and reinstall PHP with mbstring enabled:

    ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --with-gd --with-zlib --with-gettext --enable-mbstring

    2009/09/20
  • As far as I can tell, ZP does not load the file that defines the necessary constant until after the systems check.

    Inserting the line
    `
    define('FILESYSTEM_CHARSET', 'ISO-8859-1');
    `
    immediately after the other defines at the top of setup.php allows the page to load normally without having to install mbstring (some people won't have the ability to reinstall php).
  • well, there's still problems, after entering db_info. No tables are created, and that causes blank pages.

    If you enter in wrong db info, you still get the setup page, but if the correct info is entered, and the user has full perms, and you hit save, poof, blank. I'm tired of debugging this. Gonna ask the host to install mbstring.
  • Did you manage to get this to work after enabling mbstring? I have the same problem, and wondering if it was worth it.
Sign In or Register to comment.