Jump to content

problem in uploading image


ibe

Recommended Posts

After searching the forum i do not have solution for my problem.

I can upload category images with no peoblem. But i can not upload any product images.

I followed all the advices in the forum. I spoke to my hosting support and nothing helped.

Can anyone help me?

Thanx.

Link to comment
Share on other sites

apdate:

This the error i am getting:

Fatal error: Call to undefined function checkimageuploaderror() in /home7/xxxx/public_html/xxx/admin959/tabs/AdminProducts.php on line 917

 

this is from the file:

/* Adding a new product image */

elseif (isset($_FILES['image_product']['name']) && $_FILES['image_product']['name'] != NULL )

{

if ($error = checkImageUploadError($_FILES['image_product']))

$this->_errors[] = $error;

 

if (!sizeof($this->_errors) AND isset($_FILES['image_product']['tmp_name']) AND $_FILES['image_product']['tmp_name'] != NULL)

{

if (!Validate::isLoadedObject($product))

$this->_errors[] = Tools::displayError('Cannot add image because product add failed.');

elseif (substr($_FILES['image_product']['name'], -4) == '.zip')

return $this->uploadImageZip($product);

else

 

What is the error? is it the product's name?

Thans,

Link to comment
Share on other sites

edding more information:

Server information

 

Prestashop Version: 1.4.4.1

Server information: Linux #1 SMP Tue Sep 6 12:18:02 MDT 2011 x86_64

Server software Version: Apache

PHP Version: 5.2.17

MySQL Version: 5.1.58-community-log

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...