• I have php 5.4 and have the following error:

    Warning: Creating default object from empty value in /home/developer/projects/apb/wp-content/plugins/wp-mvc/core/controllers/mvc_controller.php on line 110

    Call Stack
    # Time Memory Function Location
    1 0.0015 162096 {main}( ) ../admin.php:0
    2 1.1504 11372200 do_action( ) ../admin.php:151
    3 1.1504 11373060 call_user_func_array ( ) ../plugin.php:406
    4 1.1504 11373368 MvcDispatcher->__call( ) ../plugin.php:0
    5 1.1504 11373368 __lambda_func( ) ../mvc_dispatcher.php:69
    6 1.1504 11373668 MvcDispatcher::dispatch( ) ../mvc_admin_loader.php(88) : runtime-created function:1
    7 1.1529 11395868 MvcController->init( ) ../mvc_dispatcher.php:17
    8 1.1536 11408164 MvcController->load_helper( ) ../mvc_controller.php:46

    So..I can suggest the following sollution (mvc_controller.php):

    $this->{$helper_method_name}->controller = version_compare(PHP_VERSION, ‘5.2.4’, ‘>’) ? new stdClass() : false;

  • The topic ‘Warning: Creating default object from empty value in’ is closed to new replies.