Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author loushou

    (@loushou)

    Hey @agnelwaghela,

    Based on what you are saying here, it sounds like you are running into an ajax error. This can be caused by a couple things. I would like to give you a few things to try out, in order of likelihood of resolving the problem.

    First, you could have WP_DEBUG enabled. While this is great for development servers, it can cause problems with AJAX, if you have poorly written plugins or themes installed. Essentially, having this enabled, will tell WordPress to report event PHP_NOTICEs, and even during your ajax requests. Thus, what winds up happening is the ajax response is corrupted by an html php error. Try editing your wp-config.php file, and turning WP_DEBUG off. If you check it, and it is off already, then this is not the problem and you can skip this one.

    Next, there could be one of those poorly written plugins or themes, I mentioned above, installed and active. Try turning off all your plugins, except WooCommerce and OpenTickets, one by one, until that field starts working. If that yields no results, try switching your theme temporarily. If any of these steps make the box start working, then the culprit is definitely the last item that you switch off. Some plugins are written in such a way, that they output data at the top of every page load, including ajax requests. This, like the error messages I mentioned earlier, corrupts the ajax output, causing a javascript error. A good historical example of this is the WP Polls plugin, which used to output it’s ‘script tag’ on every page load, including ajax requests.

    If neither of these steps solve the problem, we may need to look closer at your setup to figure out why this ajax request is failing. Even if there are no products to display here, it should be saying ‘no results found’. The fact that it is showing ‘loading failed’ means that the output of the ajax request was corrupted by some extra output. That output would be what we are looking for, so that we can pinpoint the culprit. If you have a tool like firebug handy, and are confident using it, that could provide some invaluable information for your search for a resolution here, and could help me point you in the right direction. If not, that is fine too. We will hookup later for a closer look.

    Loushou

    Thread Starter Agnel Waghela

    (@agnelwaghela)

    You are right its ajax error. From Developers console I could confirm, there is a error saying 500 internal error resource failed to load for admin-ajax.php.

    I re-installed my wordpress installation. I disabled all the plugins and also switched to my default theme – twenty sixteen. Then I’m able to see the ticket in the dropdown and also select it.

    The original Theme used is Divi from Elegant themes. But there is another website of my friend which I’m only handling, there I’m using the same theme, but I’m not facing problems at all. There too I have installed OpenTickets CE and things work fine.

    There seems to be something wrong with my website. ??

    -Agnel

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘"Loading failed" message while searching for tickets in event areas’ is closed to new replies.