• Resolved Fabrizio Reder

    (@fabrizio-reder)


    After the last update I noticed some bugs on my site. In particular, when the gift wrap product don’t be added to the cart and even if I set to 0 the allowed message length, I still have textarea on the form.

    I check my debug log file and I don’t see any PHP error and I also don’t have errors in console.

    WordPress and all the plugins that I might think to be involved in (Woocommerce and GiftWrap) are updated at their last version. I am using PHP 7.4.27.

    I already tried to disable all other plugin (except Woocommerce, of course) and nothing changed.

    Have you some ideas about how to continue debugging this issues?

    Ty!

    PS. In order to not create problems to my customers, I disabled the plugin, so visiting the cart page you actually can’t see the form. If you need it for debugging I can reactive it.

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

Viewing 15 replies - 1 through 15 (of 19 total)
  • Hi @fabrizio-reder

    Thank you for your message. I am sorry to hear you are having problems. I cannot reproduce the problem:

    when the gift wrap product don’t be added to the cart

    Can you say what your settings are, what you tried to do, and what happened instead? Have you tried re-saving your gift wrapping settings, making sure your gift wrap products have prices and are published, clearing your caches, and perhaps testing with another theme? Do you have any JavaScript errors showing in your browser console with the plugin activated?

    As for the textarea set to zero, that was a typo/mistake amidst a big update — it’s a PLUS feature. You can still hide the textarea with CSS, or by editing/overwriting template files.

    Thread Starter Fabrizio Reder

    (@fabrizio-reder)

    Hi @littlepackage! Thank you for the quick answer!

    First of all sorry for my error. The phrase you quote should have been: “when the gift wrap product is add to cart, it don’t be added”. More depth, the button click submit form, the cart page is refreshed, but in the cart nothing change.

    1. I tried with a couple of WordPress default themes (Twenty Twenty-two and Twenty Twenty-one) with no customizations at all but the behavior won’t change;
    2. I don’t have any JS error on console;
    3. I don’t have any PHP error on logs
    4. I tried to update/re-save and even re-create my gift product
    5. I clean my browser cache, server cache, Woocommerce model cache and deleted all Woocommerce transients
    6. Of course the gift product has price and is publish

      There are other informations that can I give in order to help you to understand what is happening?

      For the textarea there’s no problems at all. I will hide it overwriting the template files.

    Sure, I’m curious which version of WordPress and WooCommerce you are using? Which PHP version?

    Thread Starter Fabrizio Reder

    (@fabrizio-reder)

    Wordpress: 5.9
    Woocommerce: 6.2.0
    PHP: 7.4.27

    Thread Starter Fabrizio Reder

    (@fabrizio-reder)

    Any news?

    No news, because I’m still unable to reproduce or see the issue. Frankly I was waiting for someone else to chime in saying theirs was also broken. I figured with 5000+ users, someone was bound to chime in. So what is unique about your setup?

    Let me clarify: are you saying that nothing else changed aside from the gift wrapper update and now it doesn’t work?

    Have you made any Gift Wrapper plugin template overrides on your system? Those templates changed drastically with the last plugin update, forcing it to be a major update (version 5 instead of version 4.something)… because it’s a breaking update…

    If no templates, can you show your settings, both gift wrapper and product (type/inventory/price etc)? If templates, review the changes and adjust.

    • This reply was modified 4 years, 3 months ago by Little Package. Reason: forgot to mention templates
    Thread Starter Fabrizio Reder

    (@fabrizio-reder)

    No, nothing else changed. And there is no template overrides on my system (only some CSS).

    Furthermore, the bug still persist switching theme on Twenty Twenty-Two, so I don’t think the problem is related to theme. Maybe some conflict with other plugin I used on this website? I don’t know… but I understand that you can’t solve the problem without reproduce the error (I am developer too) πŸ™‚

    For now I solved developing the functionality by myself and deactivating the plugin. My implementation is less elegant than your, but it works and I can use it until I will find the problem.

    If I will find something I update this thread.

    Thank you very much for your time. Have a nice day!

    @fabrizio-reder

    I’m sorry, that’s annoying and strange! Of course I have my ear to the ground and hopefully a reason — and a fix — comes to one of us soon!

    @fabrizio-reder Maybe try version 5.1 of Gift Wrapper. Not sure, but maybe it will address the issue we have here.

    Thread Starter Fabrizio Reder

    (@fabrizio-reder)

    Yes! I don’t know why, but now it seems to work fine. Ty very much!

    I’ve just had to disable this plugin as it caused a fatal error on my website. I went to edit a product and the edit screen opened on the product but I couldn’t see any description, quantities etc. It was displaying fine on my website.

    I get this message displayed on the edit screen for the product:

    Warning: Illegal string offset 'data' in /homepages/13/d646882304/htdocs/clickandbuilds/CardsandGiftwrap/wp-content/plugins/woocommerce-gift-wrapper/includes/class-gift-wrapper-wrapping.php on line 395
    
    Fatal error: Uncaught Error: Call to a member function get_id() on string in /homepages/13/d646882304/htdocs/clickandbuilds/CardsandGiftwrap/wp-content/plugins/woocommerce-gift-wrapper/includes/class-gift-wrapper-wrapping.php:395 Stack trace: #0 /homepages/13/d646882304/htdocs/clickandbuilds/CardsandGiftwrap/wp-content/plugins/woocommerce-gift-wrapper/includes/class-gift-wrapper-settings-product.php(41): The_Gift_Wrapper_Wrapping->is_wrap('64051') #1 /homepages/13/d646882304/htdocs/clickandbuilds/CardsandGiftwrap/wp-includes/class-wp-hook.php(292): The_Gift_Wrapper_Settings_Product->product_write_panel_tab(Array) #2 /homepages/13/d646882304/htdocs/clickandbuilds/CardsandGiftwrap/wp-includes/plugin.php(212): WP_Hook->apply_filters(Array, Array) #3 /homepages/13/d646882304/htdocs/clickandbuilds/CardsandGiftwrap/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-product-data.php(126): apply_filters('woocommerce_pro...', Array) #4 /homepages/13/d646882304/htdocs/clickandbuilds/CardsandGiftwrap/wp-conte in /homepages/13/d646882304/htdocs/clickandbuilds/CardsandGiftwrap/wp-content/plugins/woocommerce-gift-wrapper/includes/class-gift-wrapper-wrapping.php on line 395
    
    There has been a critical error on this website. Please check your site admin email inbox for instructions.

    If I disable the plugin everything is fine (except of course there won’t be an option for the customer to add gift wrapping!)

    I’m afraid that error message means nothing to me (not techy!) – any ideas?

    I should probably add:
    WordPress version 5.7.5
    Current theme: Storefront (version 3.5.1)
    Current plugin: Gift Wrapper (version 5.1.1)
    PHP version 7.4.25

    @jrossjord Thank you for reporting. I guess my main question for you at this point would be which version of WooCommerce are you using?

    Woocommerce 6.2.1

    OK, I’ll pull something together based on your error message and issue an update probably this morning. Thanks again!

Viewing 15 replies - 1 through 15 (of 19 total)

The topic ‘Some problems after last update’ is closed to new replies.