Hi all
I looked for a solution on the forum but I did not find anything that could solve the problem.
I am under a version 5.5 with a php 5.6
When I go to the admin backoffice and I launch the maintenance options manually, I don’t have any particular concerns (it’s logn but it does the job (reset hours for example or reset Pirep driver count)
On the other hand, if I want to use the cronjob and launch the suggested line (php -f /homepages/33/d797466141/htdocs/hdd/vavirtual/crew/admin/maintenance.php) it does not work.
I sent the output of the cronjob to a file and here is what I have (many of these lines) :
\<b\>Strict Standards\</b\>: date(): It is not safe to rely on the system's timezone settings. You are \*required\* to use the date.timezone setting or the date\_default\_timezone\_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in \<b\>/homepages/33/d797466141/htdocs/hdd/vavirtual/crew/core/common/FinanceData.class.php\</b\> on line \<b\>127\</b\>\<br /\>
but I also have this:
\<div id="codon\_crit\_error" style="font-family: 'Lucida Sans',Verdana;border:#999 1px solid;background-color:#fff;padding:20px 20px 12px 20px;"\> \<h1 style="font-family: verdana; font-weight:16px;font-size:18px;color:#6B001B;margin:0 0 4px 0;"\>An Error Was Encountered\</h1\> \<p style="font-size: 16px; color: #001B6B"\>Unauthorized access - Invalid Permissions.\</p\> \<p style="font-size: 10px;"\>\<center\>\<a href="https://crew.airfrancevirtuel.com"\>Return to Homepage\</a\>\</p\> \</div\>
I understand that he has a problem with permission … but to access which folder or file? (to be able to change permissions)
in the CORE logs I find these same alerts
[25-May-2020 04:15:02 Europe/Berlin] PHP Strict Standards: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in /homepages/33/d797466141/htdocs/hdd/airfrancevirtuel/crew/core/common/FinanceData.class.php on line 127
In line 127 i have :
if ($time == date('Ym')) {
the complete function from which the line comes:
public static function getExpensesForMonth($timestamp) { $time = date('Ym', $timestamp); # If it's the current month, just return the latest expenses if ($time == date('Ym')) { return self::getAllExpenses(); } $sql = 'SELECT \* FROM ' . TABLE\_PREFIX . 'expenselog WHERE `dateadded`=' . $time; $ret = DB::get\_results($sql); if(!$ret) { return array(); } return $ret; }
of course cron is activated in local.config.php Config::Set(‘USE_CRON’, true);
today it starts to worry me about launching the scripts via the admin interface manually ![]()
If you have an idea so that the cronjob can run without error and allow me to focus on something else … your help would be appreciated ![]()
thank you for reading me until the end ![]()
Best regards