Archive for the ‘osCommerce 3.0 alpha 5’ Category

Error creating products: PHP Warning: move_uploaded_file(name.JPG)

Sunday, February 14th, 2010

The full error message is:

PHP Warning: move_uploaded_file(name.JPG) [<a href=’function.move-uploaded-file’>function.move-uploaded-file</a>]: failed to open stream: Permission denied in …oscdir…/admin/includes/classes/upload.php on line 84

Proved to be a kind of intermediate permissions error. Goes away like other permissions problems with 777 insecure settings. To give the web server write access on Hostroute, you need owner set to cpanel user, group set to nobody and write permissions to both. You have to get Hostroute support to set group nobody, as it’s not permitted from the account shell access even when that’s turned on.

This exact error was after group was set to nobody but it only had read access; change permissions in ftp program.

This relates to install instructions:

Error creating products: PHP Warning: file_exists()

Thursday, February 11th, 2010

The full error message is:

PHP Warning: file_exists() [<a href=’function.file-exists’>function.file-exists</a>]: open_basedir restriction in effect. File(/usr/bin/convert) is not within the allowed path(s): (…actual settings removed…) in …oscdir…/admin/includes/applications/products/actions/save.php on line 23

It turns out just to be a configuration error. Osc 3.0A5 defaults to Imagemagick for image processing with the path set to /usr/bin/convert. Delete this in program locations to make the error go away. See