Hi, Amit here, I am the WPML Support Manager, our current ticket queue is high, update your WPML plugins and make sure you meet the minimal requirements for running WPML before reporting an issue please - many tickets are resolved doing that

All of the known issues are documented in https://wpml.org/known-issues/ you can also use our support search to find helpful information and of course review our documentation before opening a ticket.

If you do need to open a ticket please make sure to provide us with all the needed information as described here https://wpml.org/faq/checklist-before-opening-a-ticket-in-wpml-support/

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 10 replies, has 2 voices.

Last updated by Anonymous 7 years ago.

Author Posts
March 14, 2012 at 5:16 pm #52123

lkraav

Ref: hidden link

I am now pretty certain this is bug manifests itself with WPML translated products, and is not related to my original hypothesis regarding sale price and variation feature of MarketPress.

How I can reproduce:
1. Create product
2. Edit product, click on Duplicate for some other language
3. Edit the new language duplicate, press Update

After I click update, plugin saves part of the data normally, i.e. category, slug changes, but also goes into an endless loop saving something else. This something else probably fails, and I can't tell for sure what is not getting saved.

Turning on debug output doesn't reveal much. I could use some hints how to debug this, where to put some extra debug statements in WPML that would output something before the big bomb below.

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.

Occasionally, Update of default language product seems to succeed.

March 19, 2012 at 9:25 am #52504

Anonymous

Dear lkraav,
Let me put you in contact with someone who can guide you through this issue.

March 19, 2012 at 9:27 am #52506

lkraav

Looking forward to it. This definitely feels like something with the WPML-MarketPress bridge, since all other custom post types and regular pages etc work just fine in all situations.

March 19, 2012 at 9:35 am #52511

Anonymous

I've tagged this thread for him and he will be here shortly.

March 25, 2012 at 9:14 pm #53310

lkraav

I guess he's busy. In the meanwhile I've made some progress tracking this down on my own, using the helpful ini_set hints from http://wpml.org/documentation/support/debugging-wpml/

This is where we bomb:

[25-Mar-2012 21:07:00] PHP Fatal error: Maximum function nesting level of '100' reached, aborting! in /home/markitek/public_html/palmatin/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php on line 6023 

which is

