wp-media / imagify-plugin

Speed up your website with lighter images without losing quality.
https://imagify.io
69 stars 24 forks source link

Killed Query error on WP Engine user #745

Open ionikol opened 9 months ago

ionikol commented 9 months ago

Describe the bug The errors received by the user KILLED QUERY (22212 characters long generated in /nas/content/live/sengineland/wp-content/plugins/imagify/inc/classes/class-imagify-custom-folders.php:888): SELECT * FROM wp_imagify_files WHERE file_id IN ( 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207......

KILLED QUERY (17604 characters long generated in /nas/content/live/sengineland/wp-content/plugins/imagify/inc/functions/admin-stats.php:334): SELECT meta_value FROM wp_postmeta WHERE post_id IN ( 383254,383258,383262,383264,383266,383277,383280,383284,383285,383286,383289,383291,383297,383300,383301,383304,383307,383310,383311,383313,383330,383331,383332,383333,383334,383335,383336,383342,383343,383344,383345,383348,383349,383352,383354,383360,383361,383363,383365,383367,383373,383375,383376,383378,383379,383380,383381,383382,383383,383385,383386,383387,383390,383393,383394,383395,383396,383397,383398,383399,383400,383401,383402,383405,383407,383409,383411,383418,383422,383423,383427,383429,383431,383435,383439,383441,383450,383453,383455,383458,383462,383463,383466,383467,383468,383473,383474,383478,383481,383486,383492,383497,383501,383503,383507,383517,383519,383520,383525,383529,383530,383531,383532,383538,383539,383540,383543,383544,383548,383555,383556,383558,383559,383560,383561,383562,383563,383564,383565,383571,383577,383584,383588,383591,383602,383607,383608,383610,383612,383613,383618,383619,383620,383621,383622,383623,383624,383625,383626,383627,383628,383629,383630,383631,383632,383633,383640,383647,383652,383653,383654,383661,383664,383670,383671,383674,383675,383681,.....

Ahmed has found a solution by adding the following line into wp-config file define( 'WPE_GOVERNOR', false );

Please review if this is something we need in the core or just use the above workaround.

Also, I will have to mention that the query limit is 16k characters.

Additional context Ticket: https://secure.helpscout.net/conversation/2342165517/439330?folderId=676702 https://fibosearch.com/documentation/troubleshooting/wp-engine-killed-query-16639-characters-long-generated-in/ https://wpengine.com/support/troubleshoot-wordpress-wp-engine-error-log/#error_KILLED_QUERY