1
erecto
ERROR: requested index [-1] out of bounds [13]
  • 2004/5/10 22:54

  • erecto

  • Just popping in

  • Posts: 1

  • Since: 2004/5/10



2
diyerk
Re: ERROR: requested index [-1] out of bounds [13]
  • 2005/3/25 10:49

  • diyerk

  • Just popping in

  • Posts: 8

  • Since: 2005/3/16


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.

3
Herko
Re: ERROR: requested index [-1] out of bounds [13]
  • 2005/3/25 11:40

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


Perhaps you can report this problem at http://www.peak.ne.jp/xoops/ wher GIJOE holds sway Knowing him, he'll look into this real fast

Herko

Login

Who's Online

438 user(s) are online (162 user(s) are browsing Support Forums)


Members: 0


Guests: 438


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Oct 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits