I figured out the problem, the directory doesn't exist, so any of the dir functions bork and throw a "result too large" error. ERROR CHECKING! Utility functions still need it guys.
Replace the following at line 183(ish) in include/dir_inc.php:
Code:
chdir( $the_dir );
$the_array = findAllFiles( ".", $the_array );
chdir( $original_dir );
return( $the_array );
with the following:
Code:
if(!file_exists($original_dir."/".$the_dir)) return $the_array;
else return findAllFiles($original_dir."/".$the_dir, $the_array);
Also, as a side note, since I found the initial error with the object oriented dir class and associated read() function...I would highly suggest replacing all of them with the opendir/readdir/closedir functions I mentioned in a previous post...at least until the dir class is up to par with opendir and readdir.
I understand the desire to be object oriented and use classes...but if the classes don't work in a robust manner, don't use them.
Bookmarks