尝试安装似乎不兼容编译器的Magento模块-Magento 1.7.0.2 [英] Trying to install a Magento Module that seems to not be Compiler Compatible - Magento 1.7.0.2

查看:100
本文介绍了尝试安装似乎不兼容编译器的Magento模块-Magento 1.7.0.2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试了一段时间如何在magento 1.7.0.2上安装magento扩展

trying for some time how to install magento extension on magento 1.7.0.2

法师专家的货到付款- http://www .magentocommerce.com/magento-connect/cash-on-delivery-6259.html

Cash On Delivery by mage specialist - http://www.magentocommerce.com/magento-connect/cash-on-delivery-6259.html

尝试

三个步骤 1)禁用缓存和编译,安装扩展并重新启用缓存和编译 2)禁用编译和缓存,安装扩展并启用编译和缓存

three steps 1) disable cache and compliation , install the extension and reenable the cache and compilation 2) disable compliation and cache , install the extension and enable the compilation and cache

获取错误:致命错误:在第546行的/home/bwcom/public_html/app/Mage.php中找不到类"MSP_CashOnDelivery_Helper_Data"

getting errors : Fatal error: Class ‘MSP_CashOnDelivery_Helper_Data’ not found in /home/bwcom/public_html/app/Mage.php on line 546

请告知我应该采取什么步骤

please advise what steps should i follow

推荐答案

激活并打开编译器后,正确安装模块的步骤.

禁用编译器,禁用Magento缓存,并通过删除所有内容来手动清除缓存var/cache/

Disable the compiler, disable the Magento cache and manually clear cache by deleting all mage--? subfolders in var/cache/

安装模块并登录到Magento管理面板,以便安装程序运行.注销,然后重新登录以完全加载管理代码,adminhtml块和adminhtml外观文件.

Install the module and log into the Magento admin panel so the installers run. Log back out and then back in to fully load admin code, adminhtml blocks and adminhtml skin files.

在后端和前端测试模块操作,并运行网站而不进行编译,直到您对模块功能完全满意为止.

Test module operation on backend and frontend and run website without compilation until you're satisfied that the module is fully functional.

在安装模块和测试网站功能之前,启用所有正在使用的Magento缓存.

Enable all the Magento caching you were using before you installed the module and test website function.

用大锤敲打脚的顶部,这样您就可以从痛苦的角度上了解以下内容.

Take a sledge hammer and smack the top of your foot so you have a pain reference for what follows.

进入System Tools -> Compiler页并重新编译代码.这将清空并重新创建已编译的代码库.如果不这样做,则会使您的网站松散到旧代码和新代码的混搭中.

Go into the System Tools -> Compiler page and do a code recompile. This empties and recreates the compiled code base. If you do not do this, you loose your website to a mishmash of old and new code.

仅在成功重新编译后,您才能尝试以启用编译.您可能会将网站放到一个与Magento kludge 编译器不完全兼容的模块上...

Only after a successful recompile do you attempt to enable compilation. You probably will loose your website to a module that's not been made fully compatible with the Magento kludge compiler... Disable the compiler and your website should be operational again. You may have to do another Magento cache clear.

与您的第三方模块开发人员联系,看看他们是否打算在Magento的 kludge 编译器下使用它.

Contact your third party module developer and see if they intend for it to work under Magento's kludge compiler...

在大多数情况下,在Magento 1.7.xx和1.8.xx下,存在大量的代码重写,这使编译器的性能增强比起1.4.xx引入时要低得多.还有其他方法可以使您减少挫败感,并提高性能.如果是有用的模块和无用的编译器之间的折衷,则该模块更为重要.

For the most part, under Magento 1.7.x.x and 1.8.x.x, there has been a lot of code rewrite that makes the compiler a lot less performance enhancing that it used to be when it was introduced for 1.4.x.x and there are other methods that will cause you less frustration and more performance gain out there. If it's a tossup between a useful module and a useless compiler, the module is more important.

在模块安装使您陷入困境时手动禁用编译器

要手动禁用编译器...

To manually disable the compiler...

1)找到includes/config.php,并在行的开头加上#来注释以下两行:

1) find includes/config.php and comment the two following lines by putting a # at the beginning of the line like so:

#define('COMPILER_INCLUDE_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR.'src');
#define('COMPILER_COLLECT_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR.'stat');

2)转到includes/src并删除所有内容

2) go to includes/src and delete all the contents

3)转到var/session并删除所有会话文件

3) go to var/session and delete all the session files

4)转到var/cache并删除所有mage--?文件夹

4) go to var/cache and delete all the mage--? folders

或使用shell/中的脚本,请转到shell文件夹并在命令行中执行:

or to use the script in shell/, go to shell folder and execute at the command line:

php -f compiler.php -- clear

然后按照上述步骤3和4删除会话文件和缓存文件夹

and then delete session files and cache folders as in steps 3 and 4 above

现在应该完全禁用编译器,并且您应该能够启动Magento安装.

The compiler should now be completely disabled and you should be able to start up your Magento installation.

这篇关于尝试安装似乎不兼容编译器的Magento模块-Magento 1.7.0.2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