a lot of php errors

cr33p

Member
YetiShare User
YetiShare Supporter
May 8, 2016
33
2
8
php version 7.4
just installed
example cron file https://domain.com/app/tasks/create_internal_notifications.cron.php

PHP:
Deprecated: Non-static method App\Helpers\BackgroundTaskHelper::start() should not be called statically in /www/wwwroot/site.com/app/tasks/create_internal_notifications.cron.php on line 36


Deprecated: Non-static method App\Helpers\BackgroundTaskHelper::getTaskName() should not be called statically in /www/wwwroot/site.com/app/helpers/BackgroundTaskHelper.class.php on line 20


Deprecated: Non-static method App\Helpers\BackgroundTaskHelper::getCallingCronName() should not be called statically in /www/wwwroot/site.com/app/helpers/BackgroundTaskHelper.class.php on line 66


Deprecated: Non-static method App\Helpers\BackgroundTaskHelper::getCurrentServerName() should not be called statically in /www/wwwroot/site.com/app/helpers/BackgroundTaskHelper.class.php on line 34


Deprecated: Non-static method App\Helpers\BackgroundTaskHelper::end() should not be called statically in /www/wwwroot/site.com/app/tasks/create_internal_notifications.cron.php on line 63


Deprecated: Non-static method App\Helpers\BackgroundTaskHelper::getTaskName() should not be called statically in /www/wwwroot/site.com/app/helpers/BackgroundTaskHelper.class.php on line 48


Deprecated: Non-static method App\Helpers\BackgroundTaskHelper::getCallingCronName() should not be called statically in /www/wwwroot/site.com/app/helpers/BackgroundTaskHelper.class.php on line 66
 

adam

Administrator
Staff member
Dec 5, 2009
2,043
108
63
Hi,

I've responded to your ticket, but you should run the crons via their file path, not the domain name. Details here:


I'd also recommend hiding PHP notices, errors etc from your live site, they may pose a security risk. You can do this via the php.ini file.

Thanks,
Adam.