Problem with PHP8
-
Hi Folks
I have recently just updated a wordpress site for my son which used a very old and hacked theme to post video reviews. I finally was able to work out how to get the new theme to work and to get the old embedded videos to show on each post by adding this line of code:<?php $values = get_post_custom_values(“video”); echo $values[0]; ?>
This works great however each new post he does with the new theme doesnt require this code and because the video embed is missing from the new posts it throws up an error message but only on PHP 8, not any older php versions. Here is the message:
Warning: Trying to access array offset on value of type null in /home/customer/www/movietube.com.au/public_html/wp-content/themes/justvideo/single.php on line 18
Does anyone have a solution please? Thank youThe blog I need help with is: (visible only to logged in users)
-
Hello!
Thank you for reaching out. It seems like you are using a WordPress.org site and are looking for assistance.
In this case, I suggest posting your question or concern on the WordPress.org forum. It is a helpful community where you can get guidance and support from other WordPress users and experts. By posting on the forum, you will have a wider reach and better chances of finding a solution to your issue.
To clarify, we can help with WordPress.com sites on this forum. There are some differences between WordPress.com and WordPress.org. If you aren’t sure about them, please check the following page that explains it: WordPress.com vs. WordPress.org.
If you’re not sure if your site is self-hosted, please share the link, and we’ll check.
Hope that helps!
- The topic ‘Problem with PHP8’ is closed to new replies.