Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,137
    Plugin Contributions
    11

    Default New Product Preview Button Does Not Upload Image

    155F
    Apache
    PHP 5.6.40
    MySql 5.7.27

    EMP
    News Box Manager
    Sitemap XML
    Dynamic Price Updater
    Superglobals
    Multiple Ship-to Addresses
    Invoice - Multiple Ship-to
    Packing Slip - Multiple Ship-to
    Magic Thumb
    Monthly Sales
    Mod List
    Display Log Files
    Order Comment Boilerplate

    Creating New Product:

    All appears to go fine. Mundane product with no strange shipping, pricing, attributes, etc.
    Clicking on Chose File for the Products Image brings up the explorer window with the possible images.
    Selecting the image and clicking Open places the selected image's name next to the Choose File button.
    Here's where it goes bonkers.

    Clicking on Preview brings up the product with no image.

    1. Click back and no image is listed next to the Choose File button.
    2. Clicking Update creates the product with all data EXCEPT the image.

    Tried adding the image directly to the database. It is accepted and shows on the site.
    Then tried replacing image with another image. Direct-inserted image is removed but new image is not placed in the product.
    No log files, No error files.

    Checked database for errors to no avail.

    Thought it might be connected to the recent upgrade of MySql but there have been other successful product additions/corrections/deletions since then.

    Thoughts?

  2. #2
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,137
    Plugin Contributions
    11

    Default Re: New Product Preview Button Does Not Upload Image

    Looks like it might be a Symlink Race Condition Protection. Recently upgraded to MySql 5.7 No problems on the 1.5.6 test site.

    Getting
    Code:
    [Fri Aug 23 21:44:00.387353 2019] [core:error] [pid 31765] [client ***.***.***.20:44033] Caught race condition abuser. attacker: 1036, victim: 0 open file owner: 0, open file: /home/******/public_html/images/Toasted_and_Salted.jpg, referer: https://******/******/product.php?cPath=40&product_type=1&pID=163&action=new_product_preview
    [Fri Aug 23 21:44:00.519107 2019] [core:error] [pid 31765] [client ***.***.***.20:44033] Caught race condition abuser. attacker: 1036, victim: 0 open file owner: 0, open file: /home/******/*****/images/Toasted_and_Salted.jpg, referer: https://******/******/product.php?cPath=40&product_type=1&pID=163&action=new_product_preview

  3. #3
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,137
    Plugin Contributions
    11

    Default Re: New Product Preview Button Does Not Upload Image

    'Twas a problem with MySql 5.7 Does not affect 1.5.6 and newer.

    Had to set the server to sql_mode='NO_ENGINE_SUBSTITUTION'

  4. #4
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,137
    Plugin Contributions
    11

    Default Re: New Product Preview Button Does Not Upload Image

    Quote Originally Posted by dbltoe View Post
    Looks like it might be a Symlink Race Condition Protection. Recently upgraded to MySql 5.7 No problems on the 1.5.6 test site.

    Getting
    Code:
    [Fri Aug 23 21:44:00.387353 2019] [core:error] [pid 31765] [client ***.***.***.20:44033] Caught race condition abuser. attacker: 1036, victim: 0 open file owner: 0, open file: /home/******/public_html/images/Toasted_and_Salted.jpg, referer: https://******/******/product.php?cPath=40&product_type=1&pID=163&action=new_product_preview
    [Fri Aug 23 21:44:00.519107 2019] [core:error] [pid 31765] [client ***.***.***.20:44033] Caught race condition abuser. attacker: 1036, victim: 0 open file owner: 0, open file: /home/******/*****/images/Toasted_and_Salted.jpg, referer: https://******/******/product.php?cPath=40&product_type=1&pID=163&action=new_product_preview
    FYI for those that walk in these circles. We were only able to generate an error when we selected an image already on the server to add to the product. Trying to use an external image in any way did not throw an error.

 

 

Similar Threads

  1. Replies: 3
    Last Post: 20 Feb 2019, 11:47 PM
  2. v155 "Image Does Not Exist" message, yet image shows up in Product preview
    By lindagal2 in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 9 Jul 2017, 08:15 AM
  3. Product Image does not upload to directory on submit!
    By serovectra in forum General Questions
    Replies: 3
    Last Post: 10 May 2010, 06:51 PM
  4. Image upload not working on new product type
    By benr in forum Setting Up Categories, Products, Attributes
    Replies: 12
    Last Post: 26 Sep 2007, 04:38 PM
  5. Preview button not active when trying to add image.
    By 5Jays217 in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 17 Jun 2006, 05:35 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR