Custom sidebars PRO crashes my site

When trying to access https://www.teledoce.com/wp-admin/widgets.php, my site hangs up and I get a 502 error page. I talked to WP Engine support and they reported the problem is caused by plugin Custom Sidebars.

These are part of my site errors log, and below you will find WP Engine support response:

Thanks,
Wil

[Mon Jul 25 16:29:55.380417 2016] [:error] [pid 14914] [client 192.171.117.234:55080] KILLED QUERY (49342 characters long generated in /nas/content/staging/teledoce/wp-content/plugins/custom-sidebars/inc/class-custom-sidebars-visibility.php:159): SELECT term_id, meta_key, meta_value FROM wp_termmeta WHERE term_id IN (9238,2417,5000,1302,2729,2730,2731,5268,8012,2610,3581,1194,6599,6898,4808,2568,4323,3580,5457,479,3117,3992,932,6575,4956,1568,1613,5413,4054,6247,1007,6781,7732,9715,5128,7625,5106,843,7013,6083,4120,2113,1434,5873,1652,2333,6178,6029,614,2304,7099,1435,5259,5361,8096,6149,638,3557,2252,2783,8368,298,2262,8517,2418,2531,448,2529,7692,4502,610,9134,9313,9093,2033,2480,497,5080,6846,1456,10050,10047,6192,6194,8171,1274,1238,9517,3942,5509,2483,5697,5727,8642,2821,4610,5698,5793,5836,4134,4626,4641,3783,411,2285,3106,5729,1229,312,7740,7741,1492,6480,1491,5713,9797,4553,4450,8584,9602,1065,8537,1317,6615,4957,6823,1314,3398,651,4094,8329,3715,3716,4034,5363,1966,3806,7671,7624,272,8994,8731,8549,7689,4025,4037,7991,7999,6307,4984,5119,3898,796,5705,8562,5242,9298,5427,4836,5251,9202,9563,7829,9319,3881,5429,5391,7285,7162,7669,5290,3901,311,6053,9405,3647,944,1189,3272,6375,1468,4696,1041,4466,2586,7825,8983,8173,2249,8768,2279,5859,7557,7681,4078,7538,4079,7539,5426,731,4336,6365,4361,9714,5286,6190,3578,5231,2080,8263,6248,1784,5059,449,588,7082,1268,413,296,9385,233,9038,9762,3782,9065,8038,3387,9264,5187,5084,1196,1630,9652,2492,4165,7188,807,1844,972,7120,4563,3351,5932,3851,844,4639,5077,8585,5296,6433,7206,6181,1804,2093,9607,6429,1673,2599,1036,7480,3631,2013,1237,2895,3260,3527,7090,8266,8265,2824,8700,1983,1432,7862,3011,3949,2446,6397,7358,4291,6419,9631,6633,2648,9811,5193,2527,2859,4157,9285,529,2367,1546,7124,1560,3158,3055,7382,1264,3385,6028,7405,4140,5814,1743,3421,2687,3441,8424,2939,2938,9857,8757,8447,736,1127,5279,2543,5940,5278,4222,759,8075,1875,9039,10124,4138,6656,3748,4205,3570,5318,9390,6960,3691,140,5439,5438,783,6412,6226,6225,6311,5687,6313,6146,4552,5937,5693,5095,447,1249,3500,309,660,6104,10044,4775,5958,8698,7537,5399,8177,9440,1050,8359,7950,2376,1419,1705,6490,3182,7728,2481,4483,7506,2596,2643,2038,7255,7351,3327,912,2052,8793,8777,1108,7882,1992,7803,850,9357,3983,6423,5066,2647,6266,2254,5001,890,2210,682,2932,4893,3218,3863,7035,4529,5310,162,9218,2530,3521,3401,5484,2868,2234,5283,2721,3005,2144,5160,6286,396,8905,1858,2512,4582,6555,1910,636,2019,6461,9684,2462,662,9175,9074,874,7234,6292,6026,1877,1291,484,1531,2917,6734,1208,689,4369,3032,10045,2214,4982,2871,4270,7328,1448,4648,8580,9284,9833,8354,7932,9568,3020,2638,9885,10080,859,2212,10032,3326,524,2659,3201,358,9739,3202,9210,3056,641,1669,9636,3868,8327,6506,3232,2595,1997,2347,3895,2625,9741,5326,9653,3457,4385,3429,4752,6536,6451,9858,1837,205,2137,3234,6518,9540,9590,552,6306,5919,9886,9359,2107,4351,7800,393,7947,3573,3003,8412,8975,6925,4016,3794,963,8508,3796,7050,1717,1567,2206,9050,6334,7729,9891,8898,9918,3180,4994,550,7342,940,5851,6351,318,5754,3859,6786,4236,2925,3671,3264,7136,7648,3324,3241,4204,3618,288,7871,9016,4119,8293,8995,4585,5981,5784,2714,4166,7626,3719,4660,854,10027,8480,2202,1329,4278,8079,8080,7653,4308,9196,3770,7711,8650,8831,2037,1584,5414,3160,9558,7289,5791,2963,8518,4226,5725,1469,5162,832,2842,3999,5192,1360,4514,6973,7264,2060,10143,1603,9728,9987,1612,2544,3757,8981,5401,5882,2510,2902,7995,9565,8893,5985,5954,4766,4797,8066,2550,5227,3625,4256,6156,2614,621,2541,1677,8971,2743,5295,8631,8181,5863,3509,942,3963,7994,1276,9773,7317,8914,2433,6649,9160,1912,4101,6964,8565,536,7189,2893,8990,845,9812,862,8494,9140,3709,5448,3579,2091,6914,7265,665,5747,8255,8433,1545,9174,9239,1283,6343,3563,7774,7981,1927,9306,454,9519,6963,2196,2170,9594,5978,6849,9666,9667,8583,9352,9873,9668,3537,3664,984,4667,533,539,6324,6596,4504,3502,4614,4785,4114,8629,9917,2954,538,466,6891,6513,5938,400,2073,5213,7131,1854,3290,7101,6981,132,8623,7933,9275,6388,1664,4927,3769,1941,624,1404,1502,435,9334,7832,9431,8501,8506,8505,8507,9874,7926,9350,8169,8095,8502,1639,1870,8702,7644,4754,6987,6974,2715,9123,8551,9148,1944,3871,7568,3997,3381,5272,692,8288,9281,4325,8284,9955,9817,9280,9561,9623,9329,9625,9795,4171,5490,3142,4913,6976,7483,7767,5707,9195,2142,1076,4244,722,545,455,2463,9192,8462,4440,5651,2220,4423,6643,2754,3776,4009,5590,6087,3941,152,7346,8818,1599,1564,6998,2607,2770,10163,8053,7643,2987,8272,9717,7233,5755,1366,5085,8057,8049,8134,8135,8056,8055,8099,1746,3277,838,9300,5114,8065,7276,1711,9963,5261,8120,8070,8121,5098,6051,1774,1701,6499,955,6646,7391,9523,3689,2477,10004,10136,8577,8132,8133,7874,7893,5352,3589,5303,3079,7502,1093,8668,2911,2691,344,4964,308,10101,3977,5558,9340,1818,9166,2154,9339,10153,9368,7427,9496,2036,3938,8007,3116,1341,4596,849,4989,1520,7126,7127,6215,2905,6094,5089,8666,7261,1909,6543,8544,1609,8903,9772,7406,8622,797,9734,3888,6169,7069,2747,5678,3344,834,3113,3175,1561,3149,4417,7763,7860,3396,1895,1042,3359,686,10085,6504,485,4035,2600,1930,3406,864,4497,2123,4730,4116,9531,2074,5770,7300,1406,2232,2040,9377,1100,2815,8187,8788,3383,8901,6355,3771,2369,7236,8581,4859,9539,2889,4540,3100,3099,2966,7453,2399,5583,6000,8471,9808,284,264,8130,4038,8168,6056,6933,8912,8911,7303,2694,4945,3779,8351,5941,4846,3927,5504,5079,8723,2438,2968,8896,5521,7645,7839,6404,6187,7042,8796,2736,8899,5637,6102,5759,5455,445,8785,8185,7114,7115,468,2046,9880,8030,8031,10081,9076,7389,3922,6601,930,4153,3612,1661,10025,9122,5255,3970,3162,3161,2999,5636,5543,6201,7048,6540,1663,8882,8883,9258,8042,4324,4864,8671,9096,9345,10120,2844,7598,5726,954,3830,4284,5947,5477,6340,5975,6163,853,2675,153,8587,4813,2652,1643,5878,4812,5301,5350,8140,5299,9118,8040,2848,8846,8084,6010,7715,9266,10126,1330,6710,10099,7067,7621,3544,7700,1581,4348,8609,3012,2778,2378,1224,8446,7290,7292,5302,9900,9555,5979,10098,8482,3061,8048,9727,3896,2313,4184,2072,10114,1361,2656,3702,4953,9744,6787,2421,1392,656,5834,1882,4623,2128,4039,10008,2507,8957,8361,9145,6459,702,3021,5847,7125,7987,2115,4849,2432,7025,3623,2526,7600,4919,3037,2067,2709,8332,4154,2927,3956,8963,3962,1626,1396,1395,9980,2422,4402,2296,2678,3543,1070,1532,3534,2923,8842,3122,3533,2138,10152,6454,6821,9075,7725,9079,5715,5996,1824,7214,2872,6267,5775,6237,2311,4823,5886,9011,9010,7047,9786,1778,1536,1421,7474,5561,3560,6593,9591,6764,9847,8652,1024,8159,2779,782,5155,3529,7065,8532,6127,2087,3392,2187,8138,1313,3386,8856,1254,281,5751,5445,8715,3069,8564,3668,774,9469,6235,8380,9655,10083,6216,419,2711,10011,6166,6165,9889,3762,547,5772,3622,7574,2665,1203,3569,6217,9931,3566,6325,5939,4637,1215,5505,2047,6511,2066,8118,964,6088,741,5578,6444,7383,2424,7370,1401,3203,1026,6983,3191,5608,9241,3574,10021,3484,2317,9055,9437,8940,6728,8352,7254,7838,9396,10166,10167,10168,10169,10170,10171,7976,8142,7281,7822,3576,9138,2870,5659,2303,2048,6582,2423,3614,7962,3114,7062,3096,3167,9975,5972,7651,3437,9676,1481,3676,5762,3456,3821,8470,9087,4941,8270,4726,3730,6532,3010,5804,9270,3688,2720,1092,354,355,357,356,8020,9446,2793,8965,430,4783,2751,7684,2753,5619,2946,268,7381,7968,6785,4740,6539,7331,873,3613,5411,4105,6563,6278,2758,880,8107,3528,2854,2628,4365,5178,2416,2062,7826,8740,7356,1474,1972,2833,7752,6668,10017,762,9926,4083,9157,6897,7327,2728,5418,186,5349,3824,406,3091,9785,1830,5589,8316,310,918,36,6072,8299,8792,5480,8599,8598,4786,4750,4699,9542,5163,2546,7707,7238,7239,7699,10068,740,4457,1391,2876,496,189,1223,5831,9170,2875,8315,7607,693,1516,2750,8127,1849,8739,5397,1402,8801,7998,7210,2762,549,9438,2176,7148,6179,6863,5654,9358,6080,5126,6558,7040,3086,8941,9870,8533,8849,8791,8885,5366,2180,9215,5739,8439,9103,2465,4121,6773,6143,4791,7284,5437,1090,2469,3924,1978,8752,3577,4758,8974,5159,733,4725,823,2651,7798,4966,3134,1911,267,653,2139,8225,5643,5046,7357,3744,4183,6071,4283,3596,4163,2838,5960,2617,8407,523,9711,2146,812,4768,2650,1655,2792,8176,5906,6224,331,7009,3522,9904,6737,2150,1965,1671,2407,1776,9114,835,6096,343,4366,1280,7516,6549,848,9126,2519,2602,1914,9756,2299,9719,9732,9657,9702,8660,575,4717,6571,5285,1501,6337,9679,855,8769,2791,7123,4995,3126,1656,9724,3489,3638,4459,1246,6121,780,3587,6069,10040,4238,6669
[Mon Jul 25 16:33:00.672903 2016] [:error] [pid 15598] [client 192.171.117.234:59162] PHP Warning: reset() expects parameter 1 to be array, string given in /nas/content/staging/teledoce/wp-content/plugins/custom-sidebars/inc/class-custom-sidebars-cloning.php on line 127
[Mon Jul 25 16:33:00.673387 2016] [:error] [pid 15598] [client 192.171.117.234:59162] PHP Warning: reset() expects parameter 1 to be array, string given in /nas/content/staging/teledoce/wp-content/plugins/custom-sidebars/inc/class-custom-sidebars-cloning.php on line 127
[Mon Jul 25 16:33:00.673440 2016] [:error] [pid 15598] [client 192.171.117.234:59162] PHP Warning: reset() expects parameter 1 to be array, string given in /nas/content/staging/teledoce/wp-content/plugins/custom-sidebars/inc/class-custom-sidebars-cloning.php on line 127
[Mon Jul 25 16:33:00.673486 2016] [:error] [pid 15598] [client 192.171.117.234:59162] PHP Warning: reset() expects parameter 1 to be array, string given in /nas/content/staging/teledoce/wp-content/plugins/custom-sidebars/inc/class-custom-sidebars-cloning.php on line 127
[Mon Jul 25 16:33:00.673530 2016] [:error] [pid 15598] [client 192.171.117.234:59162] PHP Warning: reset() expects parameter 1 to be array, string given in /nas/content/staging/teledoce/wp-content/plugins/custom-sidebars/inc/class-custom-sidebars-cloning.php on line 127
[Mon Jul 25 16:33:00.673574 2016] [:error] [pid 15598] [client 192.171.117.234:59162] PHP Warning: reset() expects parameter 1 to be array, string given in /nas/content/staging/teledoce/wp-content/plugins/custom-sidebars/inc/class-custom-sidebars-cloning.php on line 127
[Mon Jul 25 16:33:00.673623 2016] [:error] [pid 15598] [client 192.171.117.234:59162] PHP Warning: reset() expects parameter 1 to be array, string given in /nas/content/staging/teledoce/wp-content/plugins/custom-sidebars/inc/class-custom-sidebars-cloning.php on line 127
[Mon Jul 25 16:33:00.673668 2016] [:error] [pid 15598] [client 192.171.117.234:59162] PHP Warning: reset() expects parameter 1 to be array, string given in /nas/content/staging/teledoce/wp-content/plugins/custom-sidebars/inc/class-custom-sidebars-cloning.php on line 127
[Mon Jul 25 16:33:00.673711 2016] [:error] [pid 15598] [client 192.171.117.234:59162] PHP Warning: reset() expects parameter 1 to be array, string given in /nas/content/staging/teledoce/wp-content/plugins/custom-sidebars/inc/class-custom-sidebars-cloning.php on line 127

Jul 25, 11:42 AM CDT

Hi Wil,

Thank you for your patience. We were able to copy the live to staging without the 'wp-content/uploads' which is taking up a lot of space to expedite the troubleshooting.

Once that was done we saw the same 502 in the staging widgets page. Only 3 plugins were not able to update including the custom-sidebars plugin. Checking on the error logs, there are timeout errors for that plugin as you can see here. After deactivating this plugin the widgets page works.

We would recommend reaching out to the plugin developers to see how this can be updated, which may likely resolve this issue.

We'll be here if you need anything else at all along the way,