Well, this just made my day. I’ve discovered a few bugs/issues with Manga+Press 2.5 that I think people should be aware of. Please note that I am not absolutely sure of the severity of these bugs because I have one installation where they’re not appearing and another installation where they are appearing. Since the two installations in question are my webcomic site and the demo (this site), it could be a problem with having two WordPress installations under the same domain name, since the demo is a sub-domain of my webcomic site. Anyway, the bugs and the steps taken to fix them are listed below:
The first bug I discovered had to do with the new “filter comic posts from front page” option. Apparently, when this option is enabled, it would cause the Edit Pages (edit-pages.php) to throw a 404 when the page was accessed.
Another bug related to this same option was sometimes causing a WordPress install to throw a 500 Internal Server Error. I tracked it down to which hook I was using to call the function that filters the categories. So I’ve changed that, and there doesn’t seem to be a problem with the WordPress installations in question.
Another very minor bug had to do with the “insert comic banner on front page” option. That was more of a formatting issue that had to do with where I had a curly brace placed. That has been corrected as well.
Finally, the (knocks-on-wood) last bug I found has to do with the Latest Comic page option. In Manga+Press 2.5, all you had to do was set the page and it would automatically filter the page’s content to include the comic navigation and comic post. Well, in a pre-release version of Manga+Press 2.5, there was a minor bug that would prevent WordPress from adding current_page_item to the page navigation css. Well, very minor but annoying bug that I found a fix for but unfortunately, under certain conditions, that “fix” produced another bug that would cause the Latest Comic Page to throw a 500 Internal Server Error. *sigh* So that feature has been disabled as well.
Updated 10.14.09
One workaround is in your current theme, create a new document called page-latest-comic.php and then copy-and-paste the code below into the new document:
Now, you might have to adjust the formatting to match your current theme; possibly even moving the get_sidebar() and get_footer() tags to match your own theme.
The second workaround is to take your current theme, and take either the page.php or the single.php (if the theme doesn’t have a page.php file) and copy it to something like page-latest-comic.php. Open the page-latest-comic.php file and:
- Look at the top of the file. If you don’t see something like the code below, then copy & page it into the file:
<?php /* Template Name: Latest Comic Page */ ?>
- Next, look for the start of the WordPress Loop. It’s usually indicated by
<?php if ( have_posts() ): ?> - Right below that line, copy and paste the following lines of code:
<?php if( is_comic_page() ) { wp_comic_navigation( wp_comic_last() ); }?>
<?php query_posts("cat=".$mp_options[latestcomic_cat]."&showposts=1"); ?> - Finally, look for the end of the WordPress Loop, usually indicated by <?php endif; ?> and add this: <?php wp_reset_query(); ?> directly below that line.
- Close, save and upload the file to your WordPress theme’s directory. Then log into your WordPress install and go to Edit Pages. Find the page you designated as your latest comic page, and using Quick Edit, find the Page Template dropdown and select Latest Comic Page.
- Finally, click Update Page. That should be all.
August 2, 2009 @ 1:28 pm by admin
2 Comments »
Hi I want to use your plugin but whenever I try to post a new comic it keeps telling me “The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form.”
How do I rectify this. I would greatly appreciate a speedy response because I think this is great and I would love to use it. I am not much of a programmer so I can appreciate this.re
Regards
Haden Prescod
That actually isn’t a bug. The upload size is restricted on purpose. What you’re going to have to do is re-save your image as a jpeg and compress it to something under 500Kb. Also, if you have Manga+Press 2.5, you can use WordPress’s Add Post and Media Library functions to add your comic but you have to make sure that your comic category is selected before posting.
I hope this answers your questions