WordPress 2.8/CP 2.7 Category Handling Errors Theme Fix

Older version support.

WordPress 2.8/CP 2.7 Category Handling Errors Theme Fix

Postby johncoswell » Fri Jun 12, 2009 4:14 pm

WordPress 2.8 is now stricter about when parts of it are initialized, most likely for performance reasons. The parts of the current ComicPress functions.php that handle category information loading are currently being initialized too soon in the chain of events, before the code that allows one to load category information from the database is ready. This fix for functions.php will repair the problem that everyone is having related to categories (missing images, posts not appearing in the right places), and when Tyler and I have time, we will release 2.7.1 which will fix the issue for good. Storyline Mode only suppresses the real problem, so be sure to disable it (if you're not normally using it) once this fix is applied.

In your functions.php file, around like 33-34, you'll see:
Code: Select all
// load all of the comic & non-comic category information
get_all_comic_categories();

change this to:
Code: Select all
// load all of the comic & non-comic category information
add_action('init', 'get_all_comic_categories');

And post your success or failure to this post. If it succeeds for you, please be sure to also send a message out on Twitter indicating so, with a link to this post.
johncoswell
Developer
 
Posts: 330
Joined: Tue Jul 31, 2007 7:33 am
Location: Baltimore, MD

Postby mbillingsley » Fri Jun 12, 2009 4:37 pm

It worked for me successfully. THANK YOU FOR EVERYTHING YOU DO!
mbillingsley
Newbie
 
Posts: 1
Joined: Fri Jun 12, 2009 4:34 pm

Postby Xade » Fri Jun 12, 2009 4:38 pm

just so you know, since he was obviously pressed for time, it is in your 2.7 theme folder, for example on me it would be the xade theme (yeah, I made a theme named xade

Edit: worked great :)
Xade
Newbie
 
Posts: 17
Joined: Fri Jul 04, 2008 6:15 pm

Postby wolfsilvermoon » Fri Jun 12, 2009 5:15 pm

Again, thank you so much for getting this all sorted out. Hours of stressed on my end now relieved!
wolfsilvermoon
Newbie
 
Posts: 12
Joined: Sat Apr 25, 2009 1:30 pm

Postby michaelmf » Fri Jun 12, 2009 8:35 pm

Hmmm... didn't seem to work for me. Still getting the news as a comic.

http://alice.alicecomics.com
michaelmf
Newbie
 
Posts: 7
Joined: Mon Oct 22, 2007 2:53 pm

Postby wolfsilvermoon » Fri Jun 12, 2009 9:48 pm

michaelmf wrote:Hmmm... didn't seem to work for me. Still getting the news as a comic.

http://alice.alicecomics.com


-Do you have CP Manager 1.4.5 installed?

-Are storylines enabled?
wolfsilvermoon
Newbie
 
Posts: 12
Joined: Sat Apr 25, 2009 1:30 pm

Postby Garrett Williams » Sat Jun 13, 2009 12:22 am

Yay! Just upgraded after checking the forum, and applied this fix successfully. The "Previous Comic" button was only broken for a couple minutes.
I have storyline support on, and made sure to upgrade Comicpress manager before the upgrade. Upgraded to Comicpress 2.7(with drastic customizations) a day before Wordpress 2.8 came out. Was using 2.1 for the past year.

I'm happy to say that only one of my plugins has failed: Search Everything. An awesome plugin, but I've had to deactivate it until there's an update to that.
Garrett Williams
Newbie
 
Posts: 28
Joined: Fri Apr 11, 2008 11:10 pm
Location: Missouri

Postby TheScatterbrain » Sat Jun 13, 2009 2:48 am

This worked on my storyline archives problem :D
In case anyone but me has this issue, this is the way to go.

Thanks alot for working something out this fast you ComicPress guys!
TheScatterbrain
Newbie
 
Posts: 6
Joined: Thu Mar 26, 2009 10:43 am

Postby RobPeters » Sat Jun 13, 2009 9:20 am

Yes! This fixes my problem. Thanks for getting a fix so quickly.
RobPeters
Contributor
 
Posts: 61
Joined: Fri Apr 24, 2009 8:17 pm

Postby zcotty » Sat Jun 13, 2009 7:24 pm

Works for me too. Thanks!


www.heroes-inc.net
zcotty
Newbie
 
Posts: 22
Joined: Mon Apr 06, 2009 5:33 am

Postby michaelmf » Sat Jun 13, 2009 7:37 pm

-Do you have CP Manager 1.4.5 installed?

-Are storylines enabled?


Yes and yes.
michaelmf
Newbie
 
Posts: 7
Joined: Mon Oct 22, 2007 2:53 pm

Postby Egypt Urnash » Sun Jun 14, 2009 11:12 am

Works for me, thanks a lot for the quick fix!
Egypt Urnash
Newbie
 
Posts: 15
Joined: Sat Jul 22, 2006 5:35 pm

Postby brendan mcginley » Sun Jun 14, 2009 12:10 pm

I got an error in line 90 and I can't get in to fix it via the dashboard. Simply logging in yields me this message:

Fatal error: Call to undefined function: cpm_wpmu_modify_path() in /home/content/B/r/e/Brenz/html/wordpress/wp-content/plugins/comicpress-manager/comicpress_manager_library.php on line 90


What should I do to edit the text via FTP? I'm not sure what version of ComicPress I have running, but I don't think it's quite the latest.
brendan mcginley
Newbie
 
Posts: 45
Joined: Wed Feb 11, 2009 12:46 am

Postby thegentc » Sun Jun 14, 2009 2:45 pm

Help. I replaced the code, and it didn't work. so I went back to change it, and my explorer crashed. now some of my comics are a mess of code errors and I can't log on. I just get:

Warning: Cannot modify header information - headers already sent by (output started at /home1/.../wp-content/themes/comicpress/functions.php:637) in /home1/.../wp-login.php on line 287


This means that your have an extra space within your functions.php file at line 637. Turn on hidden characters in your text editor and ensure that there's nothing after the last ?>.
thegentc
Newbie
 
Posts: 14
Joined: Tue Apr 21, 2009 8:40 am

Postby thegentc » Sun Jun 14, 2009 8:56 pm

I tried FTPing my functions file- I took it, placed the original text back in, but it still didn't work.

here's what I have:


$comic_filename_filters = array();
$comic_filename_filters['default'] = "{date}*.*";

// load all of the comic & non-comic category information
add_action('init', 'get_all_comic_categories');

function get_first_comic() {
return get_terminal_post_in_category(get_all_comic_categories_as_cat_string());
thegentc
Newbie
 
Posts: 14
Joined: Tue Apr 21, 2009 8:40 am

Next

Return to ComicPress 1.0 -> 2.8

Who is online

Users browsing this forum: No registered users and 0 guests