Posted: March 29, 2016 at 9:20 am
I came across some concerning errors in our php error log when debugging some new code not related to EE. There are several of these entries in the logs when saving a non-EE post in our admin area. They seem to appear when saving a Woocommerce order and I see other entries I am not sure to what they are related. I have some custom code when saving a Woocommerce (shop_order) post that always triggers these entries, but there are other same entries where that code is not executed. The lines are extremely long, this is the reading from my editor when cursor is placed on one of the entries…. line 1/13 (7%), col 1/2001402 (0%) Here are the first many characters of the entries…. [29-Mar-2016 14:59:26 UTC] WordPress database error MySQL server has gone away for query INSERT INTO Can you suggest what may be triggering these entries? The MySQL db is on localhost, we are not experiencing any issues. |
|
Hello, I’m not sure what is triggering that and I can ask a developer for feedback. Could you copy a few of the entries into a gist and then reply with that link here? The entire log isn’t needed but a few complete entries should be helpful. Thanks — |
|
I had a very hard time getting only one entry into the Gist due to the content size. I had to separate into new lines and still hard to load, Gist truncated, but perhaps you can download….. https://gist.github.com/wmnf/f0afc26b905c173a0066d50e72b1fcc7 |
|
Thanks. I’m seeing some entries in there related to the rest api. Are you running the latest version of Event Espresso 4 on that site? https://eventespresso.com/wiki/ee4-changelog/ — |
|
We are running EE version 4.8.38.p |
|
That’s normal activity for the REST API to record those options to the database. What’s not normal is it should only do it one time. Does it continue to try to write those options or has it stopped? |
|
It continues over and over, our logs getting huge. |
|
Can you try clearing the error log, then deactivate all of the plugins, then reactivate EE4, then reactivate the rest of the plugins? |
|
This seems to have worked to activate EE4 first after deactivating all plugins. The log entries have not happened since, however, I do notice this other error when editing an event in the admin:
|
|
I spoke too soon, this morning I found many of the REST API related errors again. The size of the log already grown over 200MB. |
|
Hello, I’ve asked a developer for feedback on what is occurring here. Could you let us know the max_allowed_packet size that is set for MySQL? https://dev.mysql.com/doc/refman/5.5/en/server-system-variables.html#sysvar_max_allowed_packet — |
|
MariaDB [(none)]> show variables like ‘max_allowed_packet’; |
|
Hi wmnf, I’m Event Espresso’s lead dev. That last error that you posted above :
is because there is a column mismatch between the outer query and the inner query. However, I don’t know how you can fix it because that query does NOT originate from within any EE code, but appears to have been built using the Post 2 Post plugin. I don’t know if the query was built automatically by that plugin, or whether you or your dev had to manually construct it from within the plugin UI. But anyways, here’s the basic problem with that query:
is returning TWO columns of data:
but the outer query is expecting ONE column of data to search through for the value it is looking for:
So I’m guessing that you simply need to remove:
from the subquery SELECT statement and then it should hopefully work. If the query is built automatically, then you may need to contact the author of the Post 2 Post plugin and ask them how to modify that query.
|
|
The support post ‘PHP error in logs’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.