troubleshooting Question

Problem with loading image into shop?

Avatar of Amanda Watson
Amanda WatsonFlag for Australia asked on
DatabasesWeb DevelopmentPHP
13 Comments1 Solution368 ViewsLast Modified:
Hi There,
I am trying to work out an error with a shopping cart.
I didn't write this code so I am not sure what the problem is.
It has worked in the past ok, but now it is throwing an error.

When you try to load a new product and try to load an image it throws this error
Warning: move_uploaded_file() [function.move-uploaded-file]: open_basedir restriction in effect. File(/home/ca/cam/campsaustraliawide.com/public/www/images/Camps_5.jpg) is not within the allowed path(s): (/home/9-web/97/19/campsaustraliawide.com/:/home/ca/cam/campsaustraliawide.com/:/usr/local/lib/php:/tmp/php_upload) in /home/9-web/97/19/campsaustraliawide.com/public/www/admin/edit_product.php on line 194

Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: open_basedir restriction in effect. File(/home/ca/cam/campsaustraliawide.com/public/www/images/Camps_5.jpg) is not within the allowed path(s): (/home/9-web/97/19/campsaustraliawide.com/:/home/ca/cam/campsaustraliawide.com/:/usr/local/lib/php:/tmp/php_upload) in /home/9-web/97/19/campsaustraliawide.com/public/www/images/makethumb.txt on line 36

Warning: imagecreatefromjpeg(/home/ca/cam/campsaustraliawide.com/public/www/images/Camps_5.jpg) [function.imagecreatefromjpeg]: failed to open stream: Operation not permitted in /home/9-web/97/19/campsaustraliawide.com/public/www/images/makethumb.txt on line 36

Warning: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions in /home/9-web/97/19/campsaustraliawide.com/public/www/images/makethumb.txt on line 119

Warning: imagejpeg(): supplied argument is not a valid Image resource in /home/9-web/97/19/campsaustraliawide.com/public/www/images/makethumb.txt on line 129

The edit_product.php is attached as well as the makethumb.txt

I hope someone can help me fix this edit-product.txt
makethumb.txt
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 13 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 13 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros