• Resolved ULinn

    (@ulinn)


    I just installed Code profiler and I get the following error when I start profiling. Tried it with several users and settings.

    The HTTP server returned the following error: 200 SyntaxError: Unexpected token ‘<‘, “

    Front- and Backend of my site are available and show no error in the browser.

    What can I do to get the profiler working?

    Best regards

    Uli

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author nintechnet

    (@nintechnet)

    It looks like the site returns some characters when the profiler connects to the admin AJAX ednpoint (/wp-admin/admin-ajax.php).

    Can you try to open your browser’s console ( CTRL + Shift + J ), click on the “Start profiling” button and see if there’s any error? You can also check the result of the AJAX request in the console “Network” tab (you can filter on the admin-ajax substring). That will show you the response to the HTTP request.

    Thread Starter ULinn

    (@ulinn)

    In the Network Tab get a 400 Bad Request for wp-admin/admin-ajax.php

    The console says:

    admin.php:1 Unchecked runtime.lastError: The message port closed before a response was received.
    toolbar_init.js:58 Uncaught TypeError: Cannot read properties of null (reading ‘addEventListener’)
    at toolbar_init.js:
    (anonym)@toolbar_init.js:58

    Plugin Author nintechnet

    (@nintechnet)

    The request is blocked with a 400 HTTP code.
    Do you have any security plugin, .htaccess rule or server application that protects the admin AJAX endpoint?
    Go to the profiler page, click the “Support” tab and search for [admin-ajax] in the system information report. Does it show an error?

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.