1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Alternative for Configure::getInstance?

Discussion in 'PHP' started by Boris_Badenoff, Feb 2, 2017.

  1. #1
    I have an app that I ported to new host. I am now getting the following error when I bring up app website:

    20170130T205413: lifesciencesworld.com/public_html/app/webroot/index.php
    PHP Strict Standards: Redefining already defined constructor for class Object in /hermes/bosnaweb10a/b2064/ipg.lifesciencesworldcom/public_html/cake/libs/object.php on line 75
    PHP Strict Standards: Non-static method Configure::getInstance() should not be called statically in /hermes/bosnaweb10a/b2064/ipg.lifesciencesworldcom/public_html/cake/bootstrap.php on line 49

    The code snipet in bootstrap.php before and at error is:
    $TIME_START = getMicrotime();
    require LIBS.'object.php';
    require LIBS.'session.php';
    require LIBS.'security.php';
    require LIBS.'neat_array.php';
    require LIBS.'inflector.php';
    require LIBS.'configure.php';
    $paths = Configure::getInstance();
    I guess I need an alternative to the last line: $paths = Configure::getInstance();
    Can anyone help, I am a novice php coder at best. Thanks for reading!
    SEMrush
     
    Boris_Badenoff, Feb 2, 2017 IP
    SEMrush