• Resolved hardyzbest

    (@hardyzbest)


    Hey there,

    So, I started using the offer functions and I’m very happy with it except one thing. And before I fix it on my own, I’d like to give you this information to fix it for future releases.

    Everytime I put an offer from my dashboard into the cart, I get this information (I deleted the path before/plugins/ ):

    Warning: Undefined variable $size in …/plugins/b2bking/public/class-b2bking-public.php on line 5400

    The warning is affected on the variables $attr and $placeholder aswell.

    – OP Cache is active
    – B2B Caching is active
    – HTTP/2 is active
    – dedicated hosting server with lots of power
    – PHP 8.0.23
    – Database MariaDB 10.6
    – no WPML or anything else for multilinguality
    – CDN network deactivated
    – Checked all other plugins by deactivating one by one
    – Tested with and without Ajax
    – cleared your built in cache without effect

    • This topic was modified 2 years, 2 months ago by hardyzbest.
    • This topic was modified 2 years, 2 months ago by hardyzbest.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter hardyzbest

    (@hardyzbest)

    [EDIT]

    Looked at the php and I guess it’s the image of the selected variation. I don’t use variation images like most of the woocommerce users. I prefer a solution to get the main product image.

    • This reply was modified 2 years, 2 months ago by hardyzbest.
    Thread Starter hardyzbest

    (@hardyzbest)

    [EDIT]

    the offer-image-setting for frontend didn’t solve the issue, also no the compatibility setting at the end of the advanced-tab.

    I deleted the variables to atleast continue with my styling/formatting but I clearly NOT recommend to delete something in the core files of this plugin. If anyone else has this issue, please continue reading the upcoming/next replies!

    Plugin Author WebWizards

    (@webwizardsdev)

    Hi there!

    If I understand correctly, I think you’re using the B2BKing Pro plugin as well, correct?

    I checked for a $size variable, and checked line 5400, but it doesn’t seem to match what I have here in the latest version. So I’m wondering what version of the plugin you have active?

    Do you already have the latest 4.4.55 version of B2BKing Pro? If not, can you please update and check again? I am thinking this could be an issue we solved in a previous update.

    Looking forward to your reply,

    Thread Starter hardyzbest

    (@hardyzbest)

    Just checked the version, it’s 4.4.33 . Envato now shows me an update since yesterday, I will check it and let you know!

    Thanks!

    Plugin Author WebWizards

    (@webwizardsdev)

    Got it, I checked and I think that the 4.4.55 update solved that.

    Let me know if you still see issues after updating.

    Thread Starter hardyzbest

    (@hardyzbest)

    Updated to 4.4.55 and the line 5400 containing $size isn’t there anymore. Plus no PHP warnings anymore, everything works like a charm.

    Guys, really, this was the best decision I made using your plugin.

    If you ever need some feedback for future add-ons or improvement, I’d be happy to help you out.

    • This reply was modified 2 years, 2 months ago by hardyzbest.
    Plugin Author WebWizards

    (@webwizardsdev)

    Great to hear that and thank you for the kind words ! ??

    If you have any feedback we are always happy to hear it, so let us know! We have a list of plugin improvements we’re looking to add and we’re always trying to see how we can make it better.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘PHP Warning after offer was put in cart’ is closed to new replies.