Apr 23, 2024 8:00 pm
It gives me such errors all the time
1. PHP Warning: Attempt to read property "before_loop" on null in public_html/wp-includes/media.php on line 5884
2. PHP Fatal error: Uncaught ValueError: Unknown format specifier "z" in =public_html/wp-content/themes/coral-light/404.php:44
Stack trace:
public_html/wp-content/themes/coral-light/404.php(44): sprintf('Spr\xC3\xB3buj poszuk...', '\xF0\x9F\x99\x82')
public_html/wp-includes/template-loader.php(106): include('/usr/home/zygza...')
public_html/wp-blog-header.php(19): require_once('/usr/home/zygza...')
public_html/index.php(17): require('/usr/home/zygza...')
{main}
thrown in public_html/wp-content/themes/coral-light/404.php on line 44
3. PHP Warning: Attempt to read property "before_loop" on null in public_html/wp-includes/media.php on line 5884
Apr 23, 2024 9:18 pm
Error 2 (fatal) comes from your theme and Warning 1 & 3 comes from something else (shows Wordpress core but it can be anything).
Did you downgraded to PHP 8.2.x? Or even 8.1.x ?
Can you post a url, so maybe we can check more?
Apr 23, 2024 9:21 pm
before_loop if i'm correct, has something to do with lazy loading.
Apr 24, 2024 4:39 pm
A friend of mine has changed something in the code and there is currently no bug. Unfortunately, it will come back after the update. He doesn't know why these errors show up so much
Apr 24, 2024 6:00 pm
What a waste of time.