扩展模型未加载 [英] Extension model is not loaded

查看:66
本文介绍了扩展模型未加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有Magento的开发站点和生产站点. 这两个站点均安装了名为"Affiliate Pro"的扩展程序.

We have a development site and a production site for Magento. Both sites have an extension called 'Affiliate Pro' installed.

我需要从我的脚本访问模型. 所以我写了一个测试脚本.

I need to access the model from my script. So I wrote a test script.

<?php
  require_once '../app/Mage.php';
  umask(0);
  Mage::app('default');
  $v = Mage::getModel('affiliate/affiliatecustomers');
  var_dump($v);
?>

它可以在我们的开发站点上正常工作,但不能在生产站点上工作.

It works fine with our development site but not the production site.

[开发站点输出]

object(MW_Affiliate_Model_Affiliatecustomers)#117 (15) { ["_eventPrefix":protected]=> string(13) "core_abstract" ["_eventObject":protected]=> string(6) "object" ["_resourceName":protected]=> string(28) "affiliate/affiliatecustomers" ["_resource":protected]=> NULL ["_resourceCollectionName":protected]=> string(39) "affiliate/affiliatecustomers_collection" ["_cacheTag":protected]=> bool(false) ["_dataSaveAllowed":protected]=> bool(true) ["_isObjectNew":protected]=> NULL ["_data":protected]=> array(0) { } ["_hasDataChanges":protected]=> bool(false) ["_origData":protected]=> NULL ["_idFieldName":protected]=> NULL ["_isDeleted":protected]=> bool(false) ["_oldFieldsMap":protected]=> array(0) { } ["_syncFieldsMap":protected]=> array(0) { } }

[生产现场输出]

bool(false)

该扩展程序在两个站点上均能正常运行,但该脚本在生产站点上不起作用.

The extension functions well for both sites but the script doesn't work for the production site.

我必须检查什么配置?

谢谢.

山姆

推荐答案

这意味着扩展名存在问题,请检查文件是否存在,清除缓存,禁用编译.检查var日志文件夹中是否有错误.

This means there is something wrong with the extension, Check if the files are there, clear the cache, disable compilation. check the var log folder for errors.

由马吕斯(Marius)回答

Answered by Marius

这篇关于扩展模型未加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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