New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AJAX Error: SyntaxError: Unexpected token < in JSON at position 0 #370

jihadismail8 opened this Issue Oct 16, 2017 · 2 comments


None yet
3 participants
Copy link

jihadismail8 commented Oct 16, 2017

after deploying on my server , i am getting this message everytime i try to change the language , but on localhost everything is working fine ?? what the problem could be ? i added the url into the Config , and i made few modifications in the interface design , but i can not find out what is making this AJAX problem ? any help or at least a hint of what is causing this problem would be appreciated :) thanks


This comment has been minimized.

Copy link

alextselegidis commented Oct 16, 2017

Please check for error logs in storage/logs directory or directly on your server and post them here.

  Alex Tselegidis, Easy!Appointments Creator
  Need a customization? Contact me in person!

This comment has been minimized.

Copy link

gilbertngandu commented Oct 17, 2017

Hi, I had the same problem. The issue is caused by the base URL try this in the config.php file in the root
define('APP_URL', ($_SERVER['SERVER_PORT'] == 443 ? 'https' : 'http') . rtrim("://{$_SERVER['SERVER_NAME']}".str_replace(basename($_SERVER['SCRIPT_NAME']),"",$_SERVER['SCRIPT_NAME']),'/'));


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment