A
A
Artyom2019-10-17 16:26:00
opencart
Artyom, 2019-10-17 16:26:00

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

LINES WHERE POINTS TO ALLEGED ERROR:
// 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();

Tell me what could be the problem.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Araik, 2019-10-17
@NinjaNickName

Perhaps get_class_methods($class) returns NULL ? Check:
var_dump(get_class_methods($class));

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question