• Plans & Pricing
  • Log in
  • Get started
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Newsletter
  • Professional Email
  • Website Design Services
  • Commerce
  • WordPress Studio
  • Enterprise WordPress 
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
  • Support Center
  • WordPress News
  • Business Name Generator
  • Logo Maker
  • Discover New Posts
  • Popular Tags
  • Blog Search
Get started
  • Sign up
  • Log in
About
  • Plans & Pricing
Products
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Newsletter
  • Professional Email
  • Website Design Services
  • Commerce
  • WordPress Studio
  • Enterprise WordPress  
Features
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
Resources
  • Support Center
  • WordPress News
  • Business Name Generator
  • Logo Maker
  • Discover New Posts
  • Popular Tags
  • Blog Search
Jetpack App
  • Learn more
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
Search
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
Forums / Problem with PHP8

Problem with PHP8

  • Unknown's avatar
    joelmichael8 · Member · Dec 19, 2023 at 6:04 am
    • Copy link Copy link
    • Add topic to favorites Add topic to favorites

    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 you

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar
    aisajib · Member · Dec 19, 2023 at 10:29 am
    • Copy link Copy link

    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.

Tags

  • .org
  • account
  • currency
  • design

About this topic

  • In: Support
  • 2 participants
  • 1 reply
  • Last activity 2 years
  • Latest reply from joelmichael8

Couldn't find what you needed?

Contact us

Contact us

Get answers from our AI assistant, with access to 24/7 expert human support on paid plans.

Browse our guides

Browse our guides

Find step-by-step solutions to common questions in our comprehensive guides.

WordPress.com

Products
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Professional Email
  • Website Design Services
  • WordPress Studio
  • Enterprise WordPress
Features
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
Resources
  • WordPress.com Blog
  • Business Name Generator
  • Logo Maker
  • WordPress.com Reader
  • Accessibility
  • Remove Subscriptions
Help
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
  • Developer Resources
Company
  • About
  • Press
  • Terms of Service
  • Privacy Policy
  • Do Not Sell or Share My Personal Information
  • Privacy Notice for California Users
DeutschEspañolFrançaisBahasa IndonesiaItalianoNederlandsPortuguês do BrasilSvenskaTürkçeРусскийالعربيةעִבְרִית日本語한국어简体中文繁體中文English

Mobile Apps

  • Download on the App Store
  • Get it on Google Play

Social Media

  • WordPress.com on Facebook
  • WordPress.com on X (Twitter)
  • WordPress.com on Instagram
  • WordPress.com on YouTube

Automattic

Automattic
Work With Us
    • WordPress.com Forums
    • Sign up
    • Log in
    • Copy shortlink
    • Report this content
    • Manage subscriptions