Possible bug with recent Variations + Sale Price feature, when saving product – endless loop, out of

We are just setting up a store and only managed to enter variations for a single product. We started with MarketPress v2.4.2.

Now updating the information for this product is broken and from what I’m observing, the recent Sale Price feature might be to blame.

After I click update, plugin saves part of the data normally, i.e. category changes, but also goes into an endless loop saving something else. This something else probably fails, and from what I can see, after a reload of the product page, Variations and Sale Price changes do not get saved.

Turning on debug output doesn’t reveal much:

Notice: Undefined index: mp_version in /wp-content/plugins/marketpress/marketpress.php on line 152

Notice: Undefined index: none in /wp-content/plugins/marketpress/marketpress.php on line 440

And then the big bomb:

9930301081081081191191191191191191051051051051051051051121121121121121121121191081081081083030303030119303010810810810810899999999999910510510510510510510511211211211211211211299108108303030303011911911911911911999108303030119119119119119999999999999105105105105105105105112112112112112112112991191193030303011930301081081081081089999999999991051051051051051051051121121121121121121129910810830303030301191191191191191191081083030301191191191191199999999999991051051051051051051051121121121121121121129911911930303030119303010810810810810899999999999910510510510510510510511211211211211211211299108108303030303011911911911911911910810830303011911911911911999999999999910510510510510510510511211211211211211211299119119303030301193030108108108108108999999999999105105105105105105105112112112112112112112991081083030303030119119119119119119108108303030119119119119119999999999999105105105105105105105112112112112112112112991191193030303011930301081081081081089999999999991051051051051051051051121121121121121121129910810830303030301191191191191191191081083030301191191191191199999999999991051051051051051051051121121121121121121129911911930303030119303010810810810810899999999999910510510510510510510511211211211211211211299108108303030303011911911911911911910810830303011911911911911999999999999910510510510510510510511211211211211211211299119119303030301193030108108108108108999999999999105105105105105105105112112112112112112112991081083030303030119119119119119119108108303030119119119119119999999999999105105105105105105105112112112112112112112991191193030303011930301081081081081089999999999991051051051051051051051121121121121121121129910810830303030301191191191191191191081083030301191191191191199999999999991051051051051051051051121121121121121121129911911930303030119303010810810810810899999999999910510510510510510510511211211211211211211299108108303030303011911911911911911910810830303011911911911911999999999999910510510510510510510511211211211211211211299119119303030301193030108108108108108999999999999105105105105105105105112112112112112112112991081083030303030119119119119119119108108303030119119119119119999999999999105105105105105105105112112112112112112112991191193030303011930301081081081081089999999999991051051051051051051051121121121121121121129910810830303030301191191191191191191081083030301191191191191199999999999991051051051051051051051121121121121121121129911911930303030119303010810810810810899999999999910510510510510510510511211211211211211211299108108303030303011911911911911911910810830303011911911911911999999999999910510510510510510510511211211211211211211299119119303030301193030108108108108108999999999999105105105105105105105112112112112112112112991081083030303030119119119119119119108108303030119119119119119999999999999105105105105105105105112112112112112112112991191193030303011930301081081081081089999999999991051051051051051051051121121121121121121129910810830303030301191191191191191191081083030301191191191191199999999999991051051051051051051051121121121121121121129911911930303030119303010810810810810899999999999910510510510510510510511211211211211211211299108108303030303011911911911911911910810830303011911911911911999999999999910510510510510510510511211211211211211211299119119303030301193030108108108108108999999999999105105105105105105105112112112112112112112991081083030303030119119119119119119108108303030119119119119119999999999999105105105105105105105112112112112112112112991191193030303011930301081081081081089999999999991051051051051051051051121121121121121121129910810830303030301191191191191191191081083030301191191191191199999999999991051051051051051051051121121121121121121129911911930303030119303010810810810810899999999999910510510510510510510511211211211211211211299108108303030303011911911911911911910810830303011911911911911999999999999910510510510510510510511211211211211211211299119119303030301193030108108108108108999999999999105105105105105105105112112112112112112112991081083030303030119119119119119119108108303030119119119119119999999999999105105105105105105105112112112112112112112991191193030303011930301081081081081089999999999991051051051051051051051121121121121121121129910810830303030301191191191191191191081083030301191191191191199999999999991051051051051051051051121121121121121121129911911930303030119303010810810810810899999999999910510510510510510510511211211211211211211299108108303030303011911911911911911910810830303011911911911911999999999999910510510510510510510511211211211211211211299119119303030301193030108108108108108999999999999105105105105105105105112112112112112112112991081083030303030119119119119119119108108303030119119119119119999999999999105105105105105105105112112112112112112112991191193030303011930301081081081081089999999999991051051051051051051051121121121121121121129910810830303030301191191191191191191081083030301191191191191199999999999991051051051051051051051121121121121121121129911911930303030119303010810810810810899999999999910510510510510510510511211211211211211211299108108303030303011911911911911911910810830303011911911911911999999999999910510510510510510510511211211211211211211299119119303030301193030108108108108108999999999999105105105105105105105112112112112112112112991081083030303030119119119119119119108108303030119119119119119999999999999105105105105105105105112112112112112112112991191193030303011930301081081081081089999999999991051051051051051051051121121121121121121129910810830303030301191191191191191191081083030301191191191191199999999999991051051051051051051051121121121121121121129911911930303030119303010810810810810899999999999910510510510510510510511211211211211211211299108108303030303011911911911911911910810830303011911911911911999999999999910510510510510510510511211211211211211211299119119303030301193030108108108108108999999999999105105105105105105105112112112112112112112991081083030303030119119119119119119108108303030119119119119119999999999999105105105105105105105112112112112112112112991191193030303011930301081081081081089999999999991051051051051051051051121121121121121121129910810830303030301191191191191191191081083030301191191191191199999999999991051051051051051051051121121121121121121129911911930303030119303010810810810810899999999999910510510510510510510511211211211211211211299108108303030303011911911911911911910810830303011911911911911999999999999910510510510510510510511211211211211211211299119119303030301193030108108108108108999999999999105105105105105105105112112112112112112112991081083030303030119119119119119119108108303030119119119119119999999999999105105105105105105105112112112112112112112991191193030303011930301081081081081089999999999991051051051051051051051121121121121121121129910810830303030301191191191191191191081083030301191191191191199999999999991051051051051051051051121121121121121121129911911930303030119303010810810810810899999999999910510510510510510510511211211211211211211299108108303030303011911911911911911910810830303011911911911911999999999999910510510510510510510511211211211211211211299119119303030301193030108108108108108999999999999105105105105105105105112112112112112112112991081083030303030119119119119119119108108303030119119119119119999999999999105105105105105105105112112112112112112112991191193030303011930301081081081081089999999999991051051051051051051051121121121121121121129910810830303030301191191191191191191081083030301191191191191199999999999991051051051051051051051121121121121121121129911911930303030119303010810810810810899999999999910510510510510510510511211211211211211211299108108303030303011911911911911911910810830303011911911911911999999999999910510510510510510510511211211211211211211299119119303030301193030108108108108108999999999999105105105105105105105112112112112112112112991081083030303030119119119119119119108108303030119119119119119999999999999105105105105105105105112112112112112112112991191193030303011930301081081081081089999999999991051051051051051051051121121121121121121129910810830303030301191191191191191191081083030301191191191191199999999999991051051051051051051051121121121121121121129911911930303030119303010810810810810899999999999910510510510510510510511211211211211211211299108108303030303011911911911911911910810830303011911911911911999999999999910510510510510510510511211211211211211211299119119303030301193030108108108108108999999999999105105105105105105105112112112112112112112991081083030303030119119119119119119108108303030119119119119119999999999999105105105105105105105112112112112112112112991191193030303011930301081081081081089999999999991051051051051051051051121121121121121121129910810830303030301191191191191191191081083030301191191191191199999999999991051051051051051051051121121121121121121129911911930303030119303010810810810810899999999999910510510510510510510511211211211211211211299108108303030303011911911911911911910810830303011911911911911999999999999910510510510510510510511211211211211211211299119119303030301193030108108108108108999999999999105105105105105105105112112112112112112112991081083030303030119119119119119119108108303030119119119119119999999999999105105105105105105105112112112112112112112991191193030303011930301081081081081089999999999991051051051051051051051121121121121121121129910810830303030301191191191191191191081083030301191191191191199999999999991051051051051051051051121121121121121121129911911930303030119303010810810810810899999999999910510510510510510510511211211211211211211299108108303030303011911911911911911910810830303011911911911911999999999999910510510510510510510511211211211211211211299119119303030301193030108108108108108999999999999105105105105105105105112112112112112112112991081083030303030119119119119119119108108303030119119119119119999999999999105105105105105105105112112112112112112112991191193030303011930301081081081081089999999999991051051051051051051051121121121121121121129910810830303030301191191191191191191081083030301191191191191199999999999991051051051051051051051121121121121121121129911911930303030119303010810810810810899999999999910510510510510510510511211211211211211211299108108303030303011911911911911911910810830303011911911911911999999999999910510510510510510510511211211211211211211299119119303030301193030108108108108108999999999999105105105105105105105112112112112112112112991081083030303030119119119119119119108108303030119119119119119999999999999105105105105105105105112112112112112112112991191193030303011930301081081081081089999999999991051051051051051051051121121121121121121129910810830303030301191191191191191191081083030301191191191191199999999999991051051051051051051051121121121121121121129911911930303030119303010810810810810899999999999910510510510510510510511211211211211211211299108108303030303011911911911911911910810830303011911911911911999999999999910510510510510510510511211211211211211211299119119303030301193030108108108108108999999999999105105105105105105105112112112112112112112991081083030303030119119119119119119108108303030119119119119119999999999999105105105105105105105112112112112112112112991191193030303011930301081081081081089999999999991051051051051051051051121121121121121121129910810830303030301191191191191191191081083030301191191191191199999999999991051051051051051051051121121121121121121129911911930303030119303010810810810810899999999999910510510510510510510511211211211211211211299108108303030303011911911911911911910810830303011911911911911999999999999910510510510510510510511211211211211211211299119119303030301193030108108108108108999999999999105105105105105105105112112112112112112112991081083030303030119119119119119119108108303030119119119119119999999999999105105105105105105105112112112112112112112991191193030303011930301081081081081089999999999991051051051051051051051121121121121121121129910810830303030301191191191191191191081083030301191191191191199999999999991051051051051051051051121121121121121121129911911930303030119303010810810810810899999999999910510510510510510510511211211211211211211299108108303030303011911911911911911910810830303011911911911911999999999999910510510510510510510511211211211211211211299119119303030301193030108108108108108999999999999105105105105105105105112112112112112112112991081083030303030119119119119119119108108303030119119119119119999999999999105105105105105105105112112112112112112112991191193030303011930301081081081081089999999999991051051051051051051051121121121121121121129910810830303030301191191191191191191081083030301191191191191199999999999991051051051051051051051121121121121121121129911911930303030119303010810810810810899999999999910510510510510510510511211211211211211211299108108303030303011911911911911911910810830303011911911911911999999999999910510510510510510510511211211211211211211299119119303030301193030108108108108108999999999999105105105105105105105112112112112112112112991081083030303030119119119119119119108108303030119119119119119999999999999105105105105105105105112112112112112112112991191193030303011930301081081081081089999999999991051051051051051051051121121121121121121129910810830303030301191191191191191191081083030301191191191191199999999999991051051051051051051051121121121121121121129911911930303030119303010810810810810899999999999910510510510510510510511211211211211211211299108108303030303011911911911911911910810830303011911911911911999999999999910510510510510510510511211211211211211211299119119303030301193030108108108108108999999999999105105105105105105105112112112112112112112991081083030303030119119119119119119108108303030119119119119119999999999999105105105105105105105112112112112112112112991191193030303011930301081081081081089999999999991051051051051051051051121121121121121121129910810830303030301191191191191191191081083030301191191191191199999999999991051051051051051051051121121121121121121129911911930303030119303010810810810810899999999999910510510510510510510511211211211211211211299108108303030303011911911911911911910810830303011911911911911999999999999910510510510510510510511211211211211211211299119119303030301193030108108108108108999999999999105105105105105105105112112112112112112112991081083030303030119119119119119119108108303030119119119119119999999999999105105105105105105105112112112112112112112991191193030303011930301081081081081089999999999991051051051051051051051121121121121121121129910810830303030301191191191191191191081083030301191191191191199999999999991051051051051051051051121121121121121121129911911930303030119303010810810810810899999999999910510510510510510510511211211211211211211299108108303030303011911911911911911910810830303011911911911911999999999999910510510510510510510511211211211211211211299119119303030301193030108108108108108999999999999105105105105105105105112112112112112112112991081083030303030119119119119119119108108303030119119119119119999999999999105105105105105105105112112112112112112112991191193030303011930301081081081081089999999999991051051051051051051051121121121121121121129910810830303030301191191191191191191081083030301191191191191199999999999991051051051051051051051121121121121121121129911911930303030119303010810810810810899999999999910510510510510510510511211211211211211211299108108303030303011911911911911911910810830303011911911911911999999999999910510510510510510510511211211211211211211299119119303030301193030108108108108108999999999999105105105105105105105112112112112112112112991081083030303030119119119119119119108108303030119119119119119999999999999105105105105105105105112112112112112112112991191193030303011930301081081081081089999999999991051051051051051051051121121121121121121129910810830303030301191191191191191191081083030301191191191191199999999999991051051051051051051051121121121121121121129911911930303030119303010810810810810899999999999910510510510510510510511211211211211211211299108108303030303011911911911911911910810830303011911911911911999999999999910510510510510510510511211211211211211211299119119303030301193030108108108108108999999999999105105105105105105105112112112112112112112991081083030303030119119119119119119108108303030119119119119119999999999999105105105105105105105112112112112112112112991191193030303011930301081081081081089999999999991051051051051051051051121121121121121121129910810830303030301191191191191191191081083030301191191191191199999999999991051051051051051051051121121121121121121129911911930303030119303010810810810810899999999999910510510510510510510511211211211211211211299108108303030303011911911911911911910810830303011911911911911999999999999910510510510510510510511211211211211211211299119119303030301193030108108108108108999999999999105105105105105105105112112112112112112112991081083030303030119119119119119119108108303030119119119119119999999999999105105105105105105105112112112112112112112991191193030303011930301081081081081089999999999991051051051051051051051121121121121121121129910810830303030301191191191191191191081083030301191191191191199999999999991051051051051051051051121121121121121121129911911930303030119303010810810810810899999999999910510510510510510510511211211211211211211299108108303030303011911911911911911910810830303011911911911911999999999999910510510510510510510511211211211211211211299119119303030301193030108108108108108999999999999105105105105105105105112112112112112112112991081083030303030119119119119119119108108303030119119119119119999999999999105105105105105105105112112112112112112112991191193030303011930301081081081081089999999999991051051051051051051051121121121121121121129910810830303030301191191191191191191081083030301191191191191199999999999991051051051051051051051121121121121121121129911911930303030119303010810810810810899999999999910510510510510510510511211211211211211211299108108303030303011911911911911911910810830303011911911911911999999999999910510510510510510510511211211211211211211299119119303030301193030108108108108108999999999999105105105105105105105112112112112112112112991081083030303030119119119119119119108108303030119119119119119999999999999105105105105105105105112112112112112112112991191193030303011930301081081081081089999999999991051051051051051051051121121121121121121129910810830303030301191191191191191191081083030301191191191191199999999999991051051051051051051051121121121121121121129911911930303030119303010810810810810899999999999910510510510510510510511211211211211211211299108108303030303011911911911911911910810830303011911911911911999999999999910510510510510510510511211211211211211211299119119303030301193030108108108108108999999999999105105105105105105105112112112112112112112991081083030303030119119119119119119108108303030119119119119119999999999999105105105105105105105112112112112112112112991191193030303011930301081081081081089999999999991051051051051051051051121121121121121121129910810830303030301191191191191191191081083030301191191191191199999999999991051051051051051051051121121121121121121129911911930303030119303010810810810810899999999999910510510510510510510511211211211211211211299108108303030303011911911911911911910810830303011911911911911999999999999910510510510510510510511211211211211211211299119119303030301193030108108108108108999999999999105105105105105105105112112112112112112112991081083030303030119119119119119119108108303030119119119119119999999999999105105105105105105105112112112112112112112991191193030303011930301081081081081089999999999991051051051051051051051121121121121121121129910810830303030301191191191191191191081083030301191191191191199999999999991051051051051051051051121121121121121121129911911930303030119303010810810810810899999999999910510510510510510510511211211211211211211299108108303030303011911911911911911910810830303011911911911911999999999999910510510510510510510511211211211211211211299119119303030301193030108108108108108999999999999105105105105105105105112112112112112112112991081083030303030119119119119119119108108303030119119119119119999999999999105105105105105105105112112112112112112112991191193030303011930301081081081081089999999999991051051051051051051051121121121121121121129910810830303030301191191191191191191081083030301191191191191199999999999991051051051051051051051121121121121121121129911911930303030119303010810810810810899999999999910510510510510510510511211211211211211211299108108303030303011911911911911911910810830303011911911911911999999999999910510510510510510510511211211211211211211299119119303030301193030108108108108108999999999999105105105105105105105112112112112112112112991081083030303030119119119119119119108108303030119119119119119999999999999105105105105105105105112112112112112112112991191193030303011930301081081081081089999999999991051051051051051051051121121121121121121129910810830303030301191191191191191191081083030301191191191191199999999999991051051051051051051051121121121121121121129911911930303030119303010810810810810899999999999910510510510510510510511211211211211211211299108108303030303011911911911911911910810830303011911911911911999999999999910510510510510510510511211211211211211211299119119303030301193030108108108108108999999999999105105105105105105105112112112112112112112991081083030303030119119119119119119108108303030119119119119119999999999999105105105105105105105112112112112112112112991191193030303011930301081081081081089999999999991051051051051051051051121121121121121121129910810830303030301191191191191191191081083030301191191191191199999999999991051051051051051051051121121121121121121129911911930303030119303010810810810810899999999999910510510510510510510511211211211211211211299108108303030303011911911911911911910810830303011911911911911999999999999910510510510510510510511211211211211211211299119119303030301193030108108108108108999999999999105105105105105105105112112112112112112112991081083030303030119119119119119119108108303030119119119119119999999999999105105105105105105105112112112112112112112991191193030303011930301081081081081089999999999991051051051051051051051121121121121121121129910810830303030301191191191191191191081083030301191191191191199999999999991051051051051051051051121121121121121121129911911930303030119303010810810810810899999999999910510510510510510510511211211211211211211299108108303030303011911911911911911910810830303011911911911911999999999999910510510510510510510511211211211211211211299119119303030301193030108108108108108999999999999105105105105105105105112112112112112112112991081083030303030119119119119119119108108303030119119119119119999999999999105105105105105105105112112112112112112112991191193030303011930301081081081081089999999999991051051051051051051051121121121121121121129910810830303030301191191191191191191081083030301191191191191199999999999991051051051051051051051121121121121121121129911911930303030119303010810810810810899999999999910510510510510510510511211211211211211211299108108303030303011911911911911911910810830303011911911911911999999999999910510510510510510510511211211211211211211299119119303030301193030108108108108108999999999999105105105105105105105112112112112112112112991081083030303030119119119119119119108108303030119119119119119999999999999105105105105105105105112112112112112112112991191193030303011930301081081081081089999999999991051051051051051051051121121121121121121129910810830303030301191191191191191191081083030301191191191191199999999999991051051051051051051051121121121121121121129911911930303030119303010810810810810899999999999910510510510510510510511211211211211211211299108108303030303011911911911911911910810830303011911911911911999999999999910510510510510510510511211211211211211211299119119303030301193030108108108108108999999999999105105105105105105105112112112112112112112991081083030303030119119119119119119108108303030119119119119119999999999999105105105105105105105112112112112112112112991191193030303011930301081081081081089999999999991051051051051051051051121121121121121121129910810830303030301191191191191191191081083030301191191191191199999999999991051051051051051051051121121121121121121129911911930303030119303010810810810810899999999999910510510510510510510511211211211211211211299108108303030303011911911911911911910810830303011911911911911999999999999910510510510510510510511211211211211211211299119119303030301193030108108108108108999999999999105105105105105105105112112112112112112112991081083030303030119119119119119119108108303030119119119119119999999999999105105105105105105105112112112112112112112991191193030303011930301081081081081089999999999991051051051051051051051121121121121121121129910810830303030301191191191191191191081083030301191191191191199999999999991051051051051051051051121121121121121121129911911930303030119303010810810810810899999999999910510510510510510510511211211211211211211299108108303030303011911911911911911910810830303011911911911911999999999999910510510510510510510511211211211211211211299119119303030301193030108108108108108999999999999105105105105105105105112112112112112112112991081083030303030119119119119119119108108303030119119119119119999999999999105105105105105105105112112112112112112112991191193030303011930301081081081081089999999999991051051051051051051051121121121121121121129910810830303030301191191191191191191081083030301191191191191199999999999991051051051051051051051121121121121121121129911911930303030119303010810810810810899999999999910510510510510510510511211211211211211211299108108303030303011911911911911911910810830303011911911911911999999999999910510510510510510510511211211211211211211299119119303030301193030108108108108108999999999999105105105105105105105112112112112112112112991081083030303030119119119119119119108108303030119119119119119999999999999105105105105105105105112112112112112112112991191193030303011930301081081081081089999999999991051051051051051051051121121121121121121129910810830303030301191191191191191191081083030301191191191191199999999999991051051051051051051051121121121121121121129911911930303030119303010810810810810899999999999910510510510510510510511211211211211211211299108108303030303011911911911911911910810830303011911911911911999999999999910510510510510510510511211211211211211211299119119303030301193030108108108108108999999999999105105105105105105105112112112112112112112991081083030303030119119119119119119108108303030119119119119119999999999999105105105105105105105112112112112112112112991191193030303011930301081081081081089999999999991051051051051051051051121121121121121121129910810830303030301191191191191191191081083030301191191191191199999999999991051051051051051051051121121121121121121129911911930303030119303010810810810810899999999999910510510510510510510511211211211211211211299108108303030303011911911911911911910810830303011911911911911999999999999910510510510510510510511211211211211211211299119119303030301193030108108108108108999999999999105105105105105105105112112112112112112112991081083030303030119119119119119119108108303030119119119119119999999999999105105105105105105105112112112

Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 262144 bytes) in /wp-includes/wp-db.php on line 1095

I am not sure what that (hex?) code is that is actually being spit out, but it definitely goes with the endless loop story as its full of repeating patterns.

When I Update a product that has no Variations, this request succeeds just fine.

There also does not seem to be a problem when you enter new Variation data for an existing product. So this leads me to think it might be a data structures upgrade problem.