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 15, 2013 - 1:32 am

I prepare a test forum http://www9365uj.sakura.ne.jp/demo/

Please log in user:demouser pass:k93wsej4

 

Original (English) version WP3.6.1.

Simple Press version 5.3.1

Pupload version 2.1.2

Apache 2.4.6 and PHP 5.5.3 on FreeBSD 9.1

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

I make sure the same error is reproduced on this site, logged in as demouser and attempted attach  another 115KB jpeg file named "1.jpg".

 

I will try from different local environment in my office, another version of Mac OS or Windows 7, on next Tuesday (Next Monday is holiday in Japan).

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Sep 15, 2013 - 1:04 pm

as indicated, its all about the json response..  this is the error being added to the json response:

<b>Fatal error</b>:  Call to undefined function imagecreatefromjpeg() in <b>/usr/problem-with-post-edit-buttonome/WWW/demo/wp-content/sp-resources/forum-plugins/plupload/library/sp-plupload-components.php</b> on line <b>170</b><br />

its because you server does not have the standard GD library compiled into php...  its needed by the file uploader...

Avatar
Yuko Amo
Member
Free Members
sp_UserOfflineSmall Offline
Sep 16, 2013 - 3:56 am

My first compile option of PHP was

./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=mysqlnd  --with-mysqli=mysqlnd --with-pdo-mysql --enable-mbstring  --enable-mbregex --with-libmbfl --enable-pcntl --with-zlib -with-openssl --with-gd --with-freetype-dir=/usr/local --with-curl=/usr/local

I compiled gd library before PHP installation with "

./configure --with-png=/usr/local --with-jpeg=/usr/local --with-freetype=/usr/local  --with-zlib=/usr/local ". I thought gd includes libjpeg and libpng. But it was my mistake.

On PHP configuration,   gd library bundled with PHP will be used with "--with-gd" option. gd library installed in /usr/local will not be used. 

Finally my new configuration is

./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=mysqlnd  --with-mysqli=mysqlnd --with-pdo-mysql --enable-mbstring  --enable-mbregex --with-gettext  --enable-ftp --with-libmbfl --enable-pcntl -with-openssl --with-gd --with-jpeg-dir=/usr/local --with-png-dir=/usr/local --with-zlib --with-freetype-dir=/usr/local --with-curl

I add install directory of libjpeg and libpng in the PHP configuration. Then I re-install PHP and restart apache, I success to upload image files.

 

Thank you for your support.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Sep 16, 2013 - 5:44 am

That is great news. Thanks for the update...

andy-signature.png
YELLOW
SWORDFISH
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: 620
Members: 17367
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626