etruel / wpematico

11 stars 9 forks source link

Fatal Error on WPeMatico settings screen | WP 6.2 #46

Closed manuelge closed 1 year ago

manuelge commented 1 year ago

A fatal error is being generated when entering the WPeMatico>Settings screen.

[30-Mar-2023 18:23:39 UTC] PHP Fatal error: Uncaught WpOrg\Requests\Exception\InvalidArgument: WpOrg\Requests\Cookie::__construct(): Argument #1 ($name) must be of type string, integer given in /var/www/clients/client1/web58/web/wp-includes/Requests/src/Exception/InvalidArgument.php:29 Stack trace:

0 /var/www/clients/client1/web58/web/wp-includes/Requests/src/Cookie.php(83): WpOrg\Requests\Exception\InvalidArgument::create()

1 /var/www/clients/client1/web58/web/wp-includes/class-wp-http.php(472): WpOrg\Requests\Cookie->__construct()

2 /var/www/clients/client1/web58/web/wp-includes/class-wp-http.php(352): WP_Http::normalize_cookies()

3 /var/www/clients/client1/web58/web/wp-includes/http.php(145): WP_Http->request()

4 /var/www/clients/client1/web58/web/wp-content/plugins/wpematico/app/wpematico_functions.php(1584): wp_remote_request()

5 /var/www/clients/client1/web58/web/wp-content/plugins/wpematico/app/lib/wp_ratings.php(24): WPeMatico_functions::wpematico_get_contents()

6 /var/www/clients/client1/web58/web/wp-content/plugins/wpematico/app/wpematico_functions.php(1722): require_once('...')

7 /var/www/clients/client1/web58/web/wp-includes/class-wp-hook.php(308): wpematico_wp_ratings()

8 /var/www/clients/client1/web58/web/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()

9 /var/www/clients/client1/web58/web/wp-includes/plugin.php(517): WP_Hook->do_action()

10 /var/www/clients/client1/web58/web/wp-content/plugins/wpematico/app/settings_page.php(325): do_action()

11 /var/www/clients/client1/web58/web/wp-includes/class-wp-hook.php(308): WPeMatico_Settings::settings_form()

12 /var/www/clients/client1/web58/web/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()

13 /var/www/clients/client1/web58/web/wp-includes/plugin.php(517): WP_Hook->do_action()

14 /var/www/clients/client1/web58/web/wp-content/plugins/wpematico/app/settings_tabs.php(78): do_action()

15 /var/www/clients/client1/web58/web/wp-includes/class-wp-hook.php(308): wpematico_settings_page()

16 /var/www/clients/client1/web58/web/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()

17 /var/www/clients/client1/web58/web/wp-includes/plugin.php(517): WP_Hook->do_action()

18 /var/www/clients/client1/web58/web/wp-admin/admin.php(259): do_action()

19 /var/www/clients/client1/web58/web/wp-admin/edit.php(10): require_once('...')

20 {main}

thrown in /var/www/clients/client1/web58/web/wp-includes/Requests/src/Exception/InvalidArgument.php on line 29

etruel commented 1 year ago

Seems this works to hide the error

image