| View previous topic :: View next topic |
| Author |
Message |
johncoswell Developer


Joined: 31 Jul 2007 Posts: 432 Location: Baltimore, MD
|
Posted: Fri Jun 12, 2009 3:14 pm Post subject: WordPress 2.8/CP 2.7 Category Handling Errors Theme Fix |
|
|
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 |
|
 |
mbillingsley

Joined: 12 Jun 2009 Posts: 1 Location: Georgia
|
Posted: Fri Jun 12, 2009 3:37 pm Post subject: |
|
|
| It worked for me successfully. THANK YOU FOR EVERYTHING YOU DO! |
|
| Back to top |
|
 |
Xade
Joined: 04 Jul 2008 Posts: 23
|
Posted: Fri Jun 12, 2009 3:38 pm Post subject: |
|
|
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  _________________
Evony--Free forever |
|
| Back to top |
|
 |
wolfsilvermoon
Joined: 25 Apr 2009 Posts: 14
|
Posted: Fri Jun 12, 2009 4:15 pm Post subject: |
|
|
| Again, thank you so much for getting this all sorted out. Hours of stressed on my end now relieved! |
|
| Back to top |
|
 |
michaelmf

Joined: 22 Oct 2007 Posts: 10
|
Posted: Fri Jun 12, 2009 7:35 pm Post subject: |
|
|
Hmmm... didn't seem to work for me. Still getting the news as a comic.
http://alice.alicecomics.com |
|
| Back to top |
|
 |
wolfsilvermoon
Joined: 25 Apr 2009 Posts: 14
|
Posted: Fri Jun 12, 2009 8:48 pm Post subject: |
|
|
-Do you have CP Manager 1.4.5 installed?
-Are storylines enabled? |
|
| Back to top |
|
 |
Garrett Williams

Joined: 11 Apr 2008 Posts: 31 Location: Missouri
|
Posted: Fri Jun 12, 2009 11:22 pm Post subject: |
|
|
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 |
|
 |
TheScatterbrain
Joined: 26 Mar 2009 Posts: 7
|
Posted: Sat Jun 13, 2009 1:48 am Post subject: |
|
|
This worked on my storyline archives problem
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 |
|
 |
RobPeters

Joined: 24 Apr 2009 Posts: 59
|
Posted: Sat Jun 13, 2009 8:20 am Post subject: |
|
|
Yes! This fixes my problem. Thanks for getting a fix so quickly. _________________ www.crazycal.com |
|
| Back to top |
|
 |
zcotty
Joined: 06 Apr 2009 Posts: 16
|
Posted: Sat Jun 13, 2009 6:24 pm Post subject: |
|
|
Works for me too. Thanks!
www.heroes-inc.net |
|
| Back to top |
|
 |
michaelmf

Joined: 22 Oct 2007 Posts: 10
|
Posted: Sat Jun 13, 2009 6:37 pm Post subject: |
|
|
| Quote: | -Do you have CP Manager 1.4.5 installed?
-Are storylines enabled? |
Yes and yes. |
|
| Back to top |
|
 |
Egypt Urnash

Joined: 22 Jul 2006 Posts: 16
|
Posted: Sun Jun 14, 2009 10:12 am Post subject: |
|
|
Works for me, thanks a lot for the quick fix! _________________
 |
|
| Back to top |
|
 |
brendan mcginley

Joined: 10 Feb 2009 Posts: 46
|
Posted: Sun Jun 14, 2009 11:10 am Post subject: |
|
|
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 |
|
 |
thegentc
Joined: 21 Apr 2009 Posts: 15
|
Posted: Sun Jun 14, 2009 1:45 pm Post subject: |
|
|
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 |
|
 |
thegentc
Joined: 21 Apr 2009 Posts: 15
|
Posted: Sun Jun 14, 2009 7:56 pm Post subject: |
|
|
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 |
|
 |
|