WooCommerce 3 -> more than 65.000 webshops are broken

in business •  2 years ago 

During upgrades for a website a was googling after an error.

"Notice: id was called incorrectly"

I thought I will find the solution, like 10 stackoverflow links... No, I found more than 65.000 broken pages which include that error. Go people -> Check your store ! Maybe you have some broken pages out there.

What causes the error?

I called the id of a product directly and that is not allowed anymore.

$product->id

change this to:

$product->get_id()

Having problems upgrading your webshop ? Just write me a message

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Congratulations @zauberware! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

Award for the number of posts published
You got your First payout

Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click here

If you no longer want to receive notifications, reply to this comment with the word STOP

By upvoting this notification, you can help all Steemit users. Learn how here!

holy crap!! I recently started following you, and your posts are awesome :) keep it up! @ronaldmcatee people must be angry about this.. shops are gone ?

I recently started following you, and your posts are awesome :) keep it up! @ronaldmcatee