Skip Navigation

[Closed] When Toolset Types and Query Monitor are activated together, admin-ajax failed

This support ticket is created 2 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 5 replies, has 2 voices.

Last updated by Nigel 2 years, 9 months ago.

Assisted by: Nigel.

Author
Posts
#2609581

Hi,

I activated Query Monitor to investigate an issue with Avada Template (they made request before proxy variable are set). It's for context, not your problem 🙂

During my tests, I discovered that when Query Monitor and Toolset Types are both activated, /wp-admin/admin-ajax.php go in not answering (HTTP 502).

If I desactivate one (anyone), the issue disapeares.

Do I have a possibility to log in Toolset what is interacting with Query Monitor to keep both activated ?

Best

#2609595

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi there

Toolset doesn't have any kind of integration with Query Monitor, but Query Monitor tracks every database operation that occurs with every request, which inevitably means it interacting in some way with any code that interacts with the database, that would include Toolset.

Is there any particular operation you undertake that uses an ajax request that triggers the 502 request?

If you can give us the steps of what you are doing which triggers the problem, then we can try to reproduce it on a test site.

#2609601

To reproduce, you can active the two plugins.

Thank go to Appearance > Menus and try to add an element to the menu.
This is done with admin-ajax.php and it's not working.

#2609635

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

I tried that on my local test site just now and it works okay, and I can see the browser network tab that the ajax completes with a 200 code.

So it seems there is something particular about your site or server that contributes to the problem.

Can you check if the same happens after deactivating all plugins except for Types and Query Monitor and switching theme to twentytwentyone?

If it doesn't, then it should be possible to determine what else is required for the issue to occur by a process of elimination.

If the issue does still occur, then can you check your debug log to see if there are any errors or warnings that might explain the problem?

If you haven't already, turn on the debug log by editing your wp-config.php file and change the line with WP_DEBUG like so:

define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);
define('WP_DISABLE_FATAL_ERROR_HANDLER',true);

That will create a debug.log file in your /wp-content/ directory which you can examine in any text editor. Try repeating the steps again and then inspect the log. If you don't find the debug.log file it means it didn't generate any warnings or errors.

#2611225

Hi,

Just to notify, I didn't have time for now to work on this issue;

I will go back to you when it's done from my side

Best

#2611281

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

No problem. Let me mark this as awaiting your feedback so it's not sitting in my queue, and if the support robot warns that the thread will be closed you can just reply again to keep it open.

The topic ‘[Closed] When Toolset Types and Query Monitor are activated together, admin-ajax failed’ is closed to new replies.