Unable to upload file: "SyntaxError: unexpected token <"

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
ecahyadi
Posts: 1
Joined: Fri Mar 21, 2014 3:24 am

Unable to upload file: "SyntaxError: unexpected token <"

Post by ecahyadi »

Hi

I have downloaded and installed phpMyFAQ successfully. Everything looks to work fine, except when adding a new FAQ. When I try to upload a file, I always get an error: "SyntaxError: unexpected token <" (using Google Chrome 33.x). Using IE 10.x or Firefox 28.0 the error is slightly different: "SyntaxError: syntax error".
phpMyFAQ_upload_error_1.png
phpMyFAQ Version: 2.8.7
OS: Windows Server 2008 Enterprise SP2
PHP Version: 5.3.28
Web Server: Microsoft IIS 7.0
Database Server: mysqli 5.6.15-log
Database Client: mysqlnd 5.0.8-dev

Please share your idea.

Thanks,
ecahyadi
You do not have the required permissions to view the files attached to this post.
Thorsten
Posts: 15749
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Unable to upload file: "SyntaxError: unexpected token <"

Post by Thorsten »

Hi,

is it possible that I can test that on your FAQ?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
mitchi
Posts: 2
Joined: Fri Jul 11, 2014 4:06 am

Re: Unable to upload file: "SyntaxError: unexpected token <"

Post by mitchi »

I am also experiencing this.

On uploading images on faq articles. this was not happening previously. Using Chrome 35.0.1916.

Currently testing on other browsers
Thorsten
Posts: 15749
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Unable to upload file: "SyntaxError: unexpected token <"

Post by Thorsten »

Hi,

the PHP extension FileInfo is missing.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
mitchi
Posts: 2
Joined: Fri Jul 11, 2014 4:06 am

Re: Unable to upload file: "SyntaxError: unexpected token <"

Post by mitchi »

Thank you Thorsten. That solved the problem.
god95z
Posts: 1
Joined: Wed Jul 30, 2014 2:32 pm
Location: Jarosław
Contact:

Re: Unable to upload file: "SyntaxError: unexpected token <"

Post by god95z »

Thorsten wrote:Hi,

the PHP extension FileInfo is missing.

bye
Thorsten
Thank you
it helped me and I felt powerless
Post Reply