Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
JavaScript Errors with Simple:Press on staging server - local env is okay
Avatar
Natalie MacLees
Member
Free Members
Offline
Jun 4, 2013 - 5:42 pm

The local copy of my site works just fine, but I can't use Simple:Press on my staging site. Here is a screen cap of what I see when I go to my Forums: 

View post on imgur.com

There's a JS error: Uncaught TypeError: Object [object Object] has no method 'prettyCheckboxes'

The accordion menus won't work - I can't actually do anything because clicking the menu items doesn't load up the associated options. Additionally, if Simple-Press is activated, I can't add media to posts, and there are some other JS errors throughout the WP admin.

I've tried deactivating all plugins and switching my theme back to Twenty Twelve, but the problem with Simple-Press persists.

I'm running WP 3.5.1

And it runs fine on my local environment. What could possibly be the cause? The front end of the forums seems to work just fine, even though the admin is a mess.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
Offline
Jun 5, 2013 - 1:58 am

not sure without more info...  what is different between the two environments?

you can run a quick check and bypass the 'pretty' checkboxes...  in your wp config file, or your sp theme functions file, try doing

define('SP_USE_PRETTY_CBOX;, false);

which turns them off... and see if that helps...

something else you can look at is forum - toolbox- housekeeping and clear the combined js cache... or even on forum - options - global settings, disable the combined js cache...

Avatar
Natalie MacLees
Member
Free Members
Offline
Jun 5, 2013 - 1:43 pm

I can't get to Toolbox -> Housekeeping because the menus don't work. 

I checked Options -> Global Setting and the CSS and JS caches aren't enabled.

I don't really know what the difference between the two environments is - I've never had a problem like this before - it's my hosting account, and I don't know how to even begin comparing the setting between what I'm running on my local with MAMP and what my host has configured on my server.

I tried adding that line to my spFunctions.php in my forum theme, but I still get the same error.

I was hoping this might sound familiar and there'd be a known fix. Can I get a clue about where I should check next?

Avatar
Yellow Swordfish
Glinton, England
SP Master
Offline
Jun 5, 2013 - 2:46 pm

The first difference that Steve was asking about above simply means WordPress theme and plugin differences. In other words, are the environments in that respect identical?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Natalie MacLees
Member
Free Members
Offline
Jun 6, 2013 - 5:11 pm

Yes, in that respect, the environments are 100% identical.

I thought maybe something had just gotten out of sync on the server, like a missed file or something. So I completely erased the site and db on the server and uploaded a new copy of the files and moved the database. So they're exactly the same.

Only the forums don't work on the server and they do on my local.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
Offline
Jun 6, 2013 - 10:19 pm

sorry, I missed that you said in the admin... can you try opening your sp-config.php file in your simple press plugins folder and change the admin checkbox stuff there to false?

what other plugins?  there is an issue with gd tools (I think thats it) that uses the same namespace as SP...

Avatar
Natalie MacLees
Member
Free Members
Offline
Jun 14, 2013 - 10:54 pm

Thank you, Mr. Papa. Changing that setting in the sp-config.php file did the trick. 

I could give you a list of all the plugins I'm using, but as I said, I experienced this issue even when I disabled all other plugins and reverted to the TwentyTwelve theme and the default SP theme.

I don't really know why that one little thing was so much trouble on one server only, but I'm sure glad to have a solution.

Avatar
Yellow Swordfish
Glinton, England
SP Master
Offline
Jun 15, 2013 - 3:05 am

It's real puzzling isn't it?

We often hear comments like ' It's a WordPress site - everything is just supposed to work'! Many people just do not realise how fragile things can be and how very wrong that assumption is.

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
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: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625