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
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
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
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.
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
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).
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.