DEBUG RAPORT
# Time Type Count Message File:Line
1 00:56:15.342917 Exception 1 Argument 1 passed to Categories::prepareData() must be an instance of ORM, null given, called in /home/trokotex/ftp/www/prety/modules/news/front/init.php on line 20 /home/trokotex/ftp/www/prety/modules/categories/Categories.model.php:110
1 PHP internal callApp\Exceptions\DebugReport::addEvent(eventName, params)
  • Arguments
  • eventName string(11) "onException"
    params array(1)
    TypeError(7)
    • contents
    • Available methods (11)
    • protected message -> string(164) "Argument 1 passed to Categories::prepareData() must be an instance of ORM, null …"
      Argument 1 passed to Categories::prepareData() must be an instance of ORM, null given, called in /home/trokotex/ftp/www/prety/modules/news/front/init.php on line 20
      private string -> string(0) ""
      protected code -> integer0
      protected file -> string(68) "/home/trokotex/ftp/www/prety/modules/categories/Categories.model.php"
      • File (25.12K)
      • -rw-r--r--
      protected line -> integer110
      private trace -> array(4)
      array(6)
      'file' => string(56) "/home/trokotex/ftp/www/prety/modules/news/front/init.php"
      • File (1.96K)
      • -rw-r--r--
      'line' => integer20
      'function' => string(11) "prepareData"
      'class' => string(10) "Categories"
      'type' => string(2) "::"
      'args' => array(1)
      NULL
      array(4)
      'file' => string(57) "/home/trokotex/ftp/www/prety/modules/news/front/index.php"
      • File (6.60K)
      • -rw-r--r--
      'line' => integer3
      'args' => array(1)
      string(56) "/home/trokotex/ftp/www/prety/modules/news/front/init.php"
      • File (1.96K)
      • -rw-r--r--
      'function' => string(7) "require"
      array(4)
      'file' => string(65) "/home/trokotex/ftp/www/prety/include/class/Controllers/Module.php"
      • File (2.44K)
      • -rw-r--r--
      'line' => integer54
      'args' => array(1)
      string(57) "/home/trokotex/ftp/www/prety/modules/news/front/index.php"
      • File (6.60K)
      • -rw-r--r--
      'function' => string(7) "include"
      array(6)
      'file' => string(38) "/home/trokotex/ftp/www/prety/index.php"
      • File (2.15K)
      • -rwxr-xr-x
      'line' => integer74
      'function' => string(8) "getFront"
      'class' => string(22) "App\Controllers\Module"
      'type' => string(2) "->"
      'args' => array(0)
      private previous -> NULL
    • final public getCode()
      Inherited from Error
      Defined in :
      final public getFile()
      Inherited from Error
      Defined in :
      final public getLine()
      Inherited from Error
      Defined in :
      final public getMessage()
      Inherited from Error
      Defined in :
      final public getPrevious()
      Inherited from Error
      Defined in :
      final public getTrace()
      Inherited from Error
      Defined in :
      final public getTraceAsString()
      Inherited from Error
      Defined in :
      public __construct($message, $code, $previous)
      Inherited from Error
      Defined in :
      public __toString()
      Inherited from Error
      Defined in :
      public __wakeup()
      Inherited from Error
      Defined in :
      final private __clone()
      Inherited from Error
      Defined in :
