PHP 7.2 Breaks WooCommerce Product Pages

This topic has 15 replies, 3 voices, and was last updated 5 years, 12 months ago ago by Rose Tyler

  • Avatar: kw13
    kw13
    Participant
    November 13, 2018 at 12:50

    All of my plugins are up to date and so is the theme but when I switch my host to PHP 7.2 the entire site works (front and backend) except for individual WooCommerce product pages – only the images display but popups and javascript actions don’t work; description, buy button, reviews, tabs, etc. are not shown and neither is the site footer. I tried using the Twenty Sixteen theme and everything works and displays perfectly which tells me this is a theme problem and not a plugin conflict. I also tried PHP 7.1 and that doesn’t work with Royal either.

    I’d really like to use PHP 7.2 because it does make the site faster. Can you please tell me if there are any known issues with the Royal Theme on 7.2, and if not can you take a look and assist with a fix?

    Thanks!

    Please, contact administrator
    for this information.
    14 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    November 13, 2018 at 13:25

    Hello,

    What PHP version on your site right now?
    Please provide us with temporary wp-admin and FTP access so we can take a closer look.

    Regards

    Avatar: kw13
    kw13
    Participant
    November 13, 2018 at 14:21

    I reverted the site back to 7.0 because it’s a live e-commerce shop and can’t stay broken (on 7.2). I’ve included a temp admin login and if necessary can provide the Kinsta hosting login to change the PHP.

    Please, contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    November 13, 2018 at 16:09

    I would recommend you to create a staging site (a full copy of live site but with PHP 7.2) where we will be able to check the problem more deeply. Provide us with wp-admin and FTP access to that site.

    Regards

    Avatar: kw13
    kw13
    Participant
    November 13, 2018 at 17:16

    Hi,

    I’ve included the staging info…

    Please, contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    November 14, 2018 at 08:21

    Hello,

    Unfortunately, we can’t check your staging site, there is a redirect to live one. Please check.

    Regards

    Avatar: kw13
    kw13
    Participant
    November 14, 2018 at 13:55

    Hi,

    There was an error creating the initial staging site, it has now been fixed and I can confirm it works (won’t redirect to live).

    Credentials are below…

    Please, contact administrator
    for this information.
    Avatar: kw13
    kw13
    Participant
    November 14, 2018 at 14:02

    I’ve also set the staging site to be on PHP 7.2 so you’ll see the errors between the live site (php 7.0) and staging.

    Please, contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    November 15, 2018 at 09:24

    Hello,

    Thank you. We have passed your problem to our developers and inform you once get the answer.

    Regards

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    November 15, 2018 at 18:09

    Hello,

    We have disabled the third-party plugins on your staging site that do not come bundled with our theme and don’t see the compatibility problem with PHP 7.2. Enable your third-party plugins one by one to find out which one is the reason of your problem. Seems one of them or maybe few of them do not support PHP 7.2 and you will need to contact plugins author to fix it.

    First of all check WooCommerce Memberships because it gives fatal error https://prnt.sc/libefe and Menu – Visibility control for menu items https://prnt.sc/libjxh

    Regards

    Avatar: kw13
    kw13
    Participant
    November 16, 2018 at 09:25

    I’ve gone through all of the plugins and it is indeed WooCommerce Memberships that’s causing the problem but it’s a theme specific issue. I’ve tried both the Twenty Sixteen theme by WordPress and Storefront by Automattic and everything displays perfectly with Memberships enabled – once I switch back to Royal the content on the product pages disappears. Memberships is a widely used official WooCommerce plugin so I can’t imagine a theme not supporting it, plus the changelog confirms that it’s PHP 7.2 compatible. Can you please take a closer look to see why Royal won’t work with Memberships in 7.2? Thanks!

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    November 20, 2018 at 16:38

    Hello,

    We have fixed the compatibility issue. Changes were made in royal/framework/woo.php file. We’ll also include the fix in the next theme update.
    Check now, please.

    Regards

    Avatar: kw13
    kw13
    Participant
    November 23, 2018 at 05:20

    Hi Olga,

    Thanks for working on this – there still seems to be a problem though. There are multiple error messages on the staging site which are displayed when I’m logged in and logged out. Also the footer of the site is cut off and it’s not possible to scroll past a certain point on any pages now. If you compare the live and staging sites you’ll see the issue. I’ve included the error messages I’m seeing in the private content area.

    Please contact administrator
    for this information.
    Avatar: kw13
    kw13
    Participant
    November 23, 2018 at 05:34

    Sorry, please disregard my last message. The fix worked once I applied it to the live site. Thank you so much for the amazing support and for adding the WooCommerce Memberships fix to the next theme update. I’m excited to be able to use PHP 7.2 now!

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    November 23, 2018 at 08:27

    Hello,

    You’re welcome!

    Regards

  • Viewing 15 results - 1 through 15 (of 15 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.