Results 1 to 10 of 1688

Hybrid View

  1. #1
    Join Date
    Oct 2012
    Posts
    2
    Plugin Contributions
    0

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

    I've read the 39page thread,No answered for this question.
    Zencart 1.5.1 english version, MySQL 5.0.96, php:5.3.8 (Zend: 2.3.0) ,Self-built template
    After my uploading the Image Handler 4 to my host, I can't get into my admn page,it shows the error message:
    Code:
    WARNING: An Error occurred, please refresh the page and try again.
    Fatal error: 1064:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' 1001, now(), now(), NULL, 'zen_cfg_select_option(array(''yes'',''no''),')' at line 1 :: INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (NULL, 'IH resize images', 'IH_RESIZE', 'no', 'Select either -no- which is old Zen-Cart behaviour or -yes- to activate automatic resizing and caching of images. --Note: If you select -no-, all of the Image Handler specific image settings will be unavailable including: image filetype selection, background colors, compression, image hover, and watermarking-- If you want to use ImageMagick you have to specify the location of the convert binary in includes/extra_configures/bmz_image_handler_conf.php.', , 1001, now(), now(), NULL, 'zen_cfg_select_option(array(''yes'',''no''),') in /home/easyoutl/public_html/includes/classes/db/mysql/query_factory.php on line 121

  2. #2
    Join Date
    Oct 2012
    Posts
    2
    Plugin Contributions
    0

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

    problem solved!
    admin/includes/init_includes/init_image_handler.php
    Replace
    Code:
    $sql = "SELECT configuration_group_id FROM ".TABLE_CONFIGURATION_GROUP." WHERE configuration_group_title='".BOX_CONFIGURATION_IMAGES."' LIMIT 1";
        $result = $db->Execute($sql);
            $im_configuration_id = $result->fields['configuration_group_id'];
    with
    Code:
    $sql = "SELECT configuration_group_id FROM ".TABLE_CONFIGURATION_GROUP." WHERE configuration_group_title='Images' LIMIT 1";
        $result = $db->Execute($sql);
            $im_configuration_id = $result->fields['configuration_group_id'];
       if($im_configuration_id == '') $im_configuration_id = 4;

  3. #3
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

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

    And I need to chime in that this is specific to your setup.. For most everyone else the code in IH4 works as is without needing to modify the auto-installer..

    Quote Originally Posted by feedmysky View Post
    problem solved!
    admin/includes/init_includes/init_image_handler.php
    Replace
    Code:
    $sql = "SELECT configuration_group_id FROM ".TABLE_CONFIGURATION_GROUP." WHERE configuration_group_title='".BOX_CONFIGURATION_IMAGES."' LIMIT 1";
        $result = $db->Execute($sql);
            $im_configuration_id = $result->fields['configuration_group_id'];
    with
    Code:
    $sql = "SELECT configuration_group_id FROM ".TABLE_CONFIGURATION_GROUP." WHERE configuration_group_title='Images' LIMIT 1";
        $result = $db->Execute($sql);
            $im_configuration_id = $result->fields['configuration_group_id'];
       if($im_configuration_id == '') $im_configuration_id = 4;
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

 

 

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