Another suggestion to improve troubleshooting, as a partial but improved solution, would be to edit the system/engine/action.php file to show the reflection class source from where the error is originating from rather than the destination. Most of the errors on the forum are 99% about contributed codes but it is not possible at this time to see the reflection class.
To improve this, in your system/engine/action.php file,
Find:
Code: Select all
$reflection = new ReflectionClass($class);
Add below:
Code: Select all
$registry->set('reflectionClass', $reflection);
In catalog/controller/startup/error.php file,
find:
Code: Select all
$this->log->write('PHP ' . $error . ': ' . $message . ' in ' . $file . ' on line ' . $line);
replace with:
Code: Select all
$this->log->write('PHP - Reflection Class: ' . $this->registry->get('reflectionClass)->name . ' - ' . $error . ': ' . $message . ' in ' . $file . ' on line ' . $line);
Another solution would be by replacing the line above with:
Code: Select all
$this->log->write('PHP - Reflection Class: ' . __METHOD__ . ' - ' . $error . ': ' . $message . ' in ' . $file . ' on line ' . $line);