Conversation
supportHello. 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!
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).
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!
Hi @dan1105 Yes! most likely Wordfence will block ajax requests like this. I suggest disabling it temporary and rechecking
Hello. I deactivated wordfence, but the error still persist.
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.
Glad I could help
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).
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!
Hi @dan1105 Yes! most likely Wordfence will block ajax requests like this. I suggest disabling it temporary and rechecking
Hello. I deactivated wordfence, but the error still persist.
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.
Glad I could help