11-05-2015, 09:37 AM
I've been having problems entering the layout editor for some modules. After turning on the debug by adding:
to the top of the index.php file I was able to find out that there was a fatal call to the colorizer module (by Stefan Warnat). This being a development environment and not using the module that extensively I decided to remove the module with the deleteModule script in the build/helperscripts folder.
After that, I even removed the tables Colorizer created created from the database (I looked in the module manifest and these were the only two it created). Now, when I try to open the Layout editor of for instance Sales Orders, I still get:
So still there is some reference to the module, but I can't find it.
EDIT:
Also the detailview for all modules that used Colorizer are now not functioning, giving the same message. I thing module includes will not be done in Smarty files, so I need to look in some PHP files that make up the detailview I think.
An update:
I re-installed the module Colorizer (just for debugging) and this is the fatal error in the Layout Manager:
Looking into the file LayoutBlockList.php I see the 'widgets' are loaded here. Maybe the uninstalling of Colorizer did not remove the widget registration? Now to find out where the widgets are stored and how to remove them.
Code:
error_reporting(E_ALL);
ini_set("display_errors", "on");
After that, I even removed the tables Colorizer created created from the database (I looked in the module manifest and these were the only two it created). Now, when I try to open the Layout editor of for instance Sales Orders, I still get:
Code:
Sorry! Attempt to access restricted file.
We are looking for this file path: modules/Colorizer/Colorizer.php
We are looking here:
Real file path:
Root dir path: /my_path/crmdevelop/
So still there is some reference to the module, but I can't find it.
EDIT:
Also the detailview for all modules that used Colorizer are now not functioning, giving the same message. I thing module includes will not be done in Smarty files, so I need to look in some PHP files that make up the detailview I think.
An update:
I re-installed the module Colorizer (just for debugging) and this is the fatal error in the Layout Manager:
Code:
Fatal error: Call to undefined method Colorizer_ColorWidget::title() in /home/guidog/domains/cbx-nederland.nl/public_html/crmdevelop/modules/Settings/LayoutBlockList.php on line 356
Looking into the file LayoutBlockList.php I see the 'widgets' are loaded here. Maybe the uninstalling of Colorizer did not remove the widget registration? Now to find out where the widgets are stored and how to remove them.