Undefined property: Proxy::method in storage/modification/system/engine/action.php on line

Opencart error: Notice: Undefined property: Proxy::getLabels in /htdocs/storage/modification/system/engine/action.php on line 79

If you get an error like above then find the “getLabels” in your opencart directory and you can find two places like:

public function getLabels()

Or something like below of model reference or controller reference


If it is model then check the class name of the model, for our example it should be like below:

class ModelExtensionModuleOutOfStock extends Model

Once you correct the class name then the proxy issue will be removed.

The main method is at system/engine/proxy.php

public function __call($key, $args) {
	$arg_data = array();
	$args = func_get_args();
	foreach ($args as $arg) {
		if ($arg instanceof Ref) {
			$arg_data[] =& $arg->getRef();
		} else {
			$arg_data[] =& $arg;
	if (isset($this->{$key})) {		
		return call_user_func_array($this->{$key}, $arg_data);	
	} else {
		$trace = debug_backtrace();
		exit('<b>Notice</b>:  Undefined property: Proxy::' . $key . ' in <b>' . $trace[1]['file'] . '</b> on line <b>' . $trace[1]['line'] . '</b>');

Hope this helps someone, let us know if you have any questions or issues so that we try to solve it. We have listed out errors that you may get in Opencart and their solutions at:

Previous articleHow to make the custom language pack in OpenCart 4?
Next articleOut of Stock Sold out label, Out of Stock button Opencart 3 module for free


  1. Good day,
    Please help me to find resolution to a problem below:
    For training purpose I’ve created a method public function myModule(){return ‘myModel’; }
    in model ModelSettingModule. Then I call this method in ControllerExtensionModuleFeatured and it omits an error like : property: Proxy::myModel in C:\Users\user\Downloads\storage\modification\system\engine\action.php on line 79
    I’ve refreshed modifications already in admin panel and still the same.


Please enter your comment!
Please enter your name here