Answer the question
In order to leave comments, you need to log in
What is the error in php?
Help me please. I'm self-taught and maybe I'm missing something obvious.
Moved the site from localhost to hosting. (config.php rewrote)
I installed the same version of php as on the openserver.
Imported the base.
Gives an error message
Warning: Invalid argument supplied for foreach() in /var/www/u0806679/data/www/youvie.ru/system/storage/modification/system/engine/loader.php on line 83Notice: Undefined property: Proxy::getCurrencies in /var/www/u0806679/data/www/youvie.ru/catalog/controller/startup/startup.php on line 138
// Overriding models is a little harder so we have to use PHP's magic methods
// In future version we can use runkit
foreach (get_class_methods($class) as $method) {
$proxy->{$method} = $this->callback($this->registry, $route . '/' . $method);
}
$this->registry->set('model_' . str_replace('/', '_', (string)$route), $proxy);
} else {
throw new \Exception('Error: Could not load model ' . $route . '!');
}
}
}
$currencies = $this->model_localisation_currency->getCurrencies();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question