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.
It was the language/swedish.php - file that caused it.
But i guess i still got the error-log if you need to look further in to the problem.
Lets see. If i got the right error-log it says something like this:
incredible, it worked! I can live with english admin as long as ewerything works. Thank you for your help![09-Apr-2012 23:14:27] PHP 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 <strong>convert</strong> binary in <em>includes/extra_configures/bmz_image_handler_conf.php</em>.', , 1001, now(), now(), NULL, 'zen_cfg_select_option(array(''yes'',''no''),') in /XXX/includes/classes/db/mysql/query_factory.php on line 101
Last edited by Luftkaffe; 9 Apr 2012 at 11:15 PM.
installer won't start.
no menu at all.
english zc1.5+ spainish language pack
installer won't start.
no menu at all.
english zc1.5+ spainish language pack
well. i find the problem. the "images" menu not the same in spainish.
the way that ih4 install, well once i had installed ih4. then i re-install the zen cart,
the ih4 install will never start....
I asume this is a language related problem...
So you managed to install IH4 succesfully? Or not?
From what I understand you did install IH4, and then re-installed Zen-Cart? Why? If you reinstall ZC you should also re-install modules... I think you need to explain more or give more details.
YES. the ih installer locate the images menu, change to your languages. or like me, just set the groud id=4. or if you don't want to modify the ih4 files. just change the spainish.php, set the menu title to "images", after IH4 install, change it back.
One bug: once i install IH4 and then re-install the zen cart, the installer will never activate....i had to re-upload ih4 even they are right there. any way to let the install re-install?
Last edited by DivaVocals; 11 Apr 2012 at 03:46 AM.
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.
@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:
and change this to: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'];
This is an error in the code.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;
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.
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.
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.
Nick
iszent.com
@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 niccol; 11 Apr 2012 at 07:19 PM.
Nick
iszent.com
Bookmarks