error on upload image.

Asked by Webmaster Sede Palmira

when I load an image library on the following error message:

"SyntaxError: Unexpected token <"

although the web server configuration, both the apache server, php, json, and other components were revised, no fault found.

In addition to this, there was another mistake by continuing tratadon of uploading it to the library and get:

'error SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data "

has been the Xibo in debug mode and not an error is seen in server logs.

OS: Centos 6.5 (final)
Apache Version: httpd-2.2.15-31
php version: php-5.3-27
php-common-extra 5.3.3-27

I appreciate your cooperation to solve this problem Xibo.

Sincerely

Webmaster
National University of Colombia
Palmira

Question information

Language:
English Edit question
Status:
Answered
For:
Xibo Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Alex Harrington (alexharrington) said :
#1

Usually this is caused by incorrect php configuration for large file
uploads. Please check the FAQ on the subject

Revision history for this message
Webmaster Sede Palmira (webmaster-pal) said :
#2

We have already reviewed the php.ini settings and everything is set correctly. We have reviewed the faq and exceed by far the limits shown in the faq.

more than you can tell us, for even just a couple of days, everything was working properly.

Thank you.

Webmaster
National University of Colombia
Palmira.

Revision history for this message
Webmaster Sede Palmira (webmaster-pal) said :
#3

Further, we have version 1.6.1 installed product.

Revision history for this message
Webmaster Sede Palmira (webmaster-pal) said :
#4

; Whether to allow HTTP file uploads.
file_uploads = On

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
upload_tmp_dir =/tmp/upload

; Maximum allowed size for uploaded files.
upload_max_filesize = 128M

;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

max_execution_time = 120 ; Maximum execution time of each script, in seconds
max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
memory_limit = 128M ; Maximum amount of memory a script may consume

; Maximum size of POST data that PHP will accept.
post_max_size = 128M

Revision history for this message
Alex Harrington (alexharrington) said :
#5

You restarted Apache after making those changes? 1.6.1 is old now. You
should be running 1.6.4

Revision history for this message
Webmaster Sede Palmira (webmaster-pal) said :
#6

good Morning.

The update is made ​​from version 1.6.1 to version 1.6.4 and the problem persists, the same error you get in the previous version. thank so if we can clarify the exact versions of the products 3d party held for the Xibo.

thank you

Webmaster
National University of Colombia
Palmira

Revision history for this message
Webmaster Sede Palmira (webmaster-pal) said :
#7

and apache server was restarted, after make all changes.

Revision history for this message
Dan Garner (dangarner) said :
#8

Its a PHP error for sure (returning a HTML error page instead of JSON). We'd need to understand exactly what is being returned by the upload request. This can be done on the network tab of something like Chrome Developer Tools.

A common cause of this problem is your library location no longer having write access.

Revision history for this message
Webmaster Sede Palmira (webmaster-pal) said :
#9

a few moments ago, did Xibo deployment server 1.6.4 on a clean install of centos 6.5, which installed from scratch. not made any update and installed the server with packets Xibo having this distribution of linux.

compiamos no database, then recreate the environment we needed and we did from scratch, so the database is completely clean.

when trying to upload an image to server Xibo we see this error

it will show step by step what is happening to us

http://www.palmira.unal.edu.co/acceso/error/paso1.jpg

http://www.palmira.unal.edu.co/acceso/error/paso2.jpg

http://www.palmira.unal.edu.co/acceso/error/paso3.jpg

http://www.palmira.unal.edu.co/acceso/error/paso4.png

http://www.palmira.unal.edu.co/acceso/error/paso5.jpg

http://www.palmira.unal.edu.co/acceso/error/paso6.jpg

this is what is happening to us.

thank you any suggestions.

thank you

Webmaster
National University of Colombia
Palmira

Revision history for this message
Alex Harrington (alexharrington) said :
#10

Yes as we've explained already, there's an error on your server
configuration somewhere. Have a look at your server logs. It could be
related to selinux for example

Can you help with this problem?

Provide an answer of your own, or ask Webmaster Sede Palmira for more information if necessary.

To post a message you must log in.