By Mountain IT on Thursday, 20 July 2023
Replies 7
Likes 0
Views 635
Votes 0
Hi, after updating we are receiving the error "parsererror, SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON" when we try to same or add an existing event.

Here is all the technical information.
If needed we can provide Joomla credentials.


PHP Version : 8.1.21
MySQL Version : 10.5.21-MariaDB
x86_64
Fix jQuery? : Yes
Load JEvents Bootstrap CSS? : Yes
Max Input Vars ? : 1000
Club code set? : No
User Agent : Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36
Joomla : 4.3.3
component_com_jevents : 3.6.59
component_com_jce : 2.9.38
component_com_acymailing : 5.11.8
module_mod_acymailing : 3.7.0
module_mod_jevents_cal : 3.6.59
module_mod_jevents_custom : 3.6.59
module_mod_jevents_filter : 3.6.59
module_mod_jevents_latest : 3.6.59
module_mod_jevents_legend : 3.6.59
module_mod_jevents_switchview : 3.6.59
plugin_actionlog_jevents : 3.6.59
plugin_acymailing_contentplugin : 3.7.0 (not enabled)
plugin_acymailing_managetext : 1.0.0
plugin_acymailing_online : 3.7.0
plugin_acymailing_share : 1.0.0
plugin_acymailing_stats : 3.7.0
plugin_acymailing_tablecontents : 1.0.0
plugin_acymailing_tagcontent : 3.7.0
plugin_acymailing_tagsubscriber : 5.11.8
plugin_acymailing_tagsubscription : 5.11.8
plugin_acymailing_tagtime : 5.11.8
plugin_acymailing_taguser : 5.11.8
plugin_acymailing_template : 5.11.8
plugin_content_jevents : 3.6.59
plugin_editors_acyeditor : 5.11.8
plugin_finder_jevents : 3.6.59
plugin_installer_jeventsinstaller : 3.6.59
plugin_search_eventsearch : 3.6.59
plugin_system_gwejson : 3.6.59 (not enabled)


Hop you can help!
This looks like an error in the overlapping events check - you will need to look at the response from the XmlHTTPRequest in your web browser console to see why the JSON request is returning HTML instead of a valid JSON response
·
1 year ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Geraint,

Thx for the reply, the only thing I can see in the console is the error in the appendix.
It's there from the beginning, so when I try to save a new event, within the console nothing changes.
Hope the error makes any sense.

Roland
·
1 year ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Take a look at the network tab in that screenshot after you get the syntax error message - there should be a background request to your server where it checks for overlapping repeats. If you look at the response output for that request if should give you some clues as to why the response isn't value JSON
·
1 year ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

This is the error I'm receiving
·
1 year ago
·
0 Likes
·
0 Votes
·
0 Comments
·
I think that is the 'request' data as opposed to the 'response' data from the JSON call
·
1 year ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

I did managed to fix the issue, it was just a setting within the jevents plugin options.
The system - JSON execution wrapper was disabled, when enabling the option the JSON error was gone.
Thanks for your help

Roland
Mountain iT
·
1 year ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Strange - if the plugin is disabled there should be a warning elsewhere. I'll check the code
·
1 year ago
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post