Page 1 of 1

Errors in 07-28 release

Posted: 28 Jul 2008, 23:51
by markam24
- 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/xxx/public_html/stagey/imagevue/include/ivFilepath.class.php on line 124

Re: Errors in 07-28 release

Posted: 29 Jul 2008, 00:43
by jhamrick
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.

Posted: 29 Jul 2008, 03:34
by Nick
Could you guys provide urls please?

Posted: 30 Jul 2008, 01:48
by jhamrick
Here is a screenshot of it on my admin page...

It breaks as soon as I change themes and then try to clear cache or anything, otherwise if I stick on the default them it SEEMS to continue to work.

Image

misc.josh-renee.com

Posted: 31 Jul 2008, 17:51
by markam24
Appears to have been FIXED in the 7-30-08 V2 Beta