6023         if( preg_match("#SELECT ID, post_name, post_parent FROM {$wpdb->posts} WHERE post_name IN \(([^)]+)\) AND \(post_type = '([^']+)' OR post_type = 'attachment'\)#", $sql, $matches) ){
March 25, 2012 at 10:05 pm #53313

lkraav

Put error_log( $sql ) on line 6023. Last two queries before infinite recursion:

...
...
[25-Mar-2012 21:58:28] SELECT meta_id FROM wp_postmeta WHERE meta_key = 'mp_sales_count' AND post_id = 1628
[25-Mar-2012 21:58:28] UPDATE wp_postmeta SET meta_value = 's:749:\"a:1:{i:0;s:730:\"s:721:\"a:1:{i:0;s:702:\"s:693:\"a:1:{i:0;s:674:\"s:665:\"a:1:{i:0;s:646:\"s:637:\"a:1:{i:0;s:618:\"a:1:{i:0;s:599:\"s:590:\"a:1:{i:0;s:571:\"s:562:\"a:1:{i:0;s:543:\"s:534:\"a:1:{i:0;s:515:\"s:506:\"a:1:{i:0;s:487:\"s:478:\"a:1:{i:0;s:459:\"s:450:\"a:1:{i:0;s:431:\"s:422:\"a:1:{i:0;s:403:\"s:394:\"a:1:{i:0;s:375:\"s:366:\"a:1:{i:0;s:347:\"s:338:\"a:1:{i:0;s:319:\"s:310:\"a:1:{i:0;s:291:\"s:282:\"s:273:\"a:1:{i:0;s:254:\"s:245:\"s:236:\"a:1:{i:0;s:217:\"a:1:{i:0;s:198:\"a:1:{i:0;s:179:\"a:1:{i:0;s:160:\"a:1:{i:0;s:141:\"s:132:\"s:123:\"a:1:{i:0;s:104:\"s:96:\"a:1:{i:0;s:78:\"s:70:\"a:1:{i:0;s:52:\"s:44:\"a:1:{i:0;s:26:\"s:18:\"a:1:{i:0;s:1:\"0\";}\";\";}\";\";}\";\";}\";\";}\";\";\";}\";}\";}\";}\";}\";\";\";}\";\";\";}\";\";}\";\";}\";\";}\";\";}\";\";}\";\";}\";\";}\";\";}\";\";}\";\";}\";\";}\";}\";\";}\";\";}\";\";}\";\";}\";' WHERE post_id = 1628 AND meta_key = 'mp_sales_count'
[25-Mar-2012 21:58:28] SELECT meta_id FROM wp_postmeta WHERE meta_key = 'mp_sales_count' AND post_id = 30
[25-Mar-2012 21:58:28] UPDATE wp_postmeta SET meta_value = 's:749:\"a:1:{i:0;s:730:\"s:721:\"a:1:{i:0;s:702:\"s:693:\"a:1:{i:0;s:674:\"s:665:\"a:1:{i:0;s:646:\"s:637:\"a:1:{i:0;s:618:\"a:1:{i:0;s:599:\"s:590:\"a:1:{i:0;s:571:\"s:562:\"a:1:{i:0;s:543:\"s:534:\"a:1:{i:0;s:515:\"s:506:\"a:1:{i:0;s:487:\"s:478:\"a:1:{i:0;s:459:\"s:450:\"a:1:{i:0;s:431:\"s:422:\"a:1:{i:0;s:403:\"s:394:\"a:1:{i:0;s:375:\"s:366:\"a:1:{i:0;s:347:\"s:338:\"a:1:{i:0;s:319:\"s:310:\"a:1:{i:0;s:291:\"s:282:\"s:273:\"a:1:{i:0;s:254:\"s:245:\"s:236:\"a:1:{i:0;s:217:\"a:1:{i:0;s:198:\"a:1:{i:0;s:179:\"a:1:{i:0;s:160:\"a:1:{i:0;s:141:\"s:132:\"s:123:\"a:1:{i:0;s:104:\"s:96:\"a:1:{i:0;s:78:\"s:70:\"a:1:{i:0;s:52:\"s:44:\"a:1:{i:0;s:26:\"s:18:\"a:1:{i:0;s:1:\"0\";}\";\";}\";\";}\";\";}\";\";}\";\";\";}\";}\";}\";}\";}\";\";\";}\";\";\";}\";\";}\";\";}\";\";}\";\";}\";\";}\";\";}\";\";}\";\";}\";\";}\";\";}\";\";}\";}\";\";}\";\";}\";\";}\";\";}\";' WHERE post_id = 30 AND meta_key = 'mp_sales_count'
[25-Mar-2012 21:58:28] PHP Fatal error:  Maximum function nesting level of '200' reached, aborting! in /home/markitek/public_html/palmatin/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php on line 6023

Discovered another pattern about the bomb string, which is currently:
1628303030303030301628303030303030301628162816281628162816281628162830303030303030......

Turns out this is actually an apparently endless string of post_id's from the last two visible queries. Take a look, 1628 and 30.

March 25, 2012 at 10:25 pm #53314

lkraav

ID 30 = original product in english
ID 1628 = translated product

Search has now led me to wpml-marketpress.php. What on earth is this function doing, echoing product_id's??

188 /**
189  * Synchronizes post meta 'mp_sales_count' betweeen translated posts.
190  * 
191  * This is used by MarketPress to e.g. get most popular products.
192  * 
193  * @global type $sitepress
194  * @param type $meta_id
195  * @param type $object_id
196  * @param type $meta_key
197  * @param type $_meta_value 
198  */
199 function wpml_marketpress_updated_post_meta_hook($meta_id, $object_id,
200         $meta_key, $_meta_value) {
201     if ($meta_key == 'mp_sales_count') {
202         global $sitepress;
203         $languages = $sitepress->get_active_languages();
204         foreach ($languages as $code => $language) {
205             $product_id = icl_object_id($object_id, 'product', true, $code);
206             echo $object_id;
207             update_post_meta($product_id, 'mp_sales_count', $_meta_value);
208         }
209     }
210 } 
March 25, 2012 at 10:45 pm #53315

lkraav

As we can see, it echo's post_id's for probably leftover debugging purposes and then we enter an endless update_post_meta loop between the original and the translated post.

Disabling add_action for this function altogether in wpml-marketpress.php enables translated post update to succeed.

I'm guessing problem with the function is that get_active_languages() also returns the original post's language, which causes the endless loop.

Awaiting comments eagerly.

March 25, 2012 at 10:55 pm #53316

lkraav

Adding:

204 if ( $code == $sitepress->get_current_language() ) continue;

allows the POST to succeed, probably correctly. Would like confirmation from developer.

March 26, 2012 at 1:13 pm #53514

lkraav

I'm also encountering the same recursion fail when submitting translated media:

hidden link

Even using the language check above doesn't help here.

March 27, 2012 at 8:17 am #53610

Anonymous

lkraav,
We shall need your database dump to debug this.
I’ll send you a private email right now asking you for your database dump that will help us debug this issue for you. Please check your email in a couple of minutes, and if you don’t get it, let me know so I can send it again.
Thanks.

The topic ‘[Closed] WPML + MarketPress endless loop bug on translated product save’ is closed to new replies.