![]() |
Please Help!
Well, I need to install the script on my localhost (using xampp).
When I've installed the script, I saw this error: Code:
Notice: Undefined variable: controller in C:\xampp\htdocs\classes\class_language.php on line 111 http://i.imgur.com/L1wQKGL.png How can I resolve this problem? I'm portuguese, so, I'm sorry for my bad english. |
Notices are not errors, and would be turned off on live hosting. To turn them off, you'll want to change the error_reporting settings in your php.ini.
Find the php.ini file in your localhost stuff - possibly in xampp\php\php.ini? Just pop it open with a normal text editor. Search for "error_reporting". It probably won't be at the first location you find it, so search until you find it on a line by itself that doesn't start with a semi-color (;) -- lines with semi-colons are comments only, and are only there for reference. Anyway, it should be set to: Code:
error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT Save the file. Restart XAMPP. This is important, because it won't recognizes changes to the file until you do. |
Well as Kyttias explained, these are notices, not fatal errors, they are usually disabled on webhosts. However, the presence of notice errors can be useful for debugging, so maybe leaving them on is not a bad idea if you want to create custom scripts or to edit the script. You can disable/enable notice error on a per-page basis, so for whatever page you edit, leave them on and they may be able to help you detect bugs such as typos and failing to initialize a variable.
Also you can try out mysidiahost.com, which is a webhosting service I provide and it is free: http://mysidiahost.com/ |
All times are GMT -5. The time now is 02:45 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.