Fatal error: Uncaught TypeError: Argument 1 passed to PhotoGenerator::__construct() must be an instance of object, instance of sql given, called in /home/users/chlopy/public_html/a/photogenerator/photo_generator.php on line 32 and defined in /home/users/chlopy/public_html/a/photogenerator/class/abstract.class.photo_generator.php:62 Stack trace: #0 /home/users/chlopy/public_html/a/photogenerator/photo_generator.php(32): PhotoGenerator->__construct(Object(sql), 'atrgal', 'atrakcje', Array, 1, 90) #1 /home/users/chlopy/public_html/a/includes/cron/class/class.cron.php(91): include_once('/home/users/chl...') #2 /home/users/chlopy/public_html/a/includes/cron/class/class.cron.php(77): Cron->_startTasks(Array) #3 /home/users/chlopy/public_html/a/includes/cron/cron.php(17): Cron->start() #4 /home/users/chlopy/public_html/a/includes/config.php(26): include_once('/home/users/chl...') #5 /home/users/chlopy/public_html/a/index.php(8): include('/home/users/chl...') #6 {main} thrown in /home/users/chlopy/public_html/a/photogenerator/class/abstract.class.photo_generator.php on line 62