专注于zen cart的二次开发 >> Zen Cart >> Image Handler 4 (zen cart v1.5.x)非英文后台时的安装问题

Image Handler 4 (zen cart v1.5.x)非英文后台时的,不成功。

这是我在官网回答老外,有人问起,我复制过来

Gerjan is offlineNew Zenner

Join Date
Dec 2007
Posts
66
Plugin Contributions
0

Default Re: Image Handler 4 Support Thread

Quote Originally Posted by weber View Post
well. i find the problem. the “images” menu not the same in spainish.

I asume this is a language related problem…

Quote Originally Posted by weber View Post
the way that ih4 install, well once i had installed ih4. then i re-install the zen cart, the ih4 install will never start….

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.

Default Re: Image Handler 4 Support Thread

Quote Originally Posted by Gerjan View Post
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?

niccol is offlineTotally Zenned

Join Date
Apr 2009
Location
In a traffic jam
Posts
1,693
Plugin Contributions
1

Default Re: Image Handler 4 Support Thread

@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.

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.

懒得翻译了

 

你可以发表评论引用到你的网站或博客,或通过RSS 2.0订阅这个日志的所有评论。
上一篇:
下一篇:
没有评论
我来说两句

  Ctrl+Enter