OpenCart Tips and Tricks · 2 min read · Updated

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

Proxy Opencart

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

$this->model_extension_module_outofstock->getLabels();

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:

Rupak Nepali
Written byRupak Nepali

Rupak Nepali is a web developer, manage Webocreation website and the author of six books:
Getting Started with OpenCart Module Development (Packt, 2013),
OpenCart Theme and Module Development (Packt, 2015),
OpenCart 4: Dev Guide for Themes & Extensions (2024),
OpenCart 4: User Manual (2025),
Cloudflare for the Enterprise Website (2026) and
The Technical Web Guide for Marketers (2026).
Rupak has built OpenCart stores and extensions since 2010, has published more than 600 tutorials on Webocreation, and shares free OpenCart extensions on GitHub.
Find Rupak on
GitHub | Amazon | LinkedIn | X | YouTube.

1 comment

  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.

Leave a Reply

Your email address will not be published. Required fields are marked *