1
VIVIsectI
Invision Filemanager Error
  • 2006/12/14 18:03

  • VIVIsectI

  • Just popping in

  • Posts: 3

  • Since: 2006/12/14


I am receiving the following error when I try to load the index page of the Filemanager module:

Warning: Invalid argument supplied for foreach() in file /modules/filemanager/index.php line 1128

Additionally, once the page is loaded my users can specify a file to upload and go through the process but the file never uploads to the server.

I have seen several posts that hint at the necessity of turning register_globals=on but this doesn't seem to be a very secure route to go about setting my site up. Perhaps these two things are completely unrelated through. I know next to nothing about PHP but I'm pretty usefull with HTML and I know SQL well.

I do appreciate any assistance that can be provided.

TJ

2
VIVIsectI
Re: Invision Filemanager Error
  • 2006/12/14 18:58

  • VIVIsectI

  • Just popping in

  • Posts: 3

  • Since: 2006/12/14


here is the code segment it is referencing in the index.php. The syntax looks correct but like I said, I don't know anything about PHP.

foreach ($temp_name as $key => $var)
{
$templates[$key] = $temp_description[$key];
}

3
davidl2
Re: Invision Filemanager Error
  • 2006/12/14 19:00

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26


What XOOPS & Php version are you using?

4
VIVIsectI
Re: Invision Filemanager Error
  • 2006/12/14 19:50

  • VIVIsectI

  • Just popping in

  • Posts: 3

  • Since: 2006/12/14


PHP vs 4.4.4
Apache/1.3.37 (Unix)
mysql Ver 14.12 Distrib 5.0.24a, for slackware-linux-gnu
xoops is the latest available for download from this site.

You'll have to forgive me, I've only been working with this for 2 days so this is a learning experience more than anything. I commented out the section of code that appeared to be generating the error and now I can upload files and their are no visable problems on the page but I'd like to understand why.

5
Peekay
Re: Invision Filemanager Error
  • 2006/12/14 19:54

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


Filemanager will work with register_globals 'off', however, more importantly it needs PHP safe_mode 'off'. It runs fine with the config in my sig, so if it isn't a safe mode issue it's probably a PHP, MySQL or XOOPS version conflict.

It's a great module (IMHO)
A thread is for life. Not just for Christmas.

Login

Who's Online

411 user(s) are online (345 user(s) are browsing Support Forums)


Members: 0


Guests: 411


more...

Donat-O-Meter

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

Latest GitHub Commits