markam24 wrote:- Uploaded the new files.
- Uploaded an additional content folder
- Changed permissions on the required folders/files
Problems:
1.) If I set the default image to my new folder/thumbs the flash gallery shows nothing on opening. The page count sats Page NaN / NaN.
2.) If I try to clear cache or recreate thumbs I get a .php error, no thumbs visible, and the galleries no longer work at all.
The .php error is as follows:
Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/spiritfa/public_html/stagey/imagevue/include/ivFilepath.class.php on line 124
I got this by when i entered a folder with the new stuff... the only thing i did was update and then add my old them back in (i used beyond compare to diff all the files and get them synced back up)... after switching over to my new theme, I went into a content folder to try the new handy thumbnail code and I got this error as well. (I still get the error even if I switch back to the Default theme)
This is at the end of all the error spew for me when I try to clear the cache...
Warning: Cannot modify header information - headers already sent by (output started at /homepages/14/d187650663/htdocs/Misc/imagevue/include/ivFilepath.class.php:124) in /homepages/14/d187650663/htdocs/Misc/imagevue/include/ivControllerFront.class.php on line 98
and this is the code that it says it doesn't like...
/**
* Checks if file suffix is in array
*
* @param string $filename
* @param array $extArray
* @param string $separator
* @return boolean
*/
function matchSuffix($filename, $extArray, $separator = '.')
{
return in_array(strtolower(ivFilepath::suffix($filename, $separator)), $extArray);
}
So it seems (and this is based on me being a C++ programmer, so forgive me for being mostly clueless) that $extArray is coming in dirty, or in_array doesn't want an array as the second parameter.
Looking at the old code, it appears that this function was not altered at all, so I'm guessing that whatever is calling matchSuffix is where the problem lies...
maybe... =)
Also, I tried deleting folder data just to make sure that something hadn't changed with that, but I got the same thing.