Проблемы отправки почты cron при помощи email_by_date.php

Ответить
Аватара пользователя
Morfei
Сообщения: 165
Зарегистрирован: 14 апр 2022, 19:13
Имя: Виктор
Откуда: Нерюнгри

Проблемы отправки почты cron при помощи email_by_date.php

Сообщение Morfei »

Доброго времени суток.

Словил проблему. При выполнении cron задания

/usr/bin/php -q /var/www/ruko/htdocs/cron/email_by_date.php

Получаю ошибку и почта не отправляется. Версия руководителя 3.6.1

Код: Выделить всё

PHP Deprecated:  Google\Client::fetchAccessTokenWithAssertion(): Implicitly marking parameter $authHttp as nullable is deprecated, the explicit nullable type must be used instead in /var/www/ruko/htdocs/includes/libs/FileStorage/GoogleDrive/2.15.1/vendor/google/apiclient/src/Client.php on line 286
PHP Deprecated:  Google\Client::authorize(): Implicitly marking parameter $http as nullable is deprecated, the explicit nullable type must be used instead in /var/www/ruko/htdocs/includes/libs/FileStorage/GoogleDrive/2.15.1/vendor/google/apiclient/src/Client.php on line 419
PHP Deprecated:  Google\AccessToken\Revoke::__construct(): Implicitly marking parameter $http as nullable is deprecated, the explicit nullable type must be used instead in /var/www/ruko/htdocs/includes/libs/FileStorage/GoogleDrive/2.15.1/vendor/google/apiclient/src/AccessToken/Revoke.php on line 42
PHP Deprecated:  Google\AccessToken\Verify::__construct(): Implicitly marking parameter $http as nullable is deprecated, the explicit nullable type must be used instead in /var/www/ruko/htdocs/includes/libs/FileStorage/GoogleDrive/2.15.1/vendor/google/apiclient/src/AccessToken/Verify.php on line 69
PHP Deprecated:  Google\AccessToken\Verify::__construct(): Implicitly marking parameter $cache as nullable is deprecated, the explicit nullable type must be used instead in /var/www/ruko/htdocs/includes/libs/FileStorage/GoogleDrive/2.15.1/vendor/google/apiclient/src/AccessToken/Verify.php on line 69
PHP Deprecated:  Google\AuthHandler\Guzzle6AuthHandler::__construct(): Implicitly marking parameter $cache as nullable is deprecated, the explicit nullable type must be used instead in /var/www/ruko/htdocs/includes/libs/FileStorage/GoogleDrive/2.15.1/vendor/google/apiclient/src/AuthHandler/Guzzle6AuthHandler.php on line 23
PHP Deprecated:  Google\AuthHandler\Guzzle6AuthHandler::attachCredentials(): Implicitly marking parameter $tokenCallback as nullable is deprecated, the explicit nullable type must be used instead in /var/www/ruko/htdocs/includes/libs/FileStorage/GoogleDrive/2.15.1/vendor/google/apiclient/src/AuthHandler/Guzzle6AuthHandler.php on line 29
PHP Deprecated:  Google\AuthHandler\Guzzle6AuthHandler::attachCredentialsCache(): Implicitly marking parameter $tokenCallback as nullable is deprecated, the explicit nullable type must be used instead in /var/www/ruko/htdocs/includes/libs/FileStorage/GoogleDrive/2.15.1/vendor/google/apiclient/src/AuthHandler/Guzzle6AuthHandler.php on line 46
PHP Deprecated:  Google\Http\REST::decodeHttpResponse(): Implicitly marking parameter $request as nullable is deprecated, the explicit nullable type must be used instead in /var/www/ruko/htdocs/includes/libs/FileStorage/GoogleDrive/2.15.1/vendor/google/apiclient/src/Http/REST.php on line 121
PHP Deprecated:  Google\Http\REST::decodeBody(): Implicitly marking parameter $request as nullable is deprecated, the explicit nullable type must be used instead in /var/www/ruko/htdocs/includes/libs/FileStorage/GoogleDrive/2.15.1/vendor/google/apiclient/src/Http/REST.php on line 150
PHP Deprecated:  Google\Http\REST::determineExpectedClass(): Implicitly marking parameter $request as nullable is deprecated, the explicit nullable type must be used instead in /var/www/ruko/htdocs/includes/libs/FileStorage/GoogleDrive/2.15.1/vendor/google/apiclient/src/Http/REST.php on line 160
PHP Deprecated:  Google\Http\REST::isAltMedia(): Implicitly marking parameter $request as nullable is deprecated, the explicit nullable type must be used instead in /var/www/ruko/htdocs/includes/libs/FileStorage/GoogleDrive/2.15.1/vendor/google/apiclient/src/Http/REST.php on line 187
PHP Deprecated:  Google\Service\Exception::__construct(): Implicitly marking parameter $previous as nullable is deprecated, the explicit nullable type must be used instead in /var/www/ruko/htdocs/includes/libs/FileStorage/GoogleDrive/2.15.1/vendor/google/apiclient/src/Service/Exception.php on line 39
PHP Deprecated:  Google\Task\Composer::cleanup(): Implicitly marking parameter $filesystem as nullable is deprecated, the explicit nullable type must be used instead in /var/www/ruko/htdocs/includes/libs/FileStorage/GoogleDrive/2.15.1/vendor/google/apiclient/src/Task/Composer.php on line 31
nruslan2
Сообщения: 2435
Зарегистрирован: 14 окт 2020, 09:13
Имя: Ruslan
Откуда: Moscow

Re: Проблемы отправки почты cron при помощи email_by_date.php

Сообщение nruslan2 »

А просто отправляется? Ошибка проблемы авторизации насколько я понимаю из текста ошибки

С 15 мая корпоративные почты Google больше не поддерживают авторизацию через логин и пароль! Таким образом не возможно авторизоваться в некоторых ПО. (Самый смак в том что в самом корпоративном гугл аккаунте теперь не возможно подключить другой корпоративный гугл аккаунт :roll: )
Аватара пользователя
support
Техническая поддержка
Сообщения: 7661
Зарегистрирован: 19 окт 2014, 18:22
Имя: Харчишин Сергей
Откуда: Крым, Евпатория

Re: Проблемы отправки почты cron при помощи email_by_date.php

Сообщение support »

Это не ошибки, а PHP Deprecated. Они не должны влиять на работу. Они появляются при подключении библиотек Google так как при выполнении крон видимо используется последняя версия ПХП.

Для версии 3.6.2 я обновлял библиотеки. Для начала попробуйте обновится.
Аватара пользователя
Morfei
Сообщения: 165
Зарегистрирован: 14 апр 2022, 19:13
Имя: Виктор
Откуда: Нерюнгри

Re: Проблемы отправки почты cron при помощи email_by_date.php

Сообщение Morfei »

Проблема была на стороне почтового сервера. Это он не хотел отправлять почту. :-)
Ответить