Virtual URLs + PHP 8* = Null Issues
-
I am doing basic 302 redirects from a virtual URL (no “real” post or page) for example
Redirect 302 /go/fluffykitten https://fluffykitten.com
However, because there is no “real” page I get the following errors, and I am well aware this is a PHP 8* issue but I don’t want to downgrade.PHP Warning: Attempt to read property “post_parent” on null in /home/public_html/wp-includes/post-template.php on line 724
PHP Warning: Attempt to read property “post_type” on null in /home/public_html/wp-includes/link-template.php on line 4068
PHP Warning: Attempt to read property “post_type” on null in /home/public_html/wp-includes/link-template.php on line 4066
I would love a solution or to be pointed in the direction of a solution!
- The topic ‘Virtual URLs + PHP 8* = Null Issues’ is closed to new replies.