Results 1 to 10 of 1688

Hybrid View

  1. #1
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,908
    Plugin Contributions
    13

    Default Re: Image Handler 4 (for v1.5.x) Support Thread

    Quote Originally Posted by cubmanky View Post
    Someone pointed out that I was using a .JPG and changed it to lower case and it worked.
    that may be true, but it has nothing to do with the error message that you have posted.

    you have an illegal string offset.

    my guess is that you are running php7 on a v154 site. which is not recommended. see:

    https://www.zen-cart.com/content.php...o-run-zen-cart

    php7 handles strings/arrays differently than earlier versions.

    the ZC team addressed these issues in ZC v155.

    you can try running php5.6 and it could address all of the issues you are having. else you can update, or you can try my fix.

    if you are currently running less than php7, and still experiencing these issues, i will crawl back into the hole from whence i entered....
    author of square Webpay.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  2. #2
    Join Date
    Jan 2018
    Posts
    165
    Plugin Contributions
    4

    Default Re: Image Handler 4 (for v1.5.x) Support Thread

    I think this is from this mod; I get the following error:

    Cannot use string offset as an array

    PHP Code:
    End Image Handler changes 2 of 2
            $image_regular 
    zen_image($products_image_medium$products_ar['products_name'], $width$height'class="adt-img"');
            
    $large_link zen_href_link(FILENAME_POPUP_IMAGE_ADDITIONAL'pID=' $products_id '&pic=' $i '&products_image_large_additional=' $products_image_medium'SSL');
            
    $script_link '<a href="'.$product_link.'" title="' $products_ar['products_name'] . '">' $image_regular .'</a>';
            
    // List Box array generation:
            
    $list_box_contents[$row][$col] = array('params' => 'class="item "''text' => array("imglink"=>$script_link"img"=>$image_regular));
            
    $col ++;
            if (
    $col > (IMAGES_AUTO_ADDED -1)) {
              
    $col 0;
              
    $row ++;
            } 

  3. #3
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,873
    Plugin Contributions
    96

    Default Re: Image Handler 4 (for v1.5.x) Support Thread

    Quote Originally Posted by tmccaff View Post
    I think this is from this mod; I get the following error:

    Cannot use string offset as an array

    PHP Code:
    End Image Handler changes 2 of 2
            $image_regular 
    zen_image($products_image_medium$products_ar['products_name'], $width$height'class="adt-img"');
            
    $large_link zen_href_link(FILENAME_POPUP_IMAGE_ADDITIONAL'pID=' $products_id '&pic=' $i '&products_image_large_additional=' $products_image_medium'SSL');
            
    $script_link '<a href="'.$product_link.'" title="' $products_ar['products_name'] . '">' $image_regular .'</a>';
            
    // List Box array generation:
            
    $list_box_contents[$row][$col] = array('params' => 'class="item "''text' => array("imglink"=>$script_link"img"=>$image_regular));
            
    $col ++;
            if (
    $col > (IMAGES_AUTO_ADDED -1)) {
              
    $col 0;
              
    $row ++;
            } 
    ... and which version might you be using?

    Please post the entire log that you received.
    Last edited by lat9; 10 Feb 2018 at 01:26 PM. Reason: Asked for log

 

 

Similar Threads

  1. v158 Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread
    By lat9 in forum All Other Contributions/Addons
    Replies: 749
    Last Post: 20 May 2026, 03:47 PM
  2. Attribute image replaces main product image on select [Support Thread]
    By exoticcorpse in forum All Other Contributions/Addons
    Replies: 176
    Last Post: 14 Dec 2025, 12:55 AM
  3. v139h Image Handler 3 Support Thread (for ZC v1.3.9)
    By DivaVocals in forum All Other Contributions/Addons
    Replies: 1095
    Last Post: 2 Oct 2017, 12:42 PM
  4. v138a Image Handler 2 (for ZC v1.3.8 ONLY) Support
    By timkroeger in forum All Other Contributions/Addons
    Replies: 7098
    Last Post: 12 Oct 2014, 03:48 AM
  5. Image Handler Support Please
    By nadinesky in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 30 Sep 2013, 03:47 PM

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