Страница 1 из 1

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

Добавлено: 26 июн 2025, 02:36
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

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

Добавлено: 26 июн 2025, 06:09
nruslan2
А просто отправляется? Ошибка проблемы авторизации насколько я понимаю из текста ошибки

С 15 мая корпоративные почты Google больше не поддерживают авторизацию через логин и пароль! Таким образом не возможно авторизоваться в некоторых ПО. (Самый смак в том что в самом корпоративном гугл аккаунте теперь не возможно подключить другой корпоративный гугл аккаунт :roll: )

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

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

Для версии 3.6.2 я обновлял библиотеки. Для начала попробуйте обновится.

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

Добавлено: 18 июл 2025, 11:06
Morfei
Проблема была на стороне почтового сервера. Это он не хотел отправлять почту. :-)