DEBUG RAPORT
# Time Type Count Message File:Line
1 18:00:31.269334 Exception 1 Argument 1 passed to Categories::prepareData() must be an instance of ORM, null given, called in /home/klient.dhosting.pl/amberline/amberline.eu/public_html/modules/news/front/init.php on line 24 /home/klient.dhosting.pl/amberline/amberline.eu/public_html/modules/categories/Categories.model.php:139
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(195) "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/klient.dhosting.pl/amberline/amberline.eu/public_html/modules/news/front/init.php on line 24
      private string -> string(0) ""
      protected code -> integer0
      protected file -> string(99) "/home/klient.dhosting.pl/amberline/amberline.eu/public_html/modules/categories/C…"
      • contents
      • File (29.48K)
      • /home/klient.dhosting.pl/amberline/amberline.eu/public_html/modules/categories/Categories.model.php
      • -rw-r--r--
      protected line -> integer139
      private trace -> array(4)
      array(6)
      'file' => string(87) "/home/klient.dhosting.pl/amberline/amberline.eu/public_html/modules/news/front/i…"
      • contents
      • File (2.24K)
      • /home/klient.dhosting.pl/amberline/amberline.eu/public_html/modules/news/front/init.php
      • -rw-r--r--
      'line' => integer24
      'function' => string(11) "prepareData"
      'class' => string(10) "Categories"
      'type' => string(2) "::"
      'args' => array(1)
      NULL
      array(4)
      'file' => string(88) "/home/klient.dhosting.pl/amberline/amberline.eu/public_html/modules/news/front/i…"
      • contents
      • File (6.32K)
      • /home/klient.dhosting.pl/amberline/amberline.eu/public_html/modules/news/front/index.php
      • -rw-r--r--
      'line' => integer3
      'args' => array(1)
      string(87) "/home/klient.dhosting.pl/amberline/amberline.eu/public_html/modules/news/front/i…"
      • contents
      • File (2.24K)
      • /home/klient.dhosting.pl/amberline/amberline.eu/public_html/modules/news/front/init.php
      • -rw-r--r--
      'function' => string(7) "require"
      array(4)
      'file' => string(96) "/home/klient.dhosting.pl/amberline/amberline.eu/public_html/include/class/Contro…"
      • contents
      • File (2.44K)
      • /home/klient.dhosting.pl/amberline/amberline.eu/public_html/include/class/Controllers/Module.php
      • -rw-r--r--
      'line' => integer54
      'args' => array(1)
      string(88) "/home/klient.dhosting.pl/amberline/amberline.eu/public_html/modules/news/front/i…"
      • contents
      • File (6.32K)
      • /home/klient.dhosting.pl/amberline/amberline.eu/public_html/modules/news/front/index.php
      • -rw-r--r--
      'function' => string(7) "include"
      array(6)
      'file' => string(69) "/home/klient.dhosting.pl/amberline/amberline.eu/public_html/index.php"
      • File (2.51K)
      • -rw-r--r--
      'line' => integer78
      '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(195) "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/klient.dhosting.pl/amberline/amberline.eu/public_html/modules/news/front/init.php on line 24
      private string -> string(0) ""
      protected code -> integer0
      protected file -> string(99) "/home/klient.dhosting.pl/amberline/amberline.eu/public_html/modules/categories/C…"
      • contents
      • File (29.48K)
      • /home/klient.dhosting.pl/amberline/amberline.eu/public_html/modules/categories/Categories.model.php
      • -rw-r--r--
      protected line -> integer139
      private trace -> array(4)
      array(6)
      'file' => string(87) "/home/klient.dhosting.pl/amberline/amberline.eu/public_html/modules/news/front/i…"
      • contents
      • File (2.24K)
      • /home/klient.dhosting.pl/amberline/amberline.eu/public_html/modules/news/front/init.php
      • -rw-r--r--
      'line' => integer24
      'function' => string(11) "prepareData"
      'class' => string(10) "Categories"
      'type' => string(2) "::"
      'args' => array(1)
      NULL
      array(4)
      'file' => string(88) "/home/klient.dhosting.pl/amberline/amberline.eu/public_html/modules/news/front/i…"
      • contents
      • File (6.32K)
      • /home/klient.dhosting.pl/amberline/amberline.eu/public_html/modules/news/front/index.php
      • -rw-r--r--
      'line' => integer3
      'args' => array(1)
      string(87) "/home/klient.dhosting.pl/amberline/amberline.eu/public_html/modules/news/front/i…"
      • contents
      • File (2.24K)
      • /home/klient.dhosting.pl/amberline/amberline.eu/public_html/modules/news/front/init.php
      • -rw-r--r--
      'function' => string(7) "require"
      array(4)
      'file' => string(96) "/home/klient.dhosting.pl/amberline/amberline.eu/public_html/include/class/Contro…"
      • contents
      • File (2.44K)
      • /home/klient.dhosting.pl/amberline/amberline.eu/public_html/include/class/Controllers/Module.php
      • -rw-r--r--
      'line' => integer54
      'args' => array(1)
      string(88) "/home/klient.dhosting.pl/amberline/amberline.eu/public_html/modules/news/front/i…"
      • contents
      • File (6.32K)
      • /home/klient.dhosting.pl/amberline/amberline.eu/public_html/modules/news/front/index.php
      • -rw-r--r--
      'function' => string(7) "include"
      array(6)
      'file' => string(69) "/home/klient.dhosting.pl/amberline/amberline.eu/public_html/index.php"
      • File (2.51K)
      • -rw-r--r--
      'line' => integer78
      '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(195) "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/klient.dhosting.pl/amberline/amberline.eu/public_html/modules/news/front/init.php on line 24
      private string -> string(0) ""
      protected code -> integer0
      protected file -> string(99) "/home/klient.dhosting.pl/amberline/amberline.eu/public_html/modules/categories/C…"
      • contents
      • File (29.48K)
      • /home/klient.dhosting.pl/amberline/amberline.eu/public_html/modules/categories/Categories.model.php
      • -rw-r--r--
      protected line -> integer139
      private trace -> array(4)
      array(6)
      'file' => string(87) "/home/klient.dhosting.pl/amberline/amberline.eu/public_html/modules/news/front/i…"
      • contents
      • File (2.24K)
      • /home/klient.dhosting.pl/amberline/amberline.eu/public_html/modules/news/front/init.php
      • -rw-r--r--
      'line' => integer24
      'function' => string(11) "prepareData"
      'class' => string(10) "Categories"
      'type' => string(2) "::"
      'args' => array(1)
      NULL
      array(4)
      'file' => string(88) "/home/klient.dhosting.pl/amberline/amberline.eu/public_html/modules/news/front/i…"
      • contents
      • File (6.32K)
      • /home/klient.dhosting.pl/amberline/amberline.eu/public_html/modules/news/front/index.php
      • -rw-r--r--
      'line' => integer3
      'args' => array(1)
      string(87) "/home/klient.dhosting.pl/amberline/amberline.eu/public_html/modules/news/front/i…"
      • contents
      • File (2.24K)
      • /home/klient.dhosting.pl/amberline/amberline.eu/public_html/modules/news/front/init.php
      • -rw-r--r--
      'function' => string(7) "require"
      array(4)
      'file' => string(96) "/home/klient.dhosting.pl/amberline/amberline.eu/public_html/include/class/Contro…"
      • contents
      • File (2.44K)
      • /home/klient.dhosting.pl/amberline/amberline.eu/public_html/include/class/Controllers/Module.php
      • -rw-r--r--
      'line' => integer54
      'args' => array(1)
      string(88) "/home/klient.dhosting.pl/amberline/amberline.eu/public_html/modules/news/front/i…"
      • contents
      • File (6.32K)
      • /home/klient.dhosting.pl/amberline/amberline.eu/public_html/modules/news/front/index.php
      • -rw-r--r--
      'function' => string(7) "include"
      array(6)
      'file' => string(69) "/home/klient.dhosting.pl/amberline/amberline.eu/public_html/index.php"
      • File (2.51K)
      • -rw-r--r--
      'line' => integer78
      '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(195) "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/klient.dhosting.pl/amberline/amberline.eu/public_html/modules/news/front/init.php on line 24
      private string -> string(0) ""
      protected code -> integer0
      protected file -> string(99) "/home/klient.dhosting.pl/amberline/amberline.eu/public_html/modules/categories/C…"
      • contents
      • File (29.48K)
      • /home/klient.dhosting.pl/amberline/amberline.eu/public_html/modules/categories/Categories.model.php
      • -rw-r--r--
      protected line -> integer139
      private trace -> array(4)
      array(6)
      'file' => string(87) "/home/klient.dhosting.pl/amberline/amberline.eu/public_html/modules/news/front/i…"
      • contents
      • File (2.24K)
      • /home/klient.dhosting.pl/amberline/amberline.eu/public_html/modules/news/front/init.php
      • -rw-r--r--
      'line' => integer24
      'function' => string(11) "prepareData"
      'class' => string(10) "Categories"
      'type' => string(2) "::"
      'args' => array(1)
      NULL
      array(4)
      'file' => string(88) "/home/klient.dhosting.pl/amberline/amberline.eu/public_html/modules/news/front/i…"
      • contents
      • File (6.32K)
      • /home/klient.dhosting.pl/amberline/amberline.eu/public_html/modules/news/front/index.php
      • -rw-r--r--
      'line' => integer3
      'args' => array(1)
      string(87) "/home/klient.dhosting.pl/amberline/amberline.eu/public_html/modules/news/front/i…"
      • contents
      • File (2.24K)
      • /home/klient.dhosting.pl/amberline/amberline.eu/public_html/modules/news/front/init.php
      • -rw-r--r--
      'function' => string(7) "require"
      array(4)
      'file' => string(96) "/home/klient.dhosting.pl/amberline/amberline.eu/public_html/include/class/Contro…"
      • contents
      • File (2.44K)
      • /home/klient.dhosting.pl/amberline/amberline.eu/public_html/include/class/Controllers/Module.php
      • -rw-r--r--
      'line' => integer54
      'args' => array(1)
      string(88) "/home/klient.dhosting.pl/amberline/amberline.eu/public_html/modules/news/front/i…"
      • contents
      • File (6.32K)
      • /home/klient.dhosting.pl/amberline/amberline.eu/public_html/modules/news/front/index.php
      • -rw-r--r--
      'function' => string(7) "include"
      array(6)
      'file' => string(69) "/home/klient.dhosting.pl/amberline/amberline.eu/public_html/index.php"
      • File (2.51K)
      • -rw-r--r--
      'line' => integer78
      '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` = '104' ORDER BY `sort` ASC