• Resolved steindialog

    (@steindialog)


    Dear woocommerce team,

    unfortunately I have an issue with my variable product.
    I am unable to select an item to add this into the basket.

    While selecting the item the image does not change and there is no error message to get an idea to solve.

    Please watch this screen video to see what I mean.
    Screen Video > https://www.screencast.com/t/rNA5SLvNJ

    Within error.og I only find this entry
    [26-Apr-2021 20:14:43 UTC] PHP Deprecated: Directive ‘allow_url_include’ is deprecated in Unknown on line 0

    If I create the product new with only a 3 variation then its working, but my product has 208 variations and after creating only those 3 exporting those and re-import then the others then the problem occure.

    I hope you will be able to help me fast with this issue of our infinity flower shop.

    Best regards, Alex

    P.S. I even have checked this post https://wordpress.org/support/topic/variations-not-changing-on-product-page/ but without success so far.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Not sure if this is still true or not, but a few years ago there was a cut off for variations that are preloaded and the rest are loaded via AJAX. You can modify the cut off number. Here’s a link that has the code snippet. You’d probably want to change the 100 to 250 or something higher than your 208 variations.

    That may not be a great long term solution (could cause speed issues), but it may help for right now.

    Thread Starter steindialog

    (@steindialog)

    Hi 2ysub2yur,

    thanks for your feedback, if tried by adding the code sippet via woodysnippet also tried using code snippet, but unfortunately it’s not working.

    The strange thing is, that it has worked a few weeks ago and suddenly not any more. I am unsure if it has to do with the wordpress core update or with the export/import of products, but formerly the export/import of product variations has not made any issues.

    On other product variations the export/import it works properly. I am really unsure how to get it back to work. Even if I drop all plugins (exept woocommerce) in OFF folder and switch the theme to 2020. The issue stays the same.

    Please let me know your further suggestions.

    Best regards, Alex

    Thread Starter steindialog

    (@steindialog)

    Hi again,

    I’ve got info that the problem I have is related to a php v. 7.4.
    It`s about
    PHP Deprecated: Directive ‘allow_url_include’ is deprecated in Unknown on line 0

    https://www.google.com/search?client=firefox-b-d&q=allow_url_include+is+depreciated

    The cause is that allow_url_include has been deprecated in PHP 7.4 because it is a bad idea, your server settings are enabling the warning message that only developers should ever see, and this is confusing these plugins.

    Here is how I could solve this now.
    How To Fix: Deprecated: Directive ‘allow_url_include’ is deprecated in Unknown on line 0

    To fix this
    Log in to your control panel
    Select Advanced from the menu on the left
    Scroll down to the SOFTWARE group and select MultiPHP INI Editor
    Select location Home Directory
    Set PHP Directive allow_url_include to Disabled
    Set PHP Directive display_errors to Disabled
    Hit the Apply button at the bottom of the page
    Repeat steps 4-7 for each of your sites in the location menu

    Best regards and many THANKS again!!!

    Alex`

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Variations not changing on product page’ is closed to new replies.