array_slice() expects parameter 1 to be array, null given

Project:phpAlbum.net
Version:0.4.1-16
Component:Code
Category:bug
Priority:critical
Assigned:Unassigned
Status:new
Description

Hi,

This issue has been reported before and I haven't found a solution. After adding new directories & images and doing a scan I get the following errors also when selecting a folder in setup under Galleries it scrolls to the end:

-----------------
Warning
12/10/01 22:58:09 array_slice() expects parameter 1 to be array, null given
/home/ctadmin/public_html/subdomain_images/main.php (Line:981)
Warning
12/10/01 22:58:09 Invalid argument supplied for foreach()
/home/ctadmin/public_html/subdomain_images/main.php (Line:982)
Warning
12/10/01 22:58:13 array_slice() expects parameter 1 to be array, null given
/home/ctadmin/public_html/subdomain_images/main.php (Line:981)
Warning
12/10/01 22:58:13 Invalid argument supplied for foreach()
/home/ctadmin/public_html/subdomain_images/main.php (Line:982)
Warning
12/10/01 22:58:38 array_slice() expects parameter 1 to be array, null given
/home/ctadmin/public_html/subdomain_images/main.php (Line:981)
Warning
12/10/01 22:58:38 Invalid argument supplied for foreach()
/home/ctadmin/public_html/subdomain_images/main.php (Line:982)
Warning
12/10/01 22:59:37 getimagesize(photos_60f85107/JPK/2012/Nosing/POLY STUD_2.jpg) [function.getimagesize]: failed to open stream: No such file or directory
/home/ctadmin/public_html/subdomain_images/main.php (Line:1485)
Warning
12/10/01 22:59:37 Division by zero
/home/ctadmin/public_html/subdomain_images/main.php (Line:1505)
-------------------------

PHP version: 5.3.6

Thanks

Updates

#1 submitted by johnny773 on Thu, 2012-10-04 22:27

As an update to this issue I've done a bit of digging around in code and found that the seq_files value is incorrect in album_directory.php the value is not incremented? all seq_files values are the same except for the last entry which was incremented by 1 after running the directory scan... is this project still active?


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