• My site, https://www.sportsfullcircle.com, recently upgraded to 2.8. The second we did so, the ENTIRE SITE CRASHED.

    We now get a white screen with the message:

    Fatal error: Cannot use object of type WP_Error as array in /home1/sportsfu/public_html/wp-content/themes/options/app/options.php on line 13

    I noticed tons of people were having similar problems, and this is a huge issue for myself as well. We average many views, and it is necessary this be solved.

Viewing 3 replies - 16 through 18 (of 18 total)
  • Only version 1.2 of Options Theme will break when upgrading to WordPress 2.8 – version 1.3 works just fine

    Here′s an official fix for v1.2 provided by Justin in the Hybrid Forums:

    Change this code in /app/options.php:

    function op_all_cats() {
    	$all_cats = get_all_category_ids();
    	foreach($all_cats as $key => $value) :
    		$all_cats[$key] = get_cat_name($all_cats[$key]);
    		$all_cats[$key] = str_replace("&", "&", $all_cats[$key]);
    		$all_cats[$key] = str_replace("&","&", $all_cats[$key]);
    	endforeach;
    	$all_cats['none'] = false;
    	return $all_cats;
    }

    To:

    function op_all_cats() {
    	$cats = get_categories();
    	foreach ( $cats as $cat ) :
    		$return[] = $cat-> name;
    	endforeach;
    	$return[] = false;
    	return $return;
    }

    Be aware that Options Theme has been discontinued, so sooner or later it just won′t work anymore as WP keeps on rolling out new features.

    Consider joining the Hybrid Theme club. It′s a great theme and has a very active support community: https://themehybrid.com/

    Being a novice,I attempted to create a floating header for an ad, but got the following error:

    “Fatal error: Class ‘floatad’ not found in /home/debbiez/public_html/wp-content/themes/adstyle/header.php on line 25”

    Now I cant get past this error screen to open my site an removed the offending code. I don’t see a way above to fix this specific problem, but I was hoping that someone out there knows what to do?

    Not really the topic for this discussion, but go back to your original header.php file (without your recent changes) and reupload it over the current broken one.

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘2.8 Crashed My Site!!! Using Options theme.’ is closed to new replies.