All Good Things Must Come To An End

As you all know, I have been doing WordPress plugins and supporting it for the past 6 years. These 6 years of my life, I have been through my polytechnic education, my national service as well as my university education.

I just graduated from university in December 2009 and have been looking for full-time jobs. I am offered a full-time job and will be starting work on 1st February 2010.

I regret to say that I am NOT ABLE to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

However, I WILL still update my plugins whenever I can and you still can report bugs to me via email and I will try to fix it.


Author Topic: Print Page Shows 404 Error Here Too  (Read 2950 times)

0 Members and 1 Guest are viewing this topic.

Offline joeljito

  • Newbie
  • *
  • Posts: 2
    • View Profile
Print Page Shows 404 Error Here Too
« on: 15 June 2007, 01:44 »
Hi -

I'm having the problem mentioned in a previous post - wp-print works for posts, but generates 404 error for pages.  I'm using WP 2.2 and I have regenerated permalinks.  Here's a sample url I'm getting for a page:

http://www.reverse-mortgage-information.org/faqprintpage/

Not sure how long this has been a problem.  It was only pointed out to me today.  I've made several changes and tried back tracking through some of the more recent plugins I've added with no luck.

Any thoughts?  Other post seemed to solve it, but didn't give direction.

Thanks

Offline fun35

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Print Page Shows 404 Error Here Too
« Reply #1 on: 15 June 2007, 02:01 »
The Solution ist the same as it was by me:

search in the print.php for this an add the "/" for "printpage"

Quote
if(!empty($using_permalink)) {
      if(is_page()) {
         $print_text = stripslashes($print_options['page_text']);
         $print_link = $print_link.'/printpage/'.$polyglot_append


so your Link will be:
http://www.reverse-mortgage-information.org/faq/printpage/

and you see it works! :)

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: Print Page Shows 404 Error Here Too
« Reply #2 on: 15 June 2007, 08:18 »
I got a more general fix which I will update the zip again.
Find:
Code: [Select]
if(is_page()) {
$print_text = stripslashes($print_options['page_text']);
$print_link = $print_link.'printpage/'.$polyglot_append;
Replace:
Code: [Select]
if(is_page()) {
if(substr($print_link, -1, 1) != '/') {
$print_link = $print_link.'/';
}
$print_text = stripslashes($print_options['page_text']);
$print_link = $print_link.'printpage/'.$polyglot_append;

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

Offline joeljito

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Print Page Shows 404 Error Here Too
« Reply #3 on: 15 June 2007, 11:08 »
Thank you both very much...all better now!

Offline Ttech

  • Official Support
  • Global Moderator
  • *****
  • Posts: 4,294
    • View Profile
Re: Print Page Shows 404 Error Here Too
« Reply #4 on: 30 June 2007, 19:19 »
Glad it works... :)
Learning and Helping one day at a time.




DevNode.org Operator - The IRC network for Programers