gpt4 book ai didi

php - OpenCart故障 Uncaught Error : Class 'Controllerextensiontotalaffiliate'

转载 作者:行者123 更新时间:2023-12-03 08:42:01 24 4
gpt4 key购买 nike

我目前在我们的购物篮页面上遇到了此问题,但似乎无法找出导致该问题的原因:

我已经完成以下工作:

禁用的vQmod
vQmod中的已禁用Mod
尝试禁用与从属关系。

我坚持想法。

[02-Apr-2020 15:37:44 UTC] PHP Fatal error:  Uncaught Error: Class 'Controllerextensiontotalaffiliate' not found in /home/mvhwbpqz/public_html/vqmod/vqcache/vq2-system_storage_modification_system_engine_action.php:43
Stack trace:
#0 /home/mvhwbpqz/public_html/vqmod/vqcache/vq2-system_storage_modification_system_engine_loader.php(31): Action->execute(Object(Registry), Array)
#1 /home/mvhwbpqz/public_html/catalog/controller/checkout/cart.php(246): Loader->controller('extension/total...')
#2 /home/mvhwbpqz/public_html/vqmod/vqcache/vq2-system_storage_modification_system_engine_action.php(51): ControllerCheckoutCart->index()
#3 /home/mvhwbpqz/public_html/catalog/controller/startup/router.php(25): Action->execute(Object(Registry))
#4 /home/mvhwbpqz/public_html/vqmod/vqcache/vq2-system_storage_modification_system_engine_action.php(51): ControllerStartupRouter->index()
#5 /home/mvhwbpqz/public_html/system/engine/front.php(34): Action->execute(Object(Registry))
#6 /home/mvhwbpqz/public_html/system/engine/front.php(29): Front->execute(Object(Action))
#7 /home/mv in /home/mvhwbpqz/public_html/vqmod/vqcache/vq2-system_storage_modification_system_engine_action.php on line 43

Action 文件的代码
<?php
class Action {
private $id;
private $route;
private $method = 'index';

public function __construct($route) {
$this->id = $route;

$parts = explode('/', preg_replace('/[^a-zA-Z0-9_\/]/', '', (string)$route));

// Break apart the route
while ($parts) {
$file = DIR_APPLICATION . 'controller/' . implode('/', $parts) . '.php';

if (is_file($file)) {
$this->route = implode('/', $parts);

break;
} else {
$this->method = array_pop($parts);
}
}
}

public function getId() {
return $this->id;
}

public function execute($registry, array $args = array()) {
// Stop any magical methods being called
if (substr($this->method, 0, 2) == '__') {
return new \Exception('Error: Calls to magic methods are not allowed!');
}

$file = DIR_APPLICATION . 'controller/' . $this->route . '.php';
$class = 'Controller' . preg_replace('/[^a-zA-Z0-9]/', '', $this->route);

// Initialize the class
if (is_file($file)) {
include_once(\VQMod::modCheck(modification($file), $file));

$controller = new $class($registry);
} else {
return new \Exception('Error: Could not call ' . $this->route . '/' . $this->method . '!');
}

$reflection = new ReflectionClass($class);

if ($reflection->hasMethod($this->method) && $reflection->getMethod($this->method)->getNumberOfRequiredParameters() <= count($args)) {
return call_user_func_array(array($controller, $this->method), $args);
} else {
return new \Exception('Error: Could not call ' . $this->route . '/' . $this->method . '!');
}
}
}

如您所见,它正在加载所有 Controller ,但是我尝试重命名从属 Controller ,以查看是否有帮助,但没有帮助。

Kinda失去了现在可以尝试的方法。

谢谢,
凯尔

最佳答案

如果您要禁用vQmod,则不应通过vqcache文件得到错误。如果您禁用vq mod,请在此之后清除vq缓存。你完成了吗?

尽管您需要检查每个vQmod修改文件以查找,但其中一个文件正在添加或要求“Controllerextensiontotalaffiliate”。

关于php - OpenCart故障 Uncaught Error : Class 'Controllerextensiontotalaffiliate' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60995495/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com