By Jeromy Waunch on Wednesday, 09 November 2022
Posted in Technical Issues
Replies 11
Likes 0
Views 0.9K
Votes 0
OS 13. Safari.
I was creating a new event,
uploading a photo.
That’s when I go the error code.

SyntaxError: JSON Parse error: Unexpected identifier "Error"

The file I am trying to upload is attached.
I am trying to upload the photo to Event Cover Photo:
It fails with both PNG and JPG format.
·
Wednesday, 09 November 2022 01:29
·
0 Likes
·
0 Votes
·
0 Comments
·
I found out that you the event creation page showing Joomla is not defined javascript error in the browser development console tool.

For some reason, your template page doesn't load the Joomla core.js file which caused this issue.

For now, I did help you added the following code into your index.php from /public_html/vine/templates/gridbox/...


use Joomla\CMS\HTML\HTMLHelper;
// load Joomla core js script
HTMLHelper::_('behavior.core');


It should work fine now, can you give it a check again?

My test event: https://vine-community.com/vine/what-s-happening/upcoming-events/2485-test-please-ignore
·
Wednesday, 09 November 2022 12:25
·
0 Likes
·
0 Votes
·
0 Comments
·
I am still getting the error when trying to download the image to Event Cover Photo
·
Wednesday, 09 November 2022 21:42
·
0 Likes
·
0 Votes
·
0 Comments
·
Hmm, I think you need to record a video for us so we can know what is the correct step to reproduce this issue on your site because I can't able to replicate the issue, the download/upload image in an event, you can watch my attached video below.
·
Thursday, 10 November 2022 09:51
·
0 Likes
·
0 Votes
·
0 Comments
·
https://vimeo.com/769273828/8e63570434

Here is what we are doing when the error occurs.
·
Thursday, 10 November 2022 11:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for your video, I can replicate this issue locally, I will log into the issue tracker.

For now, I did apply some temporary fixes under these files on your site, can you give it a check?

JoomlaFolder/media/com_easysocial/apps/fields/user/avatar/avatar.php
JoomlaFolder/media/com_easysocial/apps/fields/user/cover/cover.php
·
Thursday, 10 November 2022 12:27
·
0 Likes
·
0 Votes
·
0 Comments
·
On your video… how did you creat the new event you were adding the picture to? The only way I know how to creat a new event is from the administrator.
·
Thursday, 10 November 2022 20:50
·
0 Likes
·
0 Votes
·
0 Comments
·
and download of picture works now. thanks!
·
Thursday, 10 November 2022 21:49
·
0 Likes
·
0 Votes
·
0 Comments
·
On your video… how did you creat the new event you were adding the picture to? The only way I know how to creat a new event is from the administrator.

I manually access the event creation URL on the browser e.g. https://vine-community.com/vine/what-s-happening/upcoming-events/create

Because I noticed you did not display the Easysocial sidebar module on the left module position so I manually access it.

and download of picture works now. thanks!

Glad to hear your issue resolved.
·
Friday, 11 November 2022 10:21
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Alex I am facing a similar issue with the following same error.

SyntaxError: JSON.parse: unexpected character at line 5 column 2 of the JSON data

When trying to upload a cover image to an event.

Is there a fix that you can supply for this error?
·
Tuesday, 17 January 2023 23:07
·
0 Likes
·
0 Votes
·
0 Comments
·
Can you please start a new ticket and provide us with the access so that we can troubleshoot this?
·
Wednesday, 18 January 2023 00:49
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post