• Hello. I love your plugin and it was really useful, but this time I encounter an error in console: Uncaught (in promise) SyntaxError: Unexpected token ‘<‘, “<!doctype “… is not valid JSON. Because of this error, despite I have audio in that playlist, the audio files are not appearing and if I click on the play button, the audio playlist dissapear from the screen. I deactivated all plugins, but nothing was solved, it is not due to plugin conflict.
    Thank you!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Anastis Sourgoutsidis

    (@anastis)

    Hi there,

    have you installed any kind of security or redirection plugins? Or even changed your .htaccess file?

    AudioIgniter loads playlists dynamically, by requesting URLs in the following format:

    https://your-url.com/?audioigniter_playlist_id=123

    These should return JSON content. Most likely, something changed on your installation and they return HTML content (most likely a 404 page).

    Thread Starter dan1105

    (@dan1105)

    Hi,

    Yes, I do have Wordfence installed. Also, the website used to be on a subdomain, and now it’s on the main domain. Because of that, I had to set up some redirects for product category pages and static pages from the old site.

    Could this be interfering with the AudioIgniter requests? What would you suggest I do in this case to make sure the playlists return the proper JSON content again?

    Thanks!

    Plugin Support Fotis

    (@markwaregr)

    Hi @dan1105 Yes! most likely Wordfence will block ajax requests like this. I suggest disabling it temporary and rechecking

    Thread Starter dan1105

    (@dan1105)

    Hello. I deactivated wordfence, but the error still persist.

    Thread Starter dan1105

    (@dan1105)

    Hello again. I discovered the problem: a conflict with the plugin Freesoul Deactivate Plugins. I do not know why, but deactivating the plugin solved the problem.

    Plugin Support Fotis

    (@markwaregr)

    Glad I could help

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘SyntaxError Unexpected token’ is closed to new replies.