Page 6 of 169 FirstFirst ... 456781656106 ... LastLast
Results 51 to 60 of 1685
  1. #51
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: Image Handler 4 Support Thread

    Quote Originally Posted by niccol View Post
    @weber
    Nice one. Yes that is a good work around. The IH code will be updated next time round I am sure. For the time being people installing in a language other than english can make a small alteration to the file includes/init_includes/init_image_handler.php. Find where it says:

    Code:
        /* Find Config ID of Images */
        $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'];
    and change this to:

    Code:
           /* Find Config ID of Images */
        $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;
    This is an error in the code.

    For those of you who are going to ask 'why not just set it to 4 in the first place?' the aim was to cover the rare occurence that someone had changed the configuration id of images. It was meant well but was an error.
    Thanks for posting this niccol.. I was holding off on posting this fix because I wanted to properly QA the fix and confirm it with my testers.. (color me thorough and cautious!) Just got confirmation form my testers this morning.. (Tested with both Dutch and Swedish language packs)

    There is one other tip for those folks who are using a language other than English in their stores:
    You MUST copy all of the language files in YOUR_ADMIN/includes/languages/english to YOUR_ADMIN/includes/languages/YOUR_LANGUAGE

    I have updated the install instructions in the readme accordingly and will be submitting an update for IH4 this weekend. (for those who've already gotten IH4 installed there is NO NEED to update your successful IH4 install with this updated version)

    Included in this update is a slight change to the naming convention used for the backup files created by the IH4 auto-installer. It was pointed out to me by a community member that some servers restrict the upload of .BAK files.. So I've modified the IH4 package files and supporting code accordingly.

    Quote Originally Posted by niccol View Post
    Finally, if you find yourself in a position where you cannot get into admin because this error is always stopping you then you need to delete a single file which is includes/auto_loaders/config.image_handler.php . That will stop the installer trying to run every time and allow you to make the changes detailed above and solve the problem.
    Good tip.. I will also add this to the readme file!

    Quote Originally Posted by niccol View Post
    Finally, finally, for those who are saying that the auto-installer is a bad idea the thought is that it just does exactly what you would do if you installed manually. It doesn't do anything new or different. It finds the active template and installs into that. In the same way as one would do by manually. The only difference between this installer and installing manually is that it always creates back-ups of overwriten files. Which has been a source of many many problems on the support threads.
    The auto-installer is a GREAT idea, and it is NOT going away!!!!

    I firmly believe it will cut down on the number of support questions related to faulty installs (the most COMMON reason for support questions in the IH2 and IH3 thread can be DIRECTLY attributed to faulty installs)

    Not only does the auto installer do all the things you normally would do in an install it does all the things that most shopowners DO NOT do (and should) during an install.. The backup and restore features of the auto-installer are what makes this INVALUABLE to shopowners..
    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.

  2. #52
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: Image Handler 4 Support Thread

    Actually niccol just re-uploading the includes/auto_loaders/config.image_handler.php file alone doesn't work.. The install fails at the point where the install function attempts to create the backup files.. (hence the reason for my advice to weber)

    The errors seem to indicate that the install function can't find some of the files needed during the install. I assume this is because of the cleanup that happens during the initial auto-install..
    Quote Originally Posted by niccol View Post
    @weber
    Sorry, to disagree with Diva just a little bit, but you can get the installer to run again just by re-uploading the includes/auto_loaders/config.image_handler.php file.

    This file is deleted after a successful install. Which stops the installer running again and again and again. It is this file that triggers the installation process. (Which is why if you get into problems with the installer it is the one to delete to stop the process)

    If you re-upload it and all the other files are in the right place then the installer will run again. It will overwrite the core files again and create new back-ups.

    BUT

    what Diva says is still the best way of proceeding. Upload the whole thing again and off you go.
    Last edited by DivaVocals; 11 Apr 2012 at 07:43 PM.
    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.

  3. #53
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Image Handler 4 Support Thread

    I'll check that.

  4. #54
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: Image Handler 4 Support Thread

    Quote Originally Posted by niccol View Post
    I'll check that.
    Cool.. I might as well tell you the WHOLE story on how I made this discovery..

    I was installing IH4 on an upgraded store with older Image Handler image configuration settings in the DB (IH2). I ran the install and noticed that the install did not remove the deprecated image settings..

    Now I know we both looked at and updated that section of the code (with the list of deprecated configuration settings), but darned if it didn't work the way I expected..

    For me of course it was no biggie. So I manhandled those entries out of the configuration table and started my IH4 install over.. I re-uploaded the includes/auto_loaders/config.image_handler.php clicked on the Admin Home link and got the message that install failed at the point where the install function attempts to create the backup files..

    So I uploaded everything again and clicked the Admin Home link and FINALLY my install worked..
    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.

  5. #55
    Join Date
    May 2007
    Location
    SW Florida
    Posts
    1,051
    Plugin Contributions
    2

    Idea or Suggestion Re: Image Handler 4 Support Thread

    Downloaded the current version as of today and followed the install directions word by word (seemed strange not renaming your_template) did the ftp as instructed and

    PERFECTO!!!

    Newest Site: ChargerPros - Stuff4Toys

  6. #56
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Image Handler 4 Support Thread

    @stuff4toys
    that's what we like to hear :-)

    @diva
    Ha ha! you are right. The template files get cleaned up. One 'dumbass idiot point' for me.

    So, the way to re-install is definitely to re-install the whole thing!

  7. #57
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: Image Handler 4 Support Thread

    Quote Originally Posted by niccol View Post
    @diva
    Ha ha! you are right. The template files get cleaned up. One 'dumbass idiot point' for me.

    So, the way to re-install is definitely to re-install the whole thing!
    'dumbass idiot' are the last words I'd use to describe you!!
    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.

  8. #58
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,566
    Plugin Contributions
    30

    Default Uninistalling/removing IH3 database entries from an upgraded 1.5

    I only use IH for resizing and watermarks and upgraded to 1.5 without bothering to implement the admin side. Works fine.

    So, if there is no admin page (which contains the IH3 install/uninstall control) how do you uninstall IH3 prior to IH4.?

    Answer: with this script, pasted and run in Admin->Install SQL Patches:
    Code:
    DELETE FROM configuration WHERE 
    configuration_key = 'LARGE_IMAGE_MAX_WIDTH' OR 
    configuration_key = 'LARGE_IMAGE_MAX_HEIGHT' OR 
    configuration_key = 'SMALL_IMAGE_FILETYPE' OR 
    configuration_key = 'SMALL_IMAGE_BACKGROUND' OR 
    configuration_key = 'WATERMARK_SMALL_IMAGES' OR
    configuration_key = 'ZOOM_SMALL_IMAGES' OR 
    configuration_key = 'ZOOM_IMAGE_SIZE' OR 
    configuration_key = 'SMALL_IMAGE_HOTZONE' OR 
    configuration_key = 'SMALL_IMAGE_QUALITY' OR 
    configuration_key = 'MEDIUM_IMAGE_FILETYPE' OR 
    configuration_key = 'MEDIUM_IMAGE_BACKGROUND' OR 
    configuration_key = 'WATERMARK_MEDIUM_IMAGES' OR 
    configuration_key = 'ZOOM_MEDIUM_IMAGES' OR 
    configuration_key = 'MEDIUM_IMAGE_HOTZONE' OR 
    configuration_key = 'MEDIUM_IMAGE_QUALITY' OR 
    configuration_key = 'LARGE_IMAGE_FILETYPE' OR 
    configuration_key = 'LARGE_IMAGE_BACKGROUND' OR 
    configuration_key = 'WATERMARK_LARGE_IMAGES' OR 
    configuration_key = 'LARGE_IMAGE_QUALITY' OR 
    configuration_key = 'WATERMARK_GRAVITY' OR 
    configuration_key = 'ZOOM_GRAVITY' OR 
    configuration_key = 'IH_RESIZE' OR 
    configuration_key = 'SHOW_UPLOADED_IMAGES';
    Maybe this should be in the readme too!
    Steve
    github.com/torvista: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto...

  9. #59
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: Uninistalling/removing IH3 database entries from an upgraded 1.5

    Actually if you look at the my post just above to niccol, the auto-install is supposed to take care of this (removing old deprecated IH image settings and properly registering the IH4 menu).. The part of the aut-installer which removes the deprecated image settings is not working right now when you are installing over a previous version of Image Handler and niccol has generously offered to take a looksee to see why that might be.. The auto-installer does install the IH4 menu just fine when you are installing over a previous version of Image Handler.

    For now I'd rather leave this tip in the support thread until we can get the auto-installer working. In the meantime if it becomes an issue for folks I can refer them to your thread..

    Quote Originally Posted by torvista View Post
    I only use IH for resizing and watermarks and upgraded to 1.5 without bothering to implement the admin side. Works fine.

    So, if there is no admin page (which contains the IH3 install/uninstall control) how do you uninstall IH3 prior to IH4.?

    Answer: with this script, pasted and run in Admin->Install SQL Patches:


    Maybe this should be in the readme too!
    Last edited by DivaVocals; 11 Apr 2012 at 11:03 PM.
    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.

  10. #60
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,566
    Plugin Contributions
    30

    Default Re: Uninistalling/removing IH3 database entries from an upgraded 1.5

    the auto-install is supposed to take care of this (removing old deprecated IH image settings and properly registering the IH4 menu)
    The instructions say
    You MUST do a complete uninstall of the hacked up version of Image Handler3
    I found no mention that the IH4 installer cleans up old db entries.
    Steve
    github.com/torvista: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto...

 

 
Page 6 of 169 FirstFirst ... 456781656106 ... LastLast

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: 582
    Last Post: 18 Feb 2024, 07:53 PM
  2. Attribute image replaces main product image on select [Support Thread]
    By exoticcorpse in forum All Other Contributions/Addons
    Replies: 158
    Last Post: 24 Aug 2020, 05:07 PM
  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

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