You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Looks like backwpup breaks some logging because it works when backwpup is disabled.
To Reproduce
PHP: 8.1 | Wordpress 6.5.4 | mailgun 1.9.9 | backwpup 4.10
Steps to reproduce the behavior:
Currently I get this error while using plugin 'mailgun'. (But I think there are more situations)
Install & activate 'mailgun'
Click on 'Settings' > 'Mailgun'
Scroll down to the actions:
click button 'save changes' once (you don't need an API-key to reproduce)
open debugging tools -> network tab
Click on button 'test configuration'
See error on last request
optionally:
disable backwpup plugin
Click on button 'test e-mail' -> no monolog error
Expected behavior
No Exception / no monolog error
Screenshots
[InvalidArgumentException]
HTTP 500 Internal Server Error
Level "Monolog\Level::Debug" is not defined, use one of: 100, 200, 250, 300, 400, 500, 550, 600, DEBUG, INFO, NOTICE, WARNING, ERROR, CRITICAL, ALERT, EMERGENCY
Psr\Log\ InvalidArgumentException
in /var/www/html/web/app/plugins/backwpup/vendor/monolog/monolog/src/Monolog/Logger.php (line 519)
in /var/www/html/web/app/plugins/backwpup/vendor/monolog/monolog/src/Monolog/Handler/AbstractHandler.php :: toMonologLevel (line 64)
in /var/www/html/web/app/plugins/backwpup/vendor/monolog/monolog/src/Monolog/Handler/AbstractHandler.php -> setLevel (line 44)
in /var/www/html/web/app/plugins/backwpup/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php -> __construct (line 56)
in /var/www/html/vendor/illuminate/log/LogManager.php -> __construct (line 189)
in /var/www/html/vendor/illuminate/log/LogManager.php -> createEmergencyLogger (line 141)
in /var/www/html/vendor/illuminate/log/LogManager.php -> get (line 124)
in /var/www/html/vendor/illuminate/log/LogManager.php -> driver (line 113)
in /var/www/html/vendor/roots/acorn/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php -> channel (line 102)
in /var/www/html/vendor/roots/acorn/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php -> handleDeprecationError (line 71)
in /var/www/html/vendor/roots/acorn/src/Roots/Acorn/Bootstrap/HandleExceptions.php -> handleError (line 49)
HandleExceptions->handleError(8192, 'strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated', '/var/www/html/web/app/plugins/mailgun/includes/admin.php', 479)
strpos(null, ''to'') in /var/www/html/web/app/plugins/mailgun/includes/admin.php (line 479)
MailgunAdmin->ajax_send_test('') in /var/www/html/web/wp/wp-includes/class-wp-hook.php (line 324)
WP_Hook->apply_filters('', array('')) in /var/www/html/web/wp/wp-includes/class-wp-hook.php (line 348)
WP_Hook->do_action(array('')) in /var/www/html/web/wp/wp-includes/plugin.php (line 517)
do_action('wp_ajax_mailgun-test') in /var/www/html/web/wp/wp-admin/admin-ajax.php (line 192)
The text was updated successfully, but these errors were encountered:
Describe the bug
Looks like backwpup breaks some logging because it works when backwpup is disabled.
To Reproduce
PHP: 8.1 | Wordpress 6.5.4 | mailgun 1.9.9 | backwpup 4.10
Steps to reproduce the behavior:
Currently I get this error while using plugin 'mailgun'. (But I think there are more situations)
optionally:
Expected behavior
No Exception / no monolog error
Screenshots
![grafik](https://private-user-images.githubusercontent.com/69295/337709356-47bdbbdb-9bc7-4288-96bc-cc02af8b8c4f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYwODA1MDYsIm5iZiI6MTcyNjA4MDIwNiwicGF0aCI6Ii82OTI5NS8zMzc3MDkzNTYtNDdiZGJiZGItOWJjNy00Mjg4LTk2YmMtY2MwMmFmOGI4YzRmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTExVDE4NDMyNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWUzOWJmNThmNDZlMDAyODY1YTFhOWM3Y2QzOTAyYzNiZWY4MjE0ZWY4OTg2NTk1MGNhYTRhMjJlMWZlNzgzYTUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.H1S6dMFFCiG2xe7U0A5G1hwLd66W0x25hP-36K6q2aQ)
![grafik](https://private-user-images.githubusercontent.com/69295/337712234-07a7c867-bd96-485f-a9fe-3b93ac3cfd10.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYwODA1MDYsIm5iZiI6MTcyNjA4MDIwNiwicGF0aCI6Ii82OTI5NS8zMzc3MTIyMzQtMDdhN2M4NjctYmQ5Ni00ODVmLWE5ZmUtM2I5M2FjM2NmZDEwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTExVDE4NDMyNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTE4Yjk0NTFlNDlmZDQwMmUxODlhZjlhYTU1YTZhYjExYTFhZWU5NTBjN2JlMzVkMTQ5Y2U4ZThmOWQyM2Q5OTgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.1L4knZafIvdwjNmWZsAP8ZrvT3KlAGY7oXRQoyAnqxc)
[InvalidArgumentException]
HTTP 500 Internal Server Error
Level "Monolog\Level::Debug" is not defined, use one of: 100, 200, 250, 300, 400, 500, 550, 600, DEBUG, INFO, NOTICE, WARNING, ERROR, CRITICAL, ALERT, EMERGENCY
Psr\Log\ InvalidArgumentException
in /var/www/html/web/app/plugins/backwpup/vendor/monolog/monolog/src/Monolog/Logger.php (line 519)
in /var/www/html/web/app/plugins/backwpup/vendor/monolog/monolog/src/Monolog/Handler/AbstractHandler.php :: toMonologLevel (line 64)
in /var/www/html/web/app/plugins/backwpup/vendor/monolog/monolog/src/Monolog/Handler/AbstractHandler.php -> setLevel (line 44)
in /var/www/html/web/app/plugins/backwpup/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php -> __construct (line 56)
in /var/www/html/vendor/illuminate/log/LogManager.php -> __construct (line 189)
in /var/www/html/vendor/illuminate/log/LogManager.php -> createEmergencyLogger (line 141)
in /var/www/html/vendor/illuminate/log/LogManager.php -> get (line 124)
in /var/www/html/vendor/illuminate/log/LogManager.php -> driver (line 113)
in /var/www/html/vendor/roots/acorn/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php -> channel (line 102)
in /var/www/html/vendor/roots/acorn/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php -> handleDeprecationError (line 71)
in /var/www/html/vendor/roots/acorn/src/Roots/Acorn/Bootstrap/HandleExceptions.php -> handleError (line 49)
HandleExceptions->handleError(8192, 'strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated', '/var/www/html/web/app/plugins/mailgun/includes/admin.php', 479)
strpos(null, ''to'') in /var/www/html/web/app/plugins/mailgun/includes/admin.php (line 479)
MailgunAdmin->ajax_send_test('') in /var/www/html/web/wp/wp-includes/class-wp-hook.php (line 324)
WP_Hook->apply_filters('', array('')) in /var/www/html/web/wp/wp-includes/class-wp-hook.php (line 348)
WP_Hook->do_action(array('')) in /var/www/html/web/wp/wp-includes/plugin.php (line 517)
do_action('wp_ajax_mailgun-test') in /var/www/html/web/wp/wp-admin/admin-ajax.php (line 192)
The text was updated successfully, but these errors were encountered: