SyntaxError: unexpected token – UserPro Forums https://forum.userproplugin.com/forums/topic/syntaxerror-unexpected-token/feed/ Fri, 03 May 2024 04:38:09 +0000 https://bbpress.org/?v=2.6.2 en-US https://forum.userproplugin.com/forums/topic/syntaxerror-unexpected-token/#post-30027 <![CDATA[SyntaxError: unexpected token]]> https://forum.userproplugin.com/forums/topic/syntaxerror-unexpected-token/#post-30027 Thu, 27 Mar 2014 11:55:10 +0000 Nexnivis Hi there 🙂

This error occures when I publish a post with a featured image from the frontend.

If I publish a post without featured image, everything works

If I add a featured image, the image appears behind the post but when I click on “Publish” I have “SyntaxError: unexpected token <” from my browser (Chrome).

The post is published but the featured image is broken!

How can I solve that ? 😀

Thanks a lot for your help!

]]>
https://forum.userproplugin.com/forums/topic/syntaxerror-unexpected-token/#post-30064 <![CDATA[Reply To: SyntaxError: unexpected token]]> https://forum.userproplugin.com/forums/topic/syntaxerror-unexpected-token/#post-30064 Thu, 27 Mar 2014 19:39:28 +0000 admin Did you try the normal tests ? (change theme / disable plugins?)

]]>
https://forum.userproplugin.com/forums/topic/syntaxerror-unexpected-token/#post-30089 <![CDATA[Reply To: SyntaxError: unexpected token]]> https://forum.userproplugin.com/forums/topic/syntaxerror-unexpected-token/#post-30089 Thu, 27 Mar 2014 21:20:18 +0000 Nexnivis Yes I’ve disable all my plugins and test on default wordpress theme!

And I’ve also try to publish with admin role and suscriber role.

]]>
https://forum.userproplugin.com/forums/topic/syntaxerror-unexpected-token/#post-30249 <![CDATA[Reply To: SyntaxError: unexpected token]]> https://forum.userproplugin.com/forums/topic/syntaxerror-unexpected-token/#post-30249 Fri, 28 Mar 2014 23:03:45 +0000 Nexnivis It seems that this kind of error occures when we try to post an unexisting file. So this could not be a multisite issue ? Since you have redesigned uploads on multisite. Maybe the image is loaded in a folder and when we try to post the jquery try to find the image in an other folder ?

This is just a suggestion, because I know nothing in coding

]]>
https://forum.userproplugin.com/forums/topic/syntaxerror-unexpected-token/#post-30343 <![CDATA[Reply To: SyntaxError: unexpected token]]> https://forum.userproplugin.com/forums/topic/syntaxerror-unexpected-token/#post-30343 Sun, 30 Mar 2014 12:00:35 +0000 Nexnivis No idea about this issue ?

]]>
https://forum.userproplugin.com/forums/topic/syntaxerror-unexpected-token/#post-30374 <![CDATA[Reply To: SyntaxError: unexpected token]]> https://forum.userproplugin.com/forums/topic/syntaxerror-unexpected-token/#post-30374 Sun, 30 Mar 2014 20:23:55 +0000 Nexnivis I’ve tried on Firefox, and the error is “SyntaxError: JSON.parse: unexpected character

]]>
https://forum.userproplugin.com/forums/topic/syntaxerror-unexpected-token/#post-30452 <![CDATA[Reply To: SyntaxError: unexpected token]]> https://forum.userproplugin.com/forums/topic/syntaxerror-unexpected-token/#post-30452 Tue, 01 Apr 2014 08:19:13 +0000 admin Did you have a chance to try to post a featured image from a single site install?

]]>
https://forum.userproplugin.com/forums/topic/syntaxerror-unexpected-token/#post-31739 <![CDATA[Reply To: SyntaxError: unexpected token]]> https://forum.userproplugin.com/forums/topic/syntaxerror-unexpected-token/#post-31739 Thu, 10 Apr 2014 15:35:09 +0000 Nexnivis I think it’s a multisite issue because when i try on the main domain it’s working (domain.com), but if I try on subsite (sub.domain.com) this error occures.

Same plugins and same theme for both site.

Can you have a look to this error ? Maybe there is a mistake in the url used for featured image ? For information, featured images for subsites on multisite install are stored by default in “wp-content/uploads/sites/*numberofthesite*/year/month” instead of “/uploads/sites/year/month” for the main domain.

So I think there is a mismatch between the url used by userpro and the real url where the featured image was uploaded!

]]>
https://forum.userproplugin.com/forums/topic/syntaxerror-unexpected-token/#post-31824 <![CDATA[Reply To: SyntaxError: unexpected token]]> https://forum.userproplugin.com/forums/topic/syntaxerror-unexpected-token/#post-31824 Fri, 11 Apr 2014 10:13:05 +0000 Nexnivis Of you course if you want to check my ftp you can!

]]>
https://forum.userproplugin.com/forums/topic/syntaxerror-unexpected-token/#post-31989 <![CDATA[Reply To: SyntaxError: unexpected token]]> https://forum.userproplugin.com/forums/topic/syntaxerror-unexpected-token/#post-31989 Sat, 12 Apr 2014 13:15:11 +0000 Nexnivis Up! Currently we can’t set feartured image on multisite install, important problem 😀 I know that it’s not the only issue and you have a lot of work, but just let me know if you will work on this issue 🙂

]]>