Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
pupload error: JSON Parse error: Unrecognized token '<'
Avatar
Yuko Amo
Member
Free Members
sp_UserOfflineSmall Offline
Sep 13, 2013 - 11:19 pm

An error message "JSON Parse error: Unrecognized token '<'" is shown after click attch button. 

And another error message 

1.jpg: Error 999 - Unknown server error (check image size - may be exhausting memory)

is appeared below attachment D&D window.

My image size is small, 57 KB.

Pupload settings are:

Image quality of resized images (0-100): 100

Image quality of thumbnails (0-100):100

Maximum size of thumbnails:300

Maximum size (in bytes) of image files : 0  

Maximum width (in pixels) of image files (0 = no limit):0

Maximum height (in pixels) of image files (0 = no limit):0

 

In my php.ini (/usr/loca/lib/php/php.ini), settings of file size are following:

memory_limit = 1700M

post_max_size = 1600M

upload_max_filesize = 1500M
What can I do next ?
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Sep 14, 2013 - 3:24 am

which version of SP and file uploader plugin?   which browser?

1700M??  really?

are your uploads locations valid?  see on forum - integration - storage locations...

anything in the error log?

can you try it running the default wp theme?  the theme or other plugin maybe adding stuff to the json response causing issues...

Avatar
Yuko Amo
Member
Free Members
sp_UserOfflineSmall Offline
Sep 14, 2013 - 7:31 am

Server Environment

Simple Press version 5.3.1
Pupload version 2.1.2
WordPress 3.6.1
Apache 2.4.6 and PHP 5.5.3 on FreeBSD 9.1

My Sorage Location is
SP storage location :sp-resources/forum-image-uploads
Status ....."Location Found" and "Write-OK"

Both under "memory_limit = 1700M post_max_size = 1600M upload_max_filesize = 1500M" and under default settings(memory_limit=128M etc.), upload is failed.

Local Environment
Browser is Safari 5.1.9 on Mac OS X 10.6.8.
I tried Firefox 23.0.1, but the situation is same.

Sadly...bbPress with GD bbPress Attachments works well.

Avatar
Yuko Amo
Member
Free Members
sp_UserOfflineSmall Offline
Sep 14, 2013 - 7:38 am

After image upload, my Erro log is following

2013年9月14日
11:37 AM
php file: /simple-press/forum/content/forms/sp-form-components.php
line: 469
function: Unavailable
Notice | Trying to get property of non-object
2013年9月14日
11:37 AM
php file: /simple-press/forum/content/forms/sp-form-components.php
line: 469
function: sp_post_editor_smileys_options
Notice | Trying to get property of non-object
2013年9月14日
11:37 AM
php file: /simple-press/forum/content/forms/sp-form-components.php
line: 469
function: Unavailable
Notice | Trying to get property of non-object
2013年9月14日
11:37 AM
php file: /simple-press/forum/content/forms/sp-form-components.php
line: 469
function: sp_post_editor_smileys_options
Notice | Trying to get property of non-object
Avatar
Yuko Amo
Member
Free Members
sp_UserOfflineSmall Offline
Sep 14, 2013 - 11:23 am

My WP theme is Twenty Twelve. This theme is included in WP distribution.

I try Google chrome browser, but I can't attach image.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Sep 14, 2013 - 11:36 am

cant attach an image?  why?  is it too large?  just adjust the image size and/or quality... the image upload limit here is large enough...

dont worry about the smileys notice...  its just a notice - not an error... harmless.. and already cleaned up in next version...

understand theme - good, generally eliminates that...  what about plugins?  can you try disabling them and seeing if any better?

has your server properly defined a temp file upload location (normally in php or uses system default)?

is this forum in English or translated?

Avatar
Yuko Amo
Member
Free Members
sp_UserOfflineSmall Offline
Sep 14, 2013 - 1:39 pm

No, my image size is 57 KB named "1.jpg". I think this is small size.

I deactivated all SP plugins. Only pupload was activated.

Activated WP plugins were Akismet, SimplePress and WP Multibyte Patch.

Then I try again, but I can not attach image.

In my php.ini, upload_tmp_dir =/tmp and its permission is 777.

I read this forum in English.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Sep 14, 2013 - 1:46 pm

It is not probably the issue but we have had a couple of users see problems with the multibyte plugin active. Could you try again with that deactivated? So we can discount it at least?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Yuko Amo
Member
Free Members
sp_UserOfflineSmall Offline
Sep 14, 2013 - 3:55 pm

I tried again under two environments:

(1) Japanese localized version of WP with "WP Multibyte Patch" deactivated.

(2)Newly clean installed Original (=English) version of WP3.6.1, with only simple-press plugin and pupload plugin.

In the both environment, I can not attach 57 KB small image file. The error message is "JSON Parse error: Unrecognized token '<'" and 1.jpg: Error 999 – Unknown server error (check image size – may be exhausting memory).

This image file can be viewed using Safari and Preview. Image file has no problem.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Sep 14, 2013 - 7:13 pm

I wouldnt have my /tmp directory at 0777.. not the best security practice... but I doubt its related...

is this on net, where we can try it and look at the ajax responses?

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17363
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625