Hello,
I tried to install Zenphoto 1.2.2. But the installation failed with this Error Message:
Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! in /www/html/zenphoto/zp-core/functions.php on line 472
Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! in /www/html/zenphoto/zp-core/functions.php on line 472
Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! in /www/html/zenphoto/zp-core/functions.php on line 472
Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! in /www/html/zenphoto/zp-core/functions.php on line 472
Tabellenaktualisierung abgeschlossen!
Zenphoto Error
MySQL-Abfrage ( SELECT `folder`, `sort_order`, `title`, `show`, `dynamic`, `search_params` FROM `zp_albums` WHERE `parentid`= ORDER BY `id` ) fehlgeschlagen. Fehler: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY `id`' at line 1
Can someone help me?
My PHP-Version is 5.2.6 (Apache/2.0.54 (Debian GNU/Linux) mod_ssl/2.0.54 OpenSSL/0.9.7e)
My MYSQL-Version is: 5.0.32
Comments
Using the current nightly build, modify the functions-basic.php file circa line 20. Change the define for `DEBUG_ERROR` from `false` to `true` and run the setup. This will give us a trace of where the query is being called.
About to create tables...
Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! in /www/html/zenphoto/zp-core/functions.php on line 474
Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! in /www/html/zenphoto/zp-core/functions.php on line 474
Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! in /www/html/zenphoto/zp-core/functions.php on line 474
Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! in /www/html/zenphoto/zp-core/functions.php on line 474
Done with table create!
Zenphoto Error
MySQL Query ( SELECT `folder`, `sort_order`, `title`, `show`, `dynamic`, `search_params` FROM `zp_albums` WHERE `parentid`= ORDER BY `id` ) failed. Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY `id`' at line 1
Backtrace:
in query (functions.php [462])
in sortAlbumArray (class-album.php [479])
in Album->getSubAlbums (setup.php [70])
in checkAlbumParentid (setup.php [1438])
Warning: require_once(/www/html/zenphoto/themes/) [function.require-once]: failed to open stream: Invalid argument in /www/html/zenphoto/zp-core/functions.php on line 1425
Fatal error: require_once() [function.require]: Failed opening required '/www/html/zenphoto/themes/' (include_path='.:/opt/php5//lib/php') in /www/html/zenphoto/zp-core/functions.php on line 1425
If I copy Versin 1.2.1 on my webspace and run the setup again zenphoto works fine.
The code that setup is executing is not needed if you have successfully run the 1.2.1 release. You can delete the call on checkAlbumParentid (setup.php [1438]) and bypass it. But that code is not really the problem. Something is going wrong with album IDs. But give that a try. I have no idea at this point what could be causing the problem. It should be failing on 1.2.1 as well if it is going to fail.
You may encounter some other problem after getting past this one. If so, there is probably some problem in your database albums table. Unfortunately, you can't delete it without invalidating the images table, so deleting the database entirely and starting over would be the only solution.
So, tomorrow, try the nightly build.
Before the installation I get always two warnings:
PHP magic_quotes_gpc [is enabled]
Warning!
You should consider disabling magic_quotes_gpc. For more information click here.
PHP mbstring package Your internal characater set is ISO-8859-1
Warning!
Setting mbstring.internal_encoding to UTF-8 in your php.ini file is recommended to insure accented and multi-byte characters function properly.
PHP MySQL support
After that I get the error message:
About to update tables...
Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! in /www/html/zenphoto/zp-core/functions.php on line 477
Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! in /www/html/zenphoto/zp-core/functions.php on line 477
Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! in /www/html/zenphoto/zp-core/functions.php on line 477
Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! in /www/html/zenphoto/zp-core/functions.php on line 477
Done with table update
Fixed album 0: id was empty should have been NULL
You can now View your gallery or administer.
Then I created a user and tried to log on, but I get the message:
http://www.nortron.de/zenphoto/zenphoto_error_3.jpg
I am sorry, but since I am not able to create this problem I am not able to find out what is going wrong. I only can make guesses. There is something about your configuation that is causing this, but I do not know what.
Add `debugLogArray('albums', $albums);` just before the line that reads `$albums_r = array_flip($albums);`
Check to be sure you do not have a file `../zp-core/debug_log.txt` if you do, delete it. Then load the admin page. Afterwords you will have the above file. Let us know the contents.
Array albums( 0 => , 1 => )
Array albums( 0 => , 1 => )
Array albums( 0 => , 1 => )
Array albums( 0 => , 1 => )
Array albums( 0 => , 1 => )
Array albums( 0 => , 1 => )
Array albums( 0 => , 1 => )
Array albums( 0 => , 1 => )
Gallery Stats
* 0 images
* 2 albums
* 0 comments
But the Album dir is empty.....
Warning: require_once(/www/html/zenphoto/themes/) [function.require-once]: failed to open stream: Invalid argument in /www/html/zenphoto/zp-core/functions.php on line 1432
Fatal error: require_once() [function.require]: Failed opening required '/www/html/zenphoto/themes/' (include_path='.:/opt/php5//lib/php') in /www/html/zenphoto/zp-core/functions.php on line 1432
Only the adminpage works.
thanks for all your help. If I give you a ftp-account to my webspace and a account to the mysql-database is this helpful to find the bug?
I could possibly debug this with access to your site as you describe. Send email to stephen (at) sbillard (dot) org.