1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

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

Discussion in 'SiteBuilder' started by SacxSol.com, Nov 9, 2011.

  1. SacxSol.com

    SacxSol.com Basic Pleskian

    23
    23%
    Joined:
    Dec 9, 2008
    Messages:
    31
    Likes Received:
    0
    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
     
  2. SacxSol.com

    SacxSol.com Basic Pleskian

    23
    23%
    Joined:
    Dec 9, 2008
    Messages:
    31
    Likes Received:
    0
    There is no one who has this problem or knows the solution?

    :(
     
  3. SacxSol.com

    SacxSol.com Basic Pleskian

    23
    23%
    Joined:
    Dec 9, 2008
    Messages:
    31
    Likes Received:
    0
    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!!
     
  4. SacxSol.com

    SacxSol.com Basic Pleskian

    23
    23%
    Joined:
    Dec 9, 2008
    Messages:
    31
    Likes Received:
    0
    Admin parallels?
    Nothing answer?
    Is there no one who has this problem or knows the solution?
     
  5. SacxSol.com

    SacxSol.com Basic Pleskian

    23
    23%
    Joined:
    Dec 9, 2008
    Messages:
    31
    Likes Received:
    0
    Admin parallels?
    Nothing answer?
     
  6. Dmitry Frantsev

    Dmitry Frantsev Golden Pleskian

    28
    57%
    Joined:
    Sep 19, 2005
    Messages:
    1,911
    Likes Received:
    0
    Hello,

    Do you get any errors in Sitebuilder Admin CP -> Logs section during making these actions with uploading images?

    Please try to check points from the following article: http://kb.parallels.com/en/5503
     
  7. SacxSol.com

    SacxSol.com Basic Pleskian

    23
    23%
    Joined:
    Dec 9, 2008
    Messages:
    31
    Likes Received:
    0
    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: Dec 9, 2011
  8. SacxSol.com

    SacxSol.com Basic Pleskian

    23
    23%
    Joined:
    Dec 9, 2008
    Messages:
    31
    Likes Received:
    0
    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.
     
  9. SacxSol.com

    SacxSol.com Basic Pleskian

    23
    23%
    Joined:
    Dec 9, 2008
    Messages:
    31
    Likes Received:
    0
    Dmitry Admin parallels?
    Five month and nothing answer?
     
  10. SacxSol.com

    SacxSol.com Basic Pleskian

    23
    23%
    Joined:
    Dec 9, 2008
    Messages:
    31
    Likes Received:
    0
    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: May 8, 2012
Loading...