fecshop service method is not exit. fecshop\services\helper\Format::actionNumberFormat

bug问题 · abmemory · 于 3年前 发布 · 1498 次阅读

fecyo在升级- 1.9.4 -版本后进入商城首页发生如下报错: Invalid Call – yii\base\InvalidCallException fecshop service method is not exit. fecshop\services\helper\Format::actionNumberFormat

in D:\wamp64\www\fecshop\vendor\fancyecommerce\fecshop\services\Service.php at line 60}

    public function __call($originMethod, $arguments)
    {
        if (isset($this->_callFuncLog[$originMethod])) {
            $method = $this->_callFuncLog[$originMethod];
        } else {
            $method = 'action'.ucfirst($originMethod);
            $this->_callFuncLog[$originMethod] = $method;
        }
        if (method_exists($this, $method)) {
            $this->beginCall($originMethod, $arguments);
            $return = call_user_func_array([$this, $method], $arguments);
            $this->endCall($originMethod, $arguments);

            return $return;
        } else {
            throw new InvalidCallException('fecshop service method is not exit.  '.get_class($this)."::$method");
        }
    }

共收到 9 条回复
Fecmall#13年前 0 个赞

把fecmall升级到2.8.6+ , 目前可以升级到2.8.7

sweetyuan#23年前 0 个赞

升到2.8.7 还是会出现这个问题。

Invalid Call – yii\base\InvalidCallException fecshop service method is not exit. fecshop\services\helper\Format::actionNumber_format

Fecmall#33年前 0 个赞

@sweetyuan #2楼 Fecro,fecyo,fecbbc等扩展(如果安装了),也需要升级

Fecmall-升级卸载应用

qwzjoyr#42年前 0 个赞

需要升级的都升级了,但还是没解决这问题

Fecmall#52年前 0 个赞

fecmall没有升级导致的

你可以看看 @fecshop\services\helper\Format.php 下面,是不是 只有函数number_format(),没有 numberFormat(),如果是这样,说明你的fecmall版本太低。

你可以去github上面对比一下文件看一下,这个是为了解决函数命名冲突问题,因为 number_format 本身就是php的函数,因此将 number_format() 改成了 numberFormat()

qwzjoyr#62年前 0 个赞

复制一个把number_format()函数并把函数名 改成了 numberFormat(),首页是能显示了 但点击首页菜单栏的商品分类就又有报错了 fecshop service method is not exit. fecyo\services\Category::actionGetFilterInfo

Fecmall#72年前 0 个赞

@qwzjoyr #6楼 请升级你的fecmall---> 2.12.1版本

第二遍!

qwzjoyr#82年前 0 个赞

升级容易,但我有一定的数据在里面,不好冒险=_=||

Fecmall#92年前 0 个赞

@qwzjoyr #8楼

1.备份所有文件和mysql,然后升级fecmall,如果出现问题可以还原。

http://www.fecmall.com/doc/fecshop-guide/develop/cn-2.0/guide-fecshop-2-about-update.html

2.其实,你升级fecyo扩展之前,就需要先备份文件和mysql的。

添加回复 (需要登录)
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册
Your Site Analytics