Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • dalbergh Friend
    #130519

    Hello,

    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 Friend
    #258280

    Hi 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 Friend
    #258362

    Thanks 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,
    Dan

    Sherlock Friend
    #261692

    Hi
    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();
    }

Viewing 4 posts - 1 through 4 (of 4 total)

This topic contains 4 replies, has 2 voices, and was last updated by  Sherlock 15 years, 9 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum