Magento模块在localhost上运行良好

Magento模块在localhost上运行良好

本文介绍了Magento模块在localhost上运行良好,但在实时服务器上却无法运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我这里有一个奇怪的情况....

I have a weird case here....

我现在正在制作一个简单的magento模块.某种脚本注入模块(类似于Google Analytics(分析)模块).我已经为该模块构建了管理配置(由system.xml定义)

I'm making a simple magento module right now. Some kind of script injection module (similar to google analytics module). I've built the admin config for that module (which is defined from system.xml)

如图所示.这个模块在我的本地主机上工作得很好.但是在实时服务器上变得很奇怪.尽管我完全确保所有模块都已启用,但这些模块看起来根本没有启用.既可以通过magento管理区域,也可以通过app/etc/modules进行.管理员配置区域永远不会出现在实时服务器的magento安装中.

as seen on the image. This module works very well on my localhost. But it's getting weird on the live server. The modules looks like it doesn't enabled at all although I have totally make sure it's all already enabled. Both via magento admin area and also via app/etc/modules. That admin config area never appear on live server's magento installation.

有人知道这个问题是什么问题吗?或至少告诉我如何以及在哪里调试?我一直在研究它到magento核心代码,但是卡在了magento核心代码周围的getSingleton()函数上.我不明白这种MVC方式的东西:p

does anybody know what's the issue with this problem?or at least tell me how and where should I debug it? I've been digging it to magento core code but getting stuck on getSingleton() function somewhere around magento core code. I don't understand that way-too-MVC stuff :p

如果有人可以对此进行解释和指导,我将感到非常高兴

I would be very glad if someone could explain and guide me on this

谢谢:)

推荐答案

最常见的问题与区分大小写有关.如果您拥有Windows托管,则大写/小写字符错误将不可见,并且可以正常工作.但是一旦进入linux托管,该模块将无法正常工作.

The most common problems are associated with case sensitivity. If you have Windows hosting, then the error in the uppercase/lowercase characters is not visible and it works. But as soon as it gets to linux hosting, the module will not work.

检查设置和文件夹/文件中的路径-使其匹配.

Check the paths in the settings and folders/files - so that they match.

这篇关于Magento模块在localhost上运行良好,但在实时服务器上却无法运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-28 15:07