Thumbnails don't appear at all

Project:phpAlbum.net
Version:0.4.1-14_fix05
Component:Code
Category:bug
Priority:normal
Assigned:patrik
Status:new
Attachment:phpalbum_problem.JPG (88.25 KB)
Description

Hello,

I used PhpAlbum for some years. But from one day since I added some photos to my album, the thumbnails never more appear at all.
I check the cache write capability and its okay, I also tried to disable the two cache options so cache isn't use but that don't work too.

Here is my album URL hosted by Free provider: http://m.guill.free.fr/phpAlbum/main.php?cmd=album

I check the error log an it seem there is a problem with array_slice function which needs an array in first argument.
I copied these errors details from PhpAlbum Error Logs page:
Warning
08/11/21 02:59:16 array_slice() [function.array-slice]: The first argument should be an array
/mnt/109/sdb/f/7/m.guill/phpAlbum/main.php (Line:981)
Warning
08/11/21 02:59:16 Invalid argument supplied for foreach()
/mnt/109/sdb/f/7/m.guill/phpAlbum/main.php (Line:982)

So I replaced array_slice function by this code:
/*$fl=array_slice($filelist,$start_with,$number_of_thmbs);*/

$fl=array();
$last = $start_with + $number_of_thmbs;
if( $last > sizeof($filelist) )
$last = sizeof($filelist);
$n=0;
foreach ($filelist as $key => $record) {
if( $n >= $start_with && $n < $last )
$fl[$key] = $record;
$n++;
}
unset($n);
unset($last);

but now the problem is said to be foreach receiving an invalid argument on the code I provided.

I saw that input is result of a function calling db_select_all function, I don't know if Free doesn't support this function or why else it doesn't send an array as result.

I read somewhere on the net that cache size is limited to 5Mo on Free server and also thought it can cause the problem, as I started having this trouble while I added photos to the album...

I would rather not send my login/pswd if we could do without.

Thanks for you help

Guillaume

Updates

#1 submitted by patrik on Tue, 2008-11-25 07:33
Priority:critical» normal
Assigned to:» patrik
Status:new» in work

You will have to send me your FTP-Login and your PA-Admin login so I can take a look on this. Your phpinfo page looks ok, GD library is installed, so I have no idea what it could be.


style="display:inline-block;width:468px;height:60px"
data-ad-client="ca-pub-8698264690166658"
data-ad-slot="4417389723">