The issue is “A PHP session was created by a session_start()
function call. This interferes with REST API and loopback requests. The session should be closed by session_write_close()
before making any HTTP requests.”
I will be grateful.
Thanks
I keep getting a PHP error:
[19-Jun-2024 09:25:48 UTC] PHP Fatal error: Uncaught Error: Call to a member function get_cart() on null in /home/customer/www/upgradeyourvan.de/public_html/wp-content/plugins/cartpops/public/class-cartpops-cart.php:161
Can u help me to fix it?
– Undefined variable $this_feed in /wp-content/plugins/woo-product-feed-pro/woocommerce-sea.php on line 2113
Version WordPress: 6.4.1
PHP: 8.1.26
Woocommerce: 8.2.2
[12-Sep-2023 00:14:51 UTC] PHP Fatal error: Uncaught Error: Call to undefined function wp_cache_supports() in /home/mysite/public_html/wp-content/plugins/wpbenchmark/class.wpbenchmarkio.php:1193
Stack trace: 0 /home/mysite/public_html/wp-content/plugins/wpbenchmark/class.wpbenchmarkio.php(459): wpbenchmarkio->local_wp_cache_flush() 1 /home/mysite/public_html/wp-content/plugins/wpbenchmark/class.wpbenchmarkio.php(448): wpbenchmarkio->reset_and_prepare_object_cache() 2 /home/mysite/public_html/wp-content/plugins/wpbenchmark/class.wpbenchmarkio.php(34): wpbenchmarkio->get_initial_steps() 3 /home/mysite/public_html/wp-content/plugins/wpbenchmark/wp-benchmark-io.php(951): wpbenchmarkio->request_new(Array) 4 /home/mysite/public_html/wp-settings.php(418): include_once(‘/home/mysite/publi…’) 5 /home/mysite/public_html/wp-config.php(110): require_once(‘/home/mysite/publi…’) 6 /home/mysite/public_html/wp-load.php(50): require_once(‘/home/mysite/publi…’) 7 /home/mysite/public_html/wp-admin/admin.php(34): require_once(‘/home/mysite/publi…’) 8 /home/mysite/public_html/wp-admin/tools.php(40 in /home/mysite/public_html/wp-content/plugins/wpbenchmark/class.wpbenchmarkio.php on line 1193
I’ve noticed a php warning happening regardless if I’m using php 7.3 or 8.4
“Invalid characters passed for attempted conversion, these have been ignored”
I got the alert in Query Monitor plugin which monitors for any backend slow downs and errors. I’m not seeing the error on all my sites though. Can you please take a look what’s up?
—— more info
<code>
wp-content/plugins/security-malware-firewall/lib/CleantalkSP/Common/Helpers/IP.php:458
hexdec()
wp-content/plugins/security-malware-firewall/lib/CleantalkSP/Common/Helpers/IP.php:458
CleantalkSP\C\H\IP::isIPInNetwork()
wp-content/plugins/security-malware-firewall/lib/CleantalkSP/Common/Helpers/IP.php:250
CleantalkSP\C\H\IP::get()
wp-content/plugins/security-malware-firewall/security-malware-firewall.php:1434
spbc_auth_log()
wp-content/plugins/security-malware-firewall/inc/spbc-admin.php:438
spbc_admin_log_action()
wp-content/plugins/security-malware-firewall/inc/spbc-admin.php:24
spbc_admin_init()
wp-includes/class-wp-hook.php:308
do_action('admin_init')
wp-admin/admin.php:175<code></code>
</code>
_
]]>Could you tell me how to fix this?
]]>Here’s the warning I am seeing:
Warning: Cannot modify header information - headers already sent by (output started at /srv/users/ecom/apps/sitename/public/wp-content/plugins/kount-fraud-prevention/constants/index.php:372) in /srv/users/ecom/apps/sitename/public/wp-includes/functions.php on line 6878
No other notice/errors – but – it does seem to take the site down.
]]>$user->roles
return array without 0 index. And in code, you very often retrieve a role like this $user->roles[0]
includes/classes/Authenticator/Login.php:549
if ( 'backup_codes' !== $provider && SettingsPage::are_backup_codes_enabled( $user->roles[0] ) && isset( $codes_remaining ) && $codes_remaining > 0 ) {
includes/classes/Admin/Controllers/class-settings.php:177
if ( null === $role ) {
$role = $user->roles[0];
}
I temporarily fixed the problem at my site by replacing $user->roles[0]
into array_pop($user->roles)
but that doesn’t solve the problem globally. I think you should add an util that will get the role regardless of indexes