Random block problem after upgrade to .722 postnuke and gall
overlord_mn
Joined: 2002-10-05
Posts: 5 |
Posted: Thu, 2002-12-12 01:25 |
Please excuse the length, I am just trying to be thorough and have examples of the situation. The random block seemed to work okay after the upgrade to postnuke .722 and gallery 1.3.2 (from postnuke .721 and gallery 1.3.1), but two days later an assistant admin was organizing up the folders (merging, nesting, removing etc) and I started getting errors on the random block (specified to display a specific album / folder called "netweirdness"). I was able to specify a different album / folder called "website art" and it worked without any errors. However, when I went to pick the "website art folder" I noticed the dropdown had some albums listed multiple times and some only once. [two screenshots] http://www.webwarrior.net/modules/gallery/albums/43Admin/gallery_randomimageblock54.jpg With no specific folder listed I got the following sequence (each is the result of a refresh of the frontpage which displays the random block) ERROR: requested index [111] out of bounds [4] ERROR: requested index [699] out of bounds [80] then a picture (from the album-folder called "lunchables") No photo chosen. ERROR: requested index [892] out of bounds [80] I then grabbed a copy of the latest souce (is that 54? I had 41 before grabbing the latest source), uploaded it onto the server. I then deactivated the block from within the block administration of postnuke, removed it and created a new block. Tried viewing it again picture (from the album-folder "website art") ERROR: requested index [455] out of bounds [94] picture (from the album-folder "adult humor") picture (from the album-folder "lunchables" again) No photo chosen. No photo chosen. picture (from the album-folder "doctor fun") picture (from the album-folder "adult art") ERROR: requested index [1048] out of bounds [80] If I specify one of the folders that works (doctor fun, for instance) it works just fine. Any ideas of what is causing this? (for right now I left it set on the working folder "doctor fun") Joe |
|
Posts: 77
Hi,
try the following. Delete the block-random.cache file in the album directory! This helps in many situations. :wink:
Joerg
Posts: 5
Deleting it caused
"Warning: fopen("/html/modules/gallery/albums/block-random.cache", "r") - No such file or directory in /html/modules/gallery/platform/fs_unix.php on line 53"
Posts: 5
However, I checked both the gallery 1.3.2 tarball and the gallery randomblock latest source tarball and neither one had this file.
So I deactivated the block, deleted the block and recreated the block. Working like a champ now.
Thanks for the heads up joerg (would have been nice to say remove and readd the block after removing that file...but hey...it got me on the road to working, so no complaints here. :grin: )
Posts: 77
Hi,
the file is not in the distribution. It's generated on runtime in the album-directory of your gallery installation.
Joerg