2
I have similar gallery error as the thread subject. I've read the solutions suggested in this forum but still no luck.
I chanced upon this error. Could this be the culprit? I have not touched the (protector) file yet.
Warning: preg_match() expects parameter 2 to be string, array given in [...]/modules/protector/class/protector.php on line 299
The image uploading was ok, the thumbnail appears, but when you click on it, the 'out of bounds' error appears.
Please help, as I really prefer xoopsgallery over the others.
Many many thanks in advance.
PS
Other info:
xoops 2.0.9.3
xoopsgallery 1.3.3.5 (?)the most recent
protector (latest)
PSS
I've just confirmed that this has something to do with protector because when I commented the protector line in the mainfile.php file, xoopsgallery is working fine.
I am no php guru so I don't have a clue how to 'fix' this 'bug'(?). Line 299 of class/protector.php is as follows:
if( ! empty( $_file['name'] ) && preg_match( $bad_pattern , $_file['name'] ) ) {
Thanks once again.