2 <ROOT>/include/class/Base/Events.php:27call_user_func_array(function_name, parameters)
  • Source
  • Arguments
  • 20 }
    21
    22 // ręczne wywołanie akcji z parametrami
    23 public static function trigger($eventName /* $first_param, ... */){
    24 $result = array();
    25 if(array_key_exists($eventName, self::$_events))
    26 foreach (self::$_events[$eventName] as $i => $callback){
    27 $result[$i] = call_user_func_array($callback, func_get_args());
    28 }
    29 return $result; // zwraca tablice nazw callback-ów i wartości zwrotnych
    30 }
    31
    32 // zwraca pierwszy wynik jeśli jakaś funkcja zwróciła inną wartość niż domyślne null
    33 public static function parseTriggerResult(array $triggerResult, &$i = null){
    34 foreach($triggerResult as $i => $value)
  • function_name string(36) "App\Exceptions\DebugReport::addEvent"
    parameters array(2)
    string(11) "onException"
    array(1)
    TypeError(7)
    • contents
    • Available methods (11)
    • protected message -> string(164) "Argument 1 passed to Categories::prepareData() must be an instance of ORM, null …"
      Argument 1 passed to Categories::prepareData() must be an instance of ORM, null given, called in /home/trokotex/ftp/www/prety/modules/news/front/init.php on line 20
      private string -> string(0) ""
      protected code -> integer0
      protected file -> string(68) "/home/trokotex/ftp/www/prety/modules/categories/Categories.model.php"
      • File (25.12K)
      • -rw-r--r--
      protected line -> integer110
      private trace -> array(4)
      array(6)
      'file' => string(56) "/home/trokotex/ftp/www/prety/modules/news/front/init.php"
      • File (1.96K)
      • -rw-r--r--
      'line' => integer20
      'function' => string(11) "prepareData"
      'class' => string(10) "Categories"
      'type' => string(2) "::"
      'args' => array(1)
      NULL
      array(4)
      'file' => string(57) "/home/trokotex/ftp/www/prety/modules/news/front/index.php"
      • File (6.60K)
      • -rw-r--r--
      'line' => integer3
      'args' => array(1)
      string(56) "/home/trokotex/ftp/www/prety/modules/news/front/init.php"
      • File (1.96K)
      • -rw-r--r--
      'function' => string(7) "require"
      array(4)
      'file' => string(65) "/home/trokotex/ftp/www/prety/include/class/Controllers/Module.php"
      • File (2.44K)
      • -rw-r--r--
      'line' => integer54
      'args' => array(1)
      string(57) "/home/trokotex/ftp/www/prety/modules/news/front/index.php"
      • File (6.60K)
      • -rw-r--r--
      'function' => string(7) "include"
      array(6)
      'file' => string(38) "/home/trokotex/ftp/www/prety/index.php"
      • File (2.15K)
      • -rwxr-xr-x
      'line' => integer74
      'function' => string(8) "getFront"
      'class' => string(22) "App\Controllers\Module"
      'type' => string(2) "->"
      'args' => array(0)
      private previous -> NULL
    • final public getCode()
      Inherited from Error
      Defined in :
      final public getFile()
      Inherited from Error
      Defined in :
      final public getLine()
      Inherited from Error
      Defined in :
      final public getMessage()
      Inherited from Error
      Defined in :
      final public getPrevious()
      Inherited from Error
      Defined in :
      final public getTrace()
      Inherited from Error
      Defined in :
      final public getTraceAsString()
      Inherited from Error
      Defined in :
      public __construct($message, $code, $previous)
      Inherited from Error
      Defined in :
      public __toString()
      Inherited from Error
      Defined in :
      public __wakeup()
      Inherited from Error
      Defined in :
      final private __clone()
      Inherited from Error
      Defined in :
3 <ROOT>/include/class/Exceptions/ExceptionsHandlers.php:19App\Base\Events::trigger(eventName, #2)
  • Source
  • Arguments
  • 12 $result[] = set_exception_handler('ExceptionsHandlers::onException');
    13 $result[] = set_error_handler('ExceptionsHandlers::onError');
    14 $result[] = register_shutdown_function('ExceptionsHandlers::onShutDown');
    15 return $result;
    16 }
    17
    18 public static function onException(){
    19 $trigger = Events::trigger(__FUNCTION__, func_get_args());
    20 return Events::parseTriggerResult($trigger);
    21 }
    22
    23 public static function onError(){
    24 $trigger = Events::trigger(__FUNCTION__, func_get_args());
    25 return Events::parseTriggerResult($trigger);
    26 }
  • eventName string(11) "onException"
    #2 array(1)
    TypeError(7)
    • contents
    • Available methods (11)
    • protected message -> string(164) "Argument 1 passed to Categories::prepareData() must be an instance of ORM, null …"
      Argument 1 passed to Categories::prepareData() must be an instance of ORM, null given, called in /home/trokotex/ftp/www/prety/modules/news/front/init.php on line 20
      private string -> string(0) ""
      protected code -> integer0
      protected file -> string(68) "/home/trokotex/ftp/www/prety/modules/categories/Categories.model.php"
      • File (25.12K)
      • -rw-r--r--
      protected line -> integer110
      private trace -> array(4)
      array(6)
      'file' => string(56) "/home/trokotex/ftp/www/prety/modules/news/front/init.php"
      • File (1.96K)
      • -rw-r--r--
      'line' => integer20
      'function' => string(11) "prepareData"
      'class' => string(10) "Categories"
      'type' => string(2) "::"
      'args' => array(1)
      NULL
      array(4)
      'file' => string(57) "/home/trokotex/ftp/www/prety/modules/news/front/index.php"
      • File (6.60K)
      • -rw-r--r--
      'line' => integer3
      'args' => array(1)
      string(56) "/home/trokotex/ftp/www/prety/modules/news/front/init.php"
      • File (1.96K)
      • -rw-r--r--
      'function' => string(7) "require"
      array(4)
      'file' => string(65) "/home/trokotex/ftp/www/prety/include/class/Controllers/Module.php"
      • File (2.44K)
      • -rw-r--r--
      'line' => integer54
      'args' => array(1)
      string(57) "/home/trokotex/ftp/www/prety/modules/news/front/index.php"
      • File (6.60K)
      • -rw-r--r--
      'function' => string(7) "include"
      array(6)
      'file' => string(38) "/home/trokotex/ftp/www/prety/index.php"
      • File (2.15K)
      • -rwxr-xr-x
      'line' => integer74
      'function' => string(8) "getFront"
      'class' => string(22) "App\Controllers\Module"
      'type' => string(2) "->"
      'args' => array(0)
      private previous -> NULL
    • final public getCode()
      Inherited from Error
      Defined in :
      final public getFile()
      Inherited from Error
      Defined in :
      final public getLine()
      Inherited from Error
      Defined in :
      final public getMessage()
      Inherited from Error
      Defined in :
      final public getPrevious()
      Inherited from Error
      Defined in :
      final public getTrace()
      Inherited from Error
      Defined in :
      final public getTraceAsString()
      Inherited from Error
      Defined in :
      public __construct($message, $code, $previous)
      Inherited from Error
      Defined in :
      public __toString()
      Inherited from Error
      Defined in :
      public __wakeup()
      Inherited from Error
      Defined in :
      final private __clone()
      Inherited from Error
      Defined in :
4 PHP internal callApp\Exceptions\ExceptionsHandlers::onException(#1)
  • Arguments
  • #1 TypeError(7)
    • contents
    • Available methods (11)
    • protected message -> string(164) "Argument 1 passed to Categories::prepareData() must be an instance of ORM, null …"
      Argument 1 passed to Categories::prepareData() must be an instance of ORM, null given, called in /home/trokotex/ftp/www/prety/modules/news/front/init.php on line 20
      private string -> string(0) ""
      protected code -> integer0
      protected file -> string(68) "/home/trokotex/ftp/www/prety/modules/categories/Categories.model.php"
      • File (25.12K)
      • -rw-r--r--
      protected line -> integer110
      private trace -> array(4)
      array(6)
      'file' => string(56) "/home/trokotex/ftp/www/prety/modules/news/front/init.php"
      • File (1.96K)
      • -rw-r--r--
      'line' => integer20
      'function' => string(11) "prepareData"
      'class' => string(10) "Categories"
      'type' => string(2) "::"
      'args' => array(1)
      NULL
      array(4)
      'file' => string(57) "/home/trokotex/ftp/www/prety/modules/news/front/index.php"
      • File (6.60K)
      • -rw-r--r--
      'line' => integer3
      'args' => array(1)
      string(56) "/home/trokotex/ftp/www/prety/modules/news/front/init.php"
      • File (1.96K)
      • -rw-r--r--
      'function' => string(7) "require"
      array(4)
      'file' => string(65) "/home/trokotex/ftp/www/prety/include/class/Controllers/Module.php"
      • File (2.44K)
      • -rw-r--r--
      'line' => integer54
      'args' => array(1)
      string(57) "/home/trokotex/ftp/www/prety/modules/news/front/index.php"
      • File (6.60K)
      • -rw-r--r--
      'function' => string(7) "include"
      array(6)
      'file' => string(38) "/home/trokotex/ftp/www/prety/index.php"
      • File (2.15K)
      • -rwxr-xr-x
      'line' => integer74
      'function' => string(8) "getFront"
      'class' => string(22) "App\Controllers\Module"
      'type' => string(2) "->"
      'args' => array(0)
      private previous -> NULL
    • final public getCode()
      Inherited from Error
      Defined in :
      final public getFile()
      Inherited from Error
      Defined in :
      final public getLine()
      Inherited from Error
      Defined in :
      final public getMessage()
      Inherited from Error
      Defined in :
      final public getPrevious()
      Inherited from Error
      Defined in :
      final public getTrace()
      Inherited from Error
      Defined in :
      final public getTraceAsString()
      Inherited from Error
      Defined in :
      public __construct($message, $code, $previous)
      Inherited from Error
      Defined in :
      public __toString()
      Inherited from Error
      Defined in :
      public __wakeup()
      Inherited from Error
      Defined in :
      final private __clone()
      Inherited from Error
      Defined in :
Called from <ROOT>/include/class/Exceptions/DebugReport.php.inc:74
  1. <ROOT>/include/class/Exceptions/DebugReport.php:147
  2. <ROOT>/include/class/Exceptions/DebugReport.php:137 [App\Exceptions\DebugReport::printHtmlDebugErrors()]
  3. <ROOT>/include/class/Base/Events.php:27 [call_user_func_array()]
  4. <ROOT>/include/class/Exceptions/ExceptionsHandlers.php:29 [App\Base\Events::trigger()]
Last ORM query: SELECT * FROM `photos` WHERE `type` = 'categories' AND `type_id` = '39' ORDER BY `sort` ASC