Koozali.org: home of the SME Server

Noah's Classifieds Image Upload Problem ...

Anonymous

Noah's Classifieds Image Upload Problem ...
« on: May 12, 2004, 05:26:03 PM »
Has anybody tried the free classifieds script "Noah's Classifieds"?

It looks and works better than most of the other scripts out there, including the pay scripts.  I've been able to get it installed on my SME server (v6) but receive the following error when trying to submit an ad with a photo attachment:

"The attached file is not a valid image file (must be gif, jpg, or png)."

I'm told that this script works fine on other servers, so it has to be something it doesn't like in the configuration of the SME server that it's not working with.  

If anybody has any experience with this, or has any suggestions, I would really appreciate it!

Thanks!

Anonymous

Follow up
« Reply #1 on: May 17, 2004, 07:25:06 PM »
As a follow up, I've found the following errors in the message log.  Anybody know what this means?

May 17 13:21:46 sme ¬L ^H¬I ^H[29658]: PHP Warning:  open_basedir restriction in effect. File is in wrong directory in /home/e-smith/files/ibays/Primary/html/class/advertisement.php on line 915

May 17 13:21:46 sme ¬L ^H¬I ^H[29658]: PHP Warning:  getimagesize: Unable to open '/tmp/phpqsJKkl' for reading. in /home/e-smith/files/ibays/Primary/html/class/advertisement.php on line 915

May 17 13:21:46 sme ¬L ^H¬I ^H[29658]: PHP Warning:  open_basedir restriction in effect. File is in wrong directory in /home/e-smith/files/ibays/Primary/html/class/category.php on line 235

May 17 13:21:46 sme ¬L ^H¬I ^H[29658]: PHP Warning:  getimagesize: Unable to open '/tmp/phpqsJKkl' for reading. in /home/e-smith/files/ibays/Primary/html/class/category.php on line 235

Anonymous

Noah's Classifieds with SME
« Reply #2 on: May 19, 2004, 08:37:10 PM »
I've found the problem.  Because PHP scripts cannot run outside of an ibay by default this script fails (as it tries to pull a temp image file from /tmp)

If you want to use this Noah's Classifieds, or another script that generates a similar problem, you have to modify your default security settings.  Here's the FAQ:

http://www.e-smith.org/faq.php3#6q12

Good Luck!