![]() |
|
MySQL Query issue after installation - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: MySQL Query issue after installation (/thread-4271.html) |
MySQL Query issue after installation - mapi - 2008-12-17 Hi - I installed Zenphoto version 1.2.2 [2983], and as long as I am on the admin pages, it works nice and neatly with my DB (MySQL version 4.0.27). But once I logoff the admin interface, and try to access the gallery only via /zenphoto/index.php - this is the error message I get (below, I replaced all backticks with & , as this forum automatically would convert it to code):
Anyone who can help out? -thanks in advance!! MySQL Query issue after installation - sbillard - 2008-12-17 The bit Presumably you are using the random image function as that seems where this code is. If so, find the lines which read: MySQL Query issue after installation - mapi - 2008-12-17 thanks sbillard! inserting your suggested lines into template-functions.php ended up in a new error, so I removed that again. Any other help how to deal with this? How to approach a solution, if there really was a MYSQL issue - what other data should I provide?
NB - I cannot manage to keep the backticks visible, how do I quote the code with backticks inside of it? MySQL Query issue after installation - sbillard - 2008-12-17 No way that I know of to actually display back ticks on the forum. Bit of a pain, I agree. As to the potential of it being a MySQL issue, you would just use a different version. If you could move up to the version 5 level it might resolve the issue. But even version 4 should be allowing this syntax, so maybe it is just a problem for the particular version you are on and any other might work. MySQL Query issue after installation - mapi - 2008-12-18 I just upgraded to MySQL 5.x, and now the gallery works fine as expected. Apart from that... let me express this is a beautiful piece of work you have done here, very very nice look and feel ;-) cheers, mapi MySQL Query issue after installation - sbillard - 2008-12-18 MySQL version 5 is the prefered version for Zenphoto. |