CBOX Theme Options Disappeared
- This topic has 21 replies, 8 voices, and was last updated 11 years ago by .
- You must be logged in to reply to this topic.
Tagged: theme options
Hi there,
So far I’m loving CBOX. Just got it up and running on a Multisite install where the community is on a subdomain.
However, I just upgraded to the new WP update (via network control panel) and now I can’t see anything in the CBOX Theme Options panels…
Any thoughts on how to get that back?
I attached a screenshot. Thank you in advance,
Nick
Hey @theironsamurai, the same thing is happening to me since I upgrade today, and after the update I am also getting an error on the BuddyPress activity page when I try post something…
"Fatal error: Call to undefined function wp_get_referer() in /home/*******/public_html/***/wp-content/plugins/commons-in-a-box/includes/functions.php on line 28"
I have been locked out of theme options since the update before the last but I am now also locked out of posting front end into the activity stream.
Still no theme options but I can now make posts if I press browser refresh rather than post update – not great for members but a step forward at least (although I am assuming that this is a buddypress issue rather than a theme issue). Any advice on theme options or slider fixes would be really appreciated 🙂
I would recommend staying away from the WP 3.6.1 update for now. I have found many AJAX-related errors on a test install due to this change. My guess is that the WordPress pluggable.php
file is not being included at the appropriate point, but (I stress) it’s just a guess.
tl;dr – don’t upgrade to 3.6.1.
If you have done so, replace your WP files (excluding your wp-content
directory) with those from version 3.6:
http://wordpress.org/wordpress-3.6.tar.gz
Downgrading seems to be unproblematic.
UPDATE: Okay so the problem is this… Because WordPress 3.6.1 now tries to sanitize wp_get_referer()
and because the CBOX plugin checks cbox_is_admin()
on init (which calls wp_get_referer()
during AJAX calls), any AJAX-related functionality will throw a fatal error in WP 3.6.1.
My advice is still do not upgrade WP 3.6.1 until this is resolved.
Thanks Christian, I’ll try that and see how it goes. I appreciate the quick reply.
Nick
@theironsamurai you can get round this and stay with 3.6.1 if you do one of two things:
Either grab the hot-fixed version of wp-includes/functions.php
from the latest build.
Or amend the way that CBOX initialises by changing line 223 of loader.php
in the root of the plugin’s directory from:
// Vroom!
cbox();
to
// Vroom!
add_action( 'plugins_loaded', 'cbox' );
Woo! It worked! Thanks, brother.
For those reading, if you don’t know how to downgrade your wp version… this is how I did it
I went into Cpanel, file manager, and uploaded the .zip file to my main blogs directory
Unziped it to a new folder that I called wp-old
I went into that file and DELETED “wp-content” folder (!important)
Then I highlighted everything else remaining in the “wp-old” folder
I clicked the “move” button in the top nav menu
And chose to move it to the main directory for the blog
This automatically over-wrote the old stuff with the new stuff (or the other way around, as it were, lol)
that’s it. Done.
Thanks again Christian.
Oh, haha, We must have been posting at the same time.
I decided to downground. But in case it happens with the next upgrade, I’ll do as you suggested.
Nick
Thanks everyone for bringing this bug to our attention.
As Christian points out, WP 3.6.1 introduced a change that broke a function we were using, which in turn broke all AJAX functionality on the site.
We have added a fix for this issue and are going to be releasing CBOX v1.0.5.1 very soon to address this.
FYI, the fix in question can be found here. Let us know if this fixes things for you.
Hi everyone – Thanks for your patience and persistence in reporting and tracking down the problem.
Commons In A Box 1.0.5.1 is now available, with a fix: https://commonsinabox.org/archives/3600
Awesome, thanks Boone. I’ll give it a whirl!
CBOX 1.0.5.1 works for me with WP 3.6.1. Thanks for the fix, Ray & Boone.
has anyone got the idiots guide to installing the new cbox version? I have multisite enabled (if that makes a difference) but every time I upload I get the following message:
The package could not be installed. The theme is missing the style.css
stylesheet.
Theme install failed.
I know it will be something simple that I am doing wrong but I still can’t work it out.