![]() |
|
printLatestUpdatedAlbums generate sql error - 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: printLatestUpdatedAlbums generate sql error (/thread-6198.html) |
printLatestUpdatedAlbums generate sql error - zenflava - 28-11-2009 Hey all, I was digging through the forum and didn't find related issues. one, page load increase from < 5 seconds to 12 seconds ~ higher Zenphoto error MySQL Query (Select id, title, folder, thumb FROM 'flava_albums' WHERE 'show'=1) failed. i ran the setup again but the remedy still exist. below is the installation information from zen overview page Zenphoto version 1.2.6 [4335] (Official Build) What did i miss? printLatestUpdatedAlbums generate sql error - acrylian - 28-11-2009 The function call seems not correct to me. You set some parameters to "false" which are not boolean. printLatestUpdatedAlbums generate sql error - sbillard - 28-11-2009 Your mysql error seems to be saying that the MySql server did not complete its query. There is actually nothing wrong with the query itself, but it will of course return an entry for every published album. 1732 albums does not sound like a lot, maybe the server you are running MySQL on is not adequate for your gallery. printLatestUpdatedAlbums generate sql error - acrylian - 28-11-2009 I have to correct myself, it is surely not how you set the options. I confused myself with the long parameter list. The reaason might lie in your quite big site and some code of that function not really optimized. printLatestUpdatedAlbums generate sql error - zenflava - 29-11-2009 @acrylian - you're correct i did set false ($showdesc) which is not boolean. @sbillard - I'm aware that there's nothing wrong with query. I saw some people running more albums on production and it's stable. By the way, Can you elaborate a little bit, which settings do i need to change? should i bump up php memory limit? should i create a different server just to host mysql? printLatestUpdatedAlbums generate sql error - sbillard - 29-11-2009 Sorry, I am not expert on MySQL. I use a hosted provider and they do the MySQL setup, etc. For me everything with MySQL just works correctly with no real performance issues. The page will of course load faster without the printLatestUPdatedAlbums() because there is a bit of processing that function needs to do. However, I did take a look at the code and did some optimizations. You could try tonight's nightly build and see if it helps. But the actual query of the error stays as it is necessary. printLatestUpdatedAlbums generate sql error - zenflava - 29-11-2009 Thank you acrylian and sbilliard , I'll try tonight nightly build. I added this code to .htaccess Header unset ETag FileETag None Header unset Last-Modified AddOutputFilterByType DEFLATE text/html text/plain text/xml SetOutputFilter DEFLATE YSlow score 71 or equal to C (originally the score was 52 or equal to E, lol) printLatestUpdatedAlbums generate sql error - zenflava - 29-11-2009 @sbilliard - So i sync up with the latest nightly build (Zenphoto version 1.2.6 [4732]). printLatestUpdatedAlbums generate sql error - acrylian - 29-11-2009 Just to clarify the differences:
printLatestUpdatedAlbums generate sql error - zenflava - 30-11-2009 Thanks for the clarification Malte. printLatestUpdatedAlbums generate sql error - acrylian - 30-11-2009 Are all albums shown maybe new then it would naturally show the same as the latest created album is also the latest updated album. If not we may have a bug. printLatestUpdatedAlbums generate sql error - zenflava - 30-11-2009 Yes all the albums shown, It's a strange behaviour when both functions rendering the same thing. It may be a bug. By the way, the page is loading faster now. I didn't realize there's an html cache plugin. lol. It speeds up the loading like crazy. Thank you for this plugin. printLatestUpdatedAlbums generate sql error - acrylian - 30-11-2009 Please try the nightly build as we have done some optimizations yesterday to both stats. printLatestUpdatedAlbums generate sql error - zenflava - 01-12-2009 Malte... this is awesome. Now I can see the difference between these two functions. printLatestUpdatedAlbums generate sql error - acrylian - 01-12-2009 To be fair, actually sbillard did those optimizations..:-) printLatestUpdatedAlbums generate sql error - zenflava - 02-12-2009 Thank you to both of you guys. |