Hi all
I'm brand new here, trying my first installation of ZP.
Alas, looks like there is a problem : when I try to publish an album, this message appear : La requête MySQL ( SELECT * FROM `zp_images` WHERE `albumid`= ) a échoué. Erreur : 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 '' at line 1
Any solution ?
Comments
Then if you still have this problem please find the following line in `globsl-functions.php`:
`define('DEBUG_ERROR', !defined('RELEASE')); // set to true to supplies the calling sequence with zp_error messages`
change it to read:
`define('DEBUG_ERROR', true);`
This will provide a bit more information on the above error. Please post the result.
Apparently, two values are set on !defined('RELEASE')
Thanks for ansering : I'm just lost !
Notice: Zenphoto a produit une erreur 404 sur /test/www.johnofthetower.com. Voir le fichier log de debug pour plus de détails. in /homez.406/johnofth/www/zp-core/functions.php on line 2097
Warning: Cannot modify header information - headers already sent by (output started at /homez.406/johnofth/www/zp-core/zp-extensions/static_html_cache.php:229) in /homez.406/johnofth/www/index.php on line 179
Warning: Cannot modify header information - headers already sent by (output started at /homez.406/johnofth/www/zp-core/zp-extensions/static_html_cache.php:229) in /homez.406/johnofth/www/index.php on line 180
404 errors are caused by referencing a page not found by Zenphoto. The debug log will have more details of what was referenced. But a likely cause is that mod_rewrite is not working correctly.
I'm using the current (as of 01/02/11) version. If I goto themes and then on a particular theme, click "Set [themename] theme options", and then try to apply changes, i get the following error:
Zenphoto encountered an error
MySQL Query ( SELECT `name`, `value`, `id` FROM `zp_options` WHERE `name`='Allow_search' AND `ownerid`= AND `theme`='default' ) failed. MySQL returned the 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 'AND `theme`='default'' at line 1
Backtrace:
-> query (functions-db-MySQL.php [90])
-> query_single_row (functions.php [1937])
-> setThemeOption (admin-functions.php [857])
-> processCustomOptionSave (admin-options.php [414])
However, if I activate a theme and then edit it's options by clicking "options" then "themes", I can apply changes successfully.