ComicPress Workshops

WordPress 2.8/CP 2.7 Category Handling Errors Theme Fix
Goto page 1, 2, 3, 4  Next
 
Post new topic   Reply to topic    ComicPress Forum Index -> THEME: ComicPress 2.8 and earlier
View previous topic :: View next topic  
Author Message
johncoswell
Developer
Developer


Joined: 31 Jul 2007
Posts: 432
Location: Baltimore, MD

PostPosted: Fri Jun 12, 2009 3:14 pm    Post subject: WordPress 2.8/CP 2.7 Category Handling Errors Theme Fix Reply with quote

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:
// load all of the comic & non-comic category information
get_all_comic_categories();

change this to:
Code:
// 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.
_________________
Dawn's Dictionary Drama | Twitter
Back to top
View user's profile Send private message Send e-mail Visit poster's website
mbillingsley



Joined: 12 Jun 2009
Posts: 1
Location: Georgia

PostPosted: Fri Jun 12, 2009 3:37 pm    Post subject: Reply with quote

It worked for me successfully. THANK YOU FOR EVERYTHING YOU DO!
Back to top
View user's profile Send private message Visit poster's website
Xade



Joined: 04 Jul 2008
Posts: 23

PostPosted: Fri Jun 12, 2009 3:38 pm    Post subject: Reply with quote

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 Smile
_________________

Evony--Free forever
Back to top
View user's profile Send private message
wolfsilvermoon



Joined: 25 Apr 2009
Posts: 14

PostPosted: Fri Jun 12, 2009 4:15 pm    Post subject: Reply with quote

Again, thank you so much for getting this all sorted out. Hours of stressed on my end now relieved!
Back to top
View user's profile Send private message Visit poster's website
michaelmf



Joined: 22 Oct 2007
Posts: 10

PostPosted: Fri Jun 12, 2009 7:35 pm    Post subject: Reply with quote

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

http://alice.alicecomics.com
Back to top
View user's profile Send private message
wolfsilvermoon



Joined: 25 Apr 2009
Posts: 14

PostPosted: Fri Jun 12, 2009 8:48 pm    Post subject: Reply with quote

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?
Back to top
View user's profile Send private message Visit poster's website
Garrett Williams



Joined: 11 Apr 2008
Posts: 31
Location: Missouri

PostPosted: Fri Jun 12, 2009 11:22 pm    Post subject: Reply with quote

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.
_________________
Back to top
View user's profile Send private message Visit poster's website
TheScatterbrain



Joined: 26 Mar 2009
Posts: 7

PostPosted: Sat Jun 13, 2009 1:48 am    Post subject: Reply with quote

This worked on my storyline archives problem Very Happy
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!
Back to top
View user's profile Send private message Visit poster's website
RobPeters



Joined: 24 Apr 2009
Posts: 59

PostPosted: Sat Jun 13, 2009 8:20 am    Post subject: Reply with quote

Yes! This fixes my problem. Thanks for getting a fix so quickly.
_________________
www.crazycal.com
Back to top
View user's profile Send private message
zcotty



Joined: 06 Apr 2009
Posts: 16

PostPosted: Sat Jun 13, 2009 6:24 pm    Post subject: Reply with quote

Works for me too. Thanks!


www.heroes-inc.net
Back to top
View user's profile Send private message
michaelmf



Joined: 22 Oct 2007
Posts: 10

PostPosted: Sat Jun 13, 2009 6:37 pm    Post subject: Reply with quote

Quote:
-Do you have CP Manager 1.4.5 installed?

-Are storylines enabled?


Yes and yes.
Back to top
View user's profile Send private message
Egypt Urnash



Joined: 22 Jul 2006
Posts: 16

PostPosted: Sun Jun 14, 2009 10:12 am    Post subject: Reply with quote

Works for me, thanks a lot for the quick fix!
_________________
Back to top
View user's profile Send private message Visit poster's website AIM Address
brendan mcginley



Joined: 10 Feb 2009
Posts: 46

PostPosted: Sun Jun 14, 2009 11:10 am    Post subject: Reply with quote

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:

Quote:
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.
Back to top
View user's profile Send private message
thegentc



Joined: 21 Apr 2009
Posts: 15

PostPosted: Sun Jun 14, 2009 1:45 pm    Post subject: Reply with quote

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:

Quote:
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 ?>.
_________________
Click.
Lewis's Life
Back to top
View user's profile Send private message Visit poster's website
thegentc



Joined: 21 Apr 2009
Posts: 15

PostPosted: Sun Jun 14, 2009 7:56 pm    Post subject: Reply with quote

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:


Quote:
$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());

_________________
Click.
Lewis's Life
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    ComicPress Forum Index -> THEME: ComicPress 2.8 and earlier All times are GMT - 7 Hours
Goto page 1, 2, 3, 4  Next
Page 1 of 4

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group