• Looks like Virtue is still not compliant with PHP 8.0!? Support of 7.4 is over and our website is throwing a number of errors with Virtue and PHP 8.0.

    Please advise?

Viewing 7 replies - 1 through 7 (of 7 total)
  • hannah

    (@hannahritner)

    Hi!

    I am using PHP 8+ with Virtue and am not experiencing errors. What errors are you getting? Have you tried deactivating your plugins to test if one of them is outputting the error?

    Kindly,

    Hannah

    Thread Starter shinymoon

    (@shinymoon)

    I get the following error when I switch from PHP 7.4 to 8.0 :

    Warning: Undefined variable $attr in /homepages/20/d241619688/htdocs/wp-content/themes/virtue-child/single-products.php on line 92

    Also:

    Warning: Undefined variable $query_string in /homepages/20/d241619688/htdocs/wp-content/themes/virtue-child/templates/home/blog-home.php on line 44Warning: Undefined variable $portraitwidth in /homepages/20/d241619688/htdocs/wp-content/themes/virtue-child/templates/home/blog-home.php on line 62

    Warning: Undefined variable $portraitheight in /homepages/20/d241619688/htdocs/wp-content/themes/virtue-child/templates/home/blog-home.php on line 62

    The layout of the website gets misaligned. I also noticed the CAPTCHA of the contact form I am using is no longer displayed in PHP 8.0 but that’s more of a plugin problem probably and not my main concern.

    I’d be thankful for any help as I am a rookie with this!

    hannah

    (@hannahritner)

    Hey,

    Can you tell me what version of the parent theme you’re running? And what all you have added to your child theme?

    Thanks,

    Hannah

    Thread Starter shinymoon

    (@shinymoon)

    It is Virtue version: 3.4.7.

    Unfortunately I didn’t design the website, I am just the user/owner, so I am not sure how to answer the second question… I’d be thankful if you tell me what to look into more specifically and where.

    Your help is much appreciated!

    hannah

    (@hannahritner)

    Hi,

    Based on your errors, it looks like you have a child theme active. When you navigate to Appearance > Themes what theme is active? Try activating Virtue Theme (not child). Can you also provide a link to your site?

    Thanks,

    Hannah

    Thread Starter shinymoon

    (@shinymoon)

    That is correct Hannah,

    There is a Child theme which I have been told is based on / linked to the Virtue theme. It is the child theme which is active in WP. I tried to activate the Virtue theme itself – the website design gets messed up completely, but I did not see any errors indeed (but also the accessible content is also quite limited so not able to check everywhere).

    It is worth noting that such issues (with PHP ver) happened before, about an year ago. I engaged the developer at that stage and she advised just to update the Virtue theme to the latest version. Which resolved the issue at that time. This time however the theme is up-to-date but the errors pop-up nevertheless.

    Try this link for the website: s241619699.online.de

    You will not see the errors as I am forced to continue with PHP 7.4 until I find a solution. I can of course go over to 8.0 for you to see the errors at a given point in time.

    I appreciate your help!

    • This reply was modified 1 year, 9 months ago by shinymoon.
    hannah

    (@hannahritner)

    Hi,

    Apologies for the delay! Just to be clear, with the parent Virtue theme active and PHP 8 running there are no errors, but when you switch to the child theme the errors appear? This means there is something in your child theme that is not compatible with PHP 8. Whether it be code or a plugin or the like. Have you tried deactivating your plugins to test?

    Kindly,

    Hannah

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Virtue Theme not compliant with PHP 8.0 !??’ is closed to new replies.