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
File Uploader with Plupload not working
Avatar
Omar Jordan
Member
Free Members
sp_UserOfflineSmall Offline
Jun 28, 2014 - 10:47 pm

I am not able to upload images to any posts. Every time I try, I get the following message:

"Unexpected token �"

And then the following note below the upload box:

Error 999 - Unknown server error (check image size - may be exhausting memory)

It doesn't seem to matter what size the image -  the smallest image I tried was 50x50, 4 kb.

I've deactivated all WP plugins and SP plugins and did not have any success.

Is there anything else I should try?

Thank you.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jun 29, 2014 - 1:44 am

sure looks like a js conflict... hence the js error...  have you looked at the browser console to see what, if any, js errors are being thrown?

do you have a link to site so we can take a look?

Avatar
Omar Jordan
Member
Free Members
sp_UserOfflineSmall Offline
Jun 29, 2014 - 11:12 am

The only errors that are being throw are:

  1. Uncaught ReferenceError: jQuery is not defined jquery-migrate.min.js?ver=1.2.1:2
  2. GET http://insacredbalance.com/wp-......js?ver=24 404 (Not Found) insacredbalance.com/:49

The link is http://insacredbalance.com/

 

I get the following message when I make my attempt in Firefox:

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

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jun 29, 2014 - 11:38 am

you have a wp theme (or plugin) that is going against the wp standards...  its loading its own versions of jquery and jquery ui instead of using the versions that come with wp...

<script type='text/javascript' src='//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js'></script>
<script type='text/javascript' src='//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js'></script>

and the jquery version is a bit older than the wp version...

but the real issue is just that they are different...  makes no sense that some themes and plugins continue to violate the wp desires here...  no way for other plugins to test and work with those..

so the solution is to fix the culprit to use the wp versions...

easy check for where is to try a temp switch to the defaut wp theme and see if it starts working... if so, then its the wp theme...  if not, disable all other plugins and see if working... then re-enable one by one until it breaks...

Avatar
Omar Jordan
Member
Free Members
sp_UserOfflineSmall Offline
Jul 5, 2014 - 12:49 am

I changed the theme and disabled all of the plugins one by one (there are only 2) and am still not able to upload any images. The following errors came up in the console when opening any page on the forum (not when trying to upload an image):

"Uncaught ReferenceError: jQuery is not defined jquery-migrate.min.js:2"
 
"Failed to load resource: the server responded with a status of 404 (Not Found) http://insacredbalance.com/wp-......js?ver=24"
All themes and plugins are up to date. Using theme Twenty-Eleven.
 
Any thoughts?
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jul 5, 2014 - 1:50 am

that could possibly indicate one of two things... both likely due to incorrect server permissions...

first, go to forum - options - global settings and try disabling the combined css and js caches...

if that doesnt help, then you need to check the permissions on the wp-content/sp-resources folder... typically its 0755 (dirs) and 0644 (php) but can differ from server to server and based on php flavor... fundamentally, see if it matches the permissions on wp-content... same for the uid and gid - ie ownerships...

Avatar
Omar Jordan
Member
Free Members
sp_UserOfflineSmall Offline
Jul 5, 2014 - 12:08 pm

Toggling the combined css and js caches did not help.

The permissions on the wp-content/sp-resources folder is 0755 (the same as the wp-content folder) but I'm not sure how to check the permissions for php. I'm also not familiar with the uid and gid and how to check / change them.

Also, I wanted to check about the error I cited in my last posted said the server could not find this file (sp-plugin-scripts-header.js?ver=24) in the forum-cache folder. Would that be the cause of the issue?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jul 5, 2014 - 1:00 pm

more than likely permissions or ownership... the web user couldnt access the directory to open the file...

so I had you disable the combined css and js cache so accessing the file wouldnt be needed... but concern was if there was permissions/ownership issues, it would exist for more files in sp-resources...

you can check the uid/gid via ssh (ls -la) or usually in your ftp client...

Avatar
Omar Jordan
Member
Free Members
sp_UserOfflineSmall Offline
Jul 5, 2014 - 5:24 pm

The php permissions are 644.

I'm sorry, I have no idea what I'm looking for in regards to the uid / gid. I've used both Filezilla and the Dreamweaver ftp client and I just don't know what I'm looking for. And I'm not familiar at all with ssh.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jul 6, 2014 - 12:50 am

you might check with your host then...

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: 649
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 616
Members: 17344
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10117
Posts: 79600