Welcome to the PrestaShop Forum! We hope you'll share your comments and suggestions with us. We ask that you please post in English to the main sections of the PrestaShop Forum. If you want to write in another language, please post in the corresponding PrestaShop Community section below.
Please note that PrestaShop Community sections are largely self-moderated. PrestaShop team members may or may not participate in non-English sections. To improve the chances of receiving feedback to your question or comment, please post it in English to the main sections of our Forum.

Vous parlez français ? par ici !
Please note that PrestaShop Community sections are largely self-moderated. PrestaShop team members may or may not participate in non-English sections. To improve the chances of receiving feedback to your question or comment, please post it in English to the main sections of our Forum.

Vous parlez français ? par ici !
Home Text Editor Image Upload Error
Started by dummer, Jan 11 2010 10:05 AM
Home Text Editor Image Upload Error
#1
Posted 11 January 2010 - 10:05 AM
Hi guys over the past 48 hours i have had a problem with my Homepage logo banner on the Home Text Editor module. I have been trying to update the banner but keep getting the error
An error occurred during the image upload
I have been able to change the banner in the past and only encountered this error yesterday. After reading a few other threads i have changed the CHMOD to 777 on the homepage_logo.jpg and editorial.xml but neither of these options have fixed this error.
Please can anyone help.
Thanks
gareth
An error occurred during the image upload
I have been able to change the banner in the past and only encountered this error yesterday. After reading a few other threads i have changed the CHMOD to 777 on the homepage_logo.jpg and editorial.xml but neither of these options have fixed this error.
Please can anyone help.
Thanks
gareth
#2
Posted 11 January 2010 - 11:20 AM
and CHMOD on folders?
#3
Posted 11 January 2010 - 11:27 AM
hi jakcrabbit what folders should i chmod? the past threads said to only chmod the editorial and the homepage_logo.jpg. This has only been a problem since yesterday.
#4
Posted 11 January 2010 - 11:29 AM
I mean dir, try to set CHMOD777 for dir:
modules
modules/editorial
modules
modules/editorial
#5
Posted 11 January 2010 - 12:00 PM
hi thanks for that, i just applied chmod 777 to modules/editorial but still says error occured during image upload
#6
Posted 11 January 2010 - 12:06 PM
hi actually i just realised that i can not change th file permission to 777 as when i go to file attributes in filezilla is keeps on reverting to 755, any ideas?
#8
Posted 28 December 2010 - 05:20 AM
I followed the link that muktadir told, but in place of overwrite all my file "images.inc.php", I added just a piece of code in the beginning of imageResize function.
So, before the line:
I added
And it solved all my problem :)
So, before the line:
list($sourceWidth, $sourceHeight, $type, $attr) = getimagesize($sourceFile);
I added
$destFile=str_replace('\','/',$destFile);
if(is_array($sourceFile))
{
//echo"then its an upload";
move_uploaded_file($sourceFile['tmp_name'],$destFile);
$sourceFile=$destFile;
}
And it solved all my problem :)
#9
Posted 23 January 2011 - 07:29 PM
Thank you so much, lgmsampaio. It works perfectly :)
#10
Posted 07 December 2011 - 02:04 AM
lgmsampaio, on 28 December 2010 - 05:20 AM, said:
I followed the link that muktadir told, but in place of overwrite all my file "images.inc.php", I added just a piece of code in the beginning of imageResize function.
So, before the line:
I added
And it solved all my problem
So, before the line:
list($sourceWidth, $sourceHeight, $type, $attr) = getimagesize($sourceFile);
I added
$destFile=str_replace('\\','/',$destFile);
if(is_array($sourceFile))
{
//echo"then its an upload";
move_uploaded_file($sourceFile['tmp_name'],$destFile);
$sourceFile=$destFile;
}
And it solved all my problem
Hi friend
i have problem like this
can you hetp me to solve it ?
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











