Ajax doesn't work

Username (e.g. epiz_XXX) or Website URL

http://paradisetravel.ml/

Error Message

Hello, on my website I have an ajax script, which must work if I sroll down to show more new cards but i isn’t. However on local server it worked. I’m using OpenServer.

Other Information

Help please :slight_smile:

Is there any Console errors? If so, please share them.

Увы нет никакой ошибки. Если бы она была , сам бы решил проблему. На локальном работает, а на хосте нет ((

Please post in English

Alas, there is no mistake. If it were, I would solve the problem myself. It works on the local, but not on the host ((

1 Like

If I check the URL directly, I get an empty JSON response: http://paradisetravel.ml/php_func/offers_on_load.php?num=4&sorting=ID_offer%20ASC

Taking a quick look at the script in question, it’s very easy to see why it doesn’t work. It’s supposed to load data from a database, but the database settings are hardcoded to what are likely your local settings, which won’t work here. Can you please make sure that script uses the right database credentials?

2 Likes

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.