Results 1 to 8 of 8
  1. #1
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,311
    Plugin Contributions
    125

    Default Believed bug: includes/classes/upload.php line 84

    Getting the following log:

    Code:
    [10-Aug-2018 16:37:47 UTC] Request URI: /shop/admin/categories.php?action=update_category&cPath=1, IP address: 24.176.185.195
    #1  trim() called at [/home/sparkswhsle/public_html/shop/admin/includes/functions/general.php:441]
    #2  zen_not_null() called at [/home/sparkswhsle/public_html/shop/includes/classes/upload.php:87]
    #3  upload->parse() called at [/home/sparkswhsle/public_html/shop/admin/categories.php:233]
    
    [10-Aug-2018 16:37:47 UTC] PHP Warning:  trim() expects parameter 1 to be string, object given in /home/sparkswhsle/public_html/shop/admin/includes/functions/general.php on line 441
    Possible root cause: should includes/classes/upload.php line 84 be changed from:

    Code:
                    'tmp_name' => (isset($GLOBALS[$this->file]) ? $GLOBALS[$this->file] : ''),
    to:

    Code:
                    'tmp_name' => (isset($GLOBALS[$this->file . '_tmp_name']) ? $GLOBALS[$this->file . '_tmp_name'] : ''),
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  2. #2
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,849
    Plugin Contributions
    11

    Default Re: Believed bug: includes/classes/upload.php line 84

    can you provide the steps necessary to replicate the error?

    best.
    author of square Webpay.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  3. #3
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,311
    Plugin Contributions
    125

    Default Re: Believed bug: includes/classes/upload.php line 84

    I cannot. I am just seeing these logs after the fact.
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,400
    Plugin Contributions
    94

    Default Re: Believed bug: includes/classes/upload.php line 84

    You know, of course, that without replication of the error you're throwing spit-balls on the ceiling to see what sticks in any "solution".

  5. #5
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,849
    Plugin Contributions
    11

    Default Re: Believed bug: includes/classes/upload.php line 84

    Quote Originally Posted by lat9 View Post
    You know, of course, that without replication of the error you're throwing spit-balls on the ceiling to see what sticks in any "solution".
    my thoughts exactly.... although perhaps i would have used a different analogy...
    author of square Webpay.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  6. #6
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,311
    Plugin Contributions
    125

    Default Re: Believed bug: includes/classes/upload.php line 84

    I'm kind of hoping someone else who has had this problem will chime in and describe how it happens. I haven't yet had time to dup it; I just saw it yesterday. Obviously I am going to try.
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

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

    Default Re: Believed bug: includes/classes/upload.php line 84

    Was trying to add images to attributes in an upgrade from 1.5.4. First, former x spurt had turned off images for attributes. Of course, Attributes Image Swatch etc. would not show up. Once I made the suggested change, all image data showed in the Attributes Controller.

    HTH

  8. #8
    Join Date
    Jul 2009
    Location
    Texas
    Posts
    209
    Plugin Contributions
    2

    Default Re: Believed bug: includes/classes/upload.php line 84

    Quote Originally Posted by swguy View Post
    I'm kind of hoping someone else who has had this problem will chime in and describe how it happens. I haven't yet had time to dup it; I just saw it yesterday. Obviously I am going to try.

    This bug happens every time I try and add an attribute using the attributes controller on my site.

    Code:
    Request URI: /ADMIN_DIR/attributes_controller.php?action=add_product_attributes&attribute_page=1&products_filter=19771
    
    #1  trim() called at [/home/HOME_DIR/ZEN_DIR/ADMIN_DIR/includes/functions/general.php:441]
    #2  zen_not_null() called at [/home/HOME_DIR/ZEN_DIR/includes/classes/upload.php:87]
    #3  upload->parse() called at [/home/HOME_DIR/ZEN_DIR/ADMIN_DIR/attributes_controller.php:308]
    
    [09-Oct-2018 11:08:16 America/Chicago] PHP Warning:  trim() expects parameter 1 to be string, object given in /home/HOME_DIR/ZEN_DIR/ADMIN_DIR/includes/functions/general.php on line 441
    The above fix seems to work fine.

    This doesn't happen in a stock install of zen cart, seems to have something to do with enabling attribute images somewhere.

 

 

Similar Threads

  1. v155 is admin/includes/classes/upload.php correct?
    By carlwhat in forum Bug Reports
    Replies: 2
    Last Post: 10 Sep 2016, 05:10 PM
  2. Replies: 3
    Last Post: 3 Aug 2009, 06:13 AM
  3. Warning: Division by zero in /includes/classes/shipping.php on line 94
    By keycraze in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 21 Sep 2008, 09:40 PM
  4. PhP question about a line of code in includes/classes/order.php
    By dbrewster in forum Managing Customers and Orders
    Replies: 12
    Last Post: 1 Feb 2007, 03:30 PM

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