-
AuthorPosts
-
dalbergh Friend
dalbergh
- Join date:
- March 2008
- Posts:
- 3
- Downloads:
- 0
- Uploads:
- 0
- Thanked:
- 1 times in 1 posts
July 7, 2008 at 12:08 am #130519Hello,
I have installed Utahia II a couple of times and I keep getting this error message on my remote and local webservers.
Notice: Undefined variable: database in C:wampwwwutahiatemplatesja_utahia_iija_menusBase.class.php on line 20
Thanks for the help!
Dan
Sherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
July 7, 2008 at 7:43 am #258280Hi dalbergh !
Notice is ussually when you use php code , You can remove notice it by way :
Open php.ini file in your host and change error reporting for it to hidden notice:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Error handling and logging ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; error_reporting is a bit-field. Or each number up to get desired error
; reporting level
; E_ALL - All errors and warnings
; E_ERROR - fatal run-time errors
; E_WARNING - run-time warnings (non-fatal errors)
; E_PARSE - compile-time parse errors
; E_NOTICE - run-time notices (these are warnings which often result
; from a bug in your code, but it's possible that it was
; intentional (e.g., using an uninitialized variable and
; relying on the fact it's automatically initialized to an
; empty string)
; E_STRICT - run-time notices, enable to have PHP suggest changes
; to your code which will ensure the best interoperability
; and forward compatability of your code
; E_CORE_ERROR - fatal errors that occur during PHP's initial startup
; E_CORE_WARNING - warnings (non-fatal errors) that occur during PHP's
; initial startup
; E_COMPILE_ERROR - fatal compile-time errors
; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
; E_USER_ERROR - user-generated error message
; E_USER_WARNING - user-generated warning message
; E_USER_NOTICE - user-generated notice message
;
; Examples:
;
; - Show all errors, except for notices
;
;error_reporting = E_ALL & ~E_NOTICE
;
;
; - Show only errors
;
;error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR
;
; - Show all errors except for notices and coding standards warnings
;
error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT
dalbergh Frienddalbergh
- Join date:
- March 2008
- Posts:
- 3
- Downloads:
- 0
- Uploads:
- 0
- Thanked:
- 1 times in 1 posts
July 7, 2008 at 3:32 pm #258362Thanks for the quick response.
Error reporting is a recommended setting, so I am more concerned as to why the error report is happening right off after doing a quickstart installation.
Thanks,
DanSherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
July 23, 2008 at 9:53 am #261692Hi
you can edit Base.class.php
Search those lines:
function JA_Base( &$params ){
global $Itemid;
$this->_params = $params;
$this->Itemid = $Itemid;
$this->_db = $database;
$this->loadMenu();
}
Change to
function JA_Base( &$params ){
global $Itemid,$database;
$this->_params = $params;
$this->Itemid = $Itemid;
$this->_db = $database;
$this->loadMenu();
} -
AuthorPosts
This topic contains 4 replies, has 2 voices, and was last updated by Sherlock 16 years, 4 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum