![]() |
|
MySQL Query ( SELECT * FROM `tt_albums` WHERE `parentid`= ) failed. - 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 ( SELECT * FROM `tt_albums` WHERE `parentid`= ) failed. (/thread-7387.html) |
MySQL Query ( SELECT * FROM `tt_albums` WHERE `parentid`= ) failed. - huogas - 2010-07-27 Hello I got an error when accessing my first album: It is the second time this happens. The first time I just reinstalled ZenPhoto and started over. Now I would like not to start again... I think I now know what is the cause of the problem, but don't know how to fix it. At both occasions, I have created a sub-forum and, "by hand", manually transferred one of the photo from the main album to the sub-album. I thought that it was not forbidden because we can load an album using FTP, almost the same thing... Is this related ? (Turning on the debug information doesn't seem to help). Thanks Gaston MySQL Query ( SELECT * FROM `tt_albums` WHERE `parentid`= ) failed. - sbillard - 2010-07-28 When you do these "by hand" changes you should follow it by a database refresh. "by hand" changes will leave dangling entries for the old albums that could cause difficulties. BTW, Zenphoto does provide you the means to move an album to a different folder. MySQL Query ( SELECT * FROM `tt_albums` WHERE `parentid`= ) failed. - huogas - 2010-07-28 About providing a mean to move album around, I knew it, but it was easier to do it manually (files operation. I won't do it again... I ran the database refresh, but I still get the message: If it can help, let's say that if exit Admin and to the frontend, I still have the error on the first thumb display page, but when clicking on page 2, the error doesn't show up. Any idea ? Gaston MySQL Query ( SELECT * FROM `tt_albums` WHERE `parentid`= ) failed. - sbillard - 2010-07-28 I guess you will have to tell us your Zenphoto version and what theme you are using. Needless to say, we are not seeing this issue. MySQL Query ( SELECT * FROM `tt_albums` WHERE `parentid`= ) failed. - huogas - 2010-07-28 Here is the information: Dans Gallery statistics, for a specific picture, if I click on View, the photo will be displayed. If I click on Edit, I will have the error message. Thanks for helping Gaston MySQL Query ( SELECT * FROM `tt_albums` WHERE `parentid`= ) failed. - sbillard - 2010-07-29 Please find the following line at the beginning of functions-basic.php change it to read This will give us a trace of where the error is occurring. Perhaps that will shed some light on what is going wrong. The other thing you might try is to install the nightly build. When I say I am not seeing this, I should be specific--it is not occurring for me on the nightly build. MySQL Query ( SELECT * FROM `tt_albums` WHERE `parentid`= ) failed. - huogas - 2010-07-29 Zenphoto encountered an error -> query (class-gallery.php [665])
MySQL Query ( SELECT * FROM `tt_albums` WHERE `parentid`= ) failed. - huogas - 2010-07-29
MySQL Query ( SELECT * FROM `tt_albums` WHERE `parentid`= ) failed. - huogas - 2010-07-29 Setup -> query (class-gallery.php [665]) MySQL Query ( SELECT * FROM `tt_albums` WHERE `parentid`= ) failed. - huogas - 2010-07-29 After trying to recreate the database using the same root directory (with the above result), I finally started over with a new directory. I think that the problem started when I created an album with the name:
Please note the 3 dots at the end (were parts of the directory name). It seems to be what created the problem. Makes sense ? Gaston MySQL Query ( SELECT * FROM `tt_albums` WHERE `parentid`= ) failed. - acrylian - 2010-07-29 That makes sense as dots normally indicate a file suffix and may have confused your server setup. MySQL Query ( SELECT * FROM `tt_albums` WHERE `parentid`= ) failed. - huogas - 2010-07-29 I'm not that sure that the server is the problem. If so, there will be a lot of problems. Let's suppose that you have a directory ending with dots, are you sure that this situation will be handled correctly by the sorter function ? The sorter function will not suppose that there is a sub-album, therefore a parent, but a parent inexistent in the db ? Just trying to make sure that there is not a @bug@. Thanks Gaston MySQL Query ( SELECT * FROM `tt_albums` WHERE `parentid`= ) failed. - acrylian - 2010-07-29 Well, I would never use dots in any file (except for the suffix) or folder name as I would not special chars (to be on the secure side). I have no real idea what goes wrong for you but since you say it started with that name with the dots.. Album titles and names are independent, so if you really need "drole-de-face..." use it as a title and "drole-de-face" as a name. Regarding sortAlbumArray() I think sbillard will be able to tell more (I am not familiar with that one right now). MySQL Query ( SELECT * FROM `tt_albums` WHERE `parentid`= ) failed. - huogas - 2010-07-29 Thanks You are right about using dots. But, as we saw it, it could happens: I did it even if I'm not supposed to do it. May be that ZP should check more what the names are ? Anyway, the incident is closed, but the problem still has to be addressed. Thanks for your support, Gaston MySQL Query ( SELECT * FROM `tt_albums` WHERE `parentid`= ) failed. - huogas - 2010-07-29 By the way, I forgot to say that it's a great software. I like it. Gaston MySQL Query ( SELECT * FROM `tt_albums` WHERE `parentid`= ) failed. - sbillard - 2010-07-29 This was definately caused by the "..." in the file name. Zenphoto will treat that as an invalid album. Unfortunately, most of Zenphoto does not check to see if an album instantiation was successful. So you get "down stream" errors likt this one. |