Have you ever seen that error/notice message that shown in the title of this article? Well, I have! For some unknown reasons you might get the error message from the website that generated with PHPMaker. This error/notice message can be removed by simply implementing the following template customization. In other words, actually, there are some missing variable that belongs to the class that generated by PHPMaker.
We will customize the related template file for this purpose. Only small modification though, this will completely remove those three notice/error messages from your web application, especially if you display the error from your PHP service in your web server. This is very important in order to make your web application runs smoothly without any problem in all of your related generated pages.
[hidepost]
-
Open your /Script/phpcommon-scripts.php file, and find this code:
class c<!--##=sPageObj##--> { // Page ID var $PageID = '<!--##=sCtrlID##-->';
after the last line of that code, please insert the following code:
var $sEmail = ''; // Added by Masino Sinaga, in order to prevent error undefined variable $sEmail, January 16, 2012 var $sSrchWhere = ''; // Added by Masino Sinaga, in order to prevent error undefined variable $sSrchWhere, January 16, 2012 var $sDisabled = ''; // Added by Masino Sinaga, in order to prevent error undefined variable $sDisabled, January 16, 2012
- Re-generate your related script files using PHPMaker as usual.
[/hidepost]
Leave a Reply
You must be logged in to post a comment.