• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

I use eShop on my site but I cannot upload images to products.

SacxSol.com

Basic Pleskian
Hello, when adding new or editing an existent product in eShop I can browse and upload an image with Upload button. Sitebuilder wizard generates "Operation has been completed" and there are no errors, however the image is not uploaded actually.
The same issue is for ImageGallery module with "Upload button" only for "Edit Image" not for new Image.
I have saw, readed and does the step on http://kb.parallels.com/5428 but nothing

The same issue is for ImageGallery module with "Upload button" only for "Edit Image" not for new Image.
I have saw, read and executed the step on http://kb.parallels.com/5428 but nothing, always the same issue.

I have notice that the only image that the system has not issue is with a BMP image.
Another thing that I have notice is that when the system upload that image it use a tmp directory (/usr/local/sitebuilder/htdocs/tmp/*) and the permission for that file changes depending on the type of extension of the image.
When the system upload a BMP image, save this image, in tmp directory, with 644 permission (-rw-r--r--); while, when the system upload a JPG image, save this image , in tmp directory, with 600 permission (-rw-------) .
Why this? Maybe is this the problem?
How can I do?

My system data are:
Parallels Plesk Sitebuilder for Linux/Unix
4.5.0 Hotfix-20110711 (2011071115)
Centos-5-x86_64
 
Cannot change image after activating suPHP

Hello, after I activate the suPHP system, I cannot change image in the gallery or eshop module.

I can upload new images, but when I try to change them Sitebuilder wizard generates "Operation has been completed" and there are no errors, however the image is not uploaded.

I have saw, checked and done the http://kb.parallels.com/5428 and http://kb.parallels.com/8154 but I receive the same issue.

I open Wizard procedure, click on edit Image and the system open the "Wizard/Edit/Modules/ImageGallery/Image/Form/Upload" page then I choice a new Image and click on submit button. The system performs the procedure "/Wizard/Edit/Modules/ImageGallery/Image/Form/Update" and then tells me "Operation has been completed" but the image is not uploaded.

In the sitebuilder log I found the error " [client xxx.xxx.xxx.xxx] (13)Permission denied: file permissions deny server access: /usr/local/sitebuilder/htdocs/tmp/15302/1322126504_fb886e84ecdf2fd3537c.jpg"

I notice that this file (/usr/local/sitebuilder/
htdocs/tmp/15302/1322126504_fb886e84ecdf2fd3537c.jpg) has the permissions to 600 and "sitebuilder:sitebuilder" as owner and group.

But if I try to upload a .bmp image, the system change correctly the image, and if I check the permissions of this image (/usr/local/sitebuilder/
htdocs/tmp/15302/1322128112_fb886e84ecdf2fd3537c.bmp) I saw that the permissions is to 644 and "sitebuilder:sitebuilder" as owner and group.


Is there anyone who has solved this error?
Thank you very much!!
 
As I wrote above, when I try to upload an image I do not receive any error, I receive the message "Operation has been completed" , so in the Logs section there isn't error.

I had already seen this article (http://kb.parallels.com/en/5503) and I had already tried those solutions, but they had not solved the problem.

I think that the problem is in the file that manages the upload image (/usr/local/sitebuilder/include/Base/Image.php) because if I try to upload a .bmp image, the system upload correctly the image, but if I try to upload another type of image, like .jpg, the system does not upload the image.
 
Last edited:
Can you check the file /usr/local/sitebuilder/include/Base/Image.php for to see why it upload correctly the .bmp image and not the .jpg image?
Can you check, in this file, how it work with .bmp image and how with .jpg image?
I think that it not work in the same way, otherwise the system would upload all two type of images correctly.
 
I finally found the solution to the problem.
This problem is encountered when you use the Sitebuilder with the php_suexec and mod_suphp .

If anyone needs file with the solution can contact me in PM, otherwise if an administrator is interested in solving this problem for all sitebuilder user's, can modify the file /usr/local/sitebuilder/include/Base/Upload.php and add the command "$this->chmod( 0644 );" to the "public function move( )" before the "return" command.
 
Last edited:
Back
Top