Welcome, Guest
Username Password: Remember me

Fatal error when attempting to print listing
(1 viewing) (1) Guest
  • Page:
  • 1
  • 2

TOPIC: Fatal error when attempting to print listing

Fatal error when attempting to print listing 10 months, 2 weeks ago #1800

  • pberntson
  • OFFLINE
  • Fresh Boarder
  • Posts: 11
  • Karma: 0
Fatal error when attempting to use print icon on Prayer Listing view

Fatal error: Call to undefined method JDocumentHTML::setName() in /home/palmsumn/public_html/components/com_prayercenter/controller.php on line 192

Re: Fatal error when attempting to print listing 10 months, 2 weeks ago #1802

  • pberntson
  • OFFLINE
  • Fresh Boarder
  • Posts: 11
  • Karma: 0
v 2.5.2 running on J1.5.26

Re: Fatal error when attempting to print listing 10 months, 2 weeks ago #1804

  • MLeeper
  • OFFLINE
  • Administrator
  • Posts: 366
  • Karma: 3
Temporarily try adding "
//
" (double forward slash without the quotes) at the start of that line. This will remark out that line and not produce the error.

I will continue to check on a permanent solution.


Mike

Re: Fatal error when attempting to print listing 10 months, 2 weeks ago #1806

  • pberntson
  • OFFLINE
  • Fresh Boarder
  • Posts: 11
  • Karma: 0
Had to do the same to line 197 to stop fatal errors.

Result is no fatal errors, but writes results back to frame of original page. Not exactly what user would expect for now is ok.

Thanks

Re: Fatal error when attempting to print listing 10 months, 2 weeks ago #1807

  • pberntson
  • OFFLINE
  • Fresh Boarder
  • Posts: 11
  • Karma: 0
Just to clarify, with lines 192 and 197 commented out, no fatal errors are created, but neither is a PDF view of the daily or weekly prayer request which could then be printed by the user. Results are just pasted back into original frame.

Re: Fatal error when attempting to print listing 10 months, 1 week ago #1811

  • MLeeper
  • OFFLINE
  • Administrator
  • Posts: 366
  • Karma: 3
It appears that there were some changes in the Joomla 1.5x PDF creation scripts. I believe these changes should fix this issue:

  1. Rename the "components\com_prayercenter\controller.php" file on your site to "controller.old". Unzip the attached "controller.zip" file and copy the "controller.php" to the "components\com_prayercenter" directory of your site.
  2. Rename the "components\com_prayercenter\helpers\pc_class.php" file on your site to "pc_class.old". Unzip the attached "pc_class.zip" file and copy the "pc_class.php" to the "components\com_prayercenter\helpers" directory of your site.



I will include these changes in the next version of PrayerCenter.

NOTE: Use these files on version 2.5.2 of PrayerCenter only.


File Attachment:

File Name: controller.zip
File Size: 5 KB


File Attachment:

File Name: pc_class.zip
File Size: 22 KB





Mike
Last Edit: 10 months, 1 week ago by MLeeper. Reason: Attachment updates
  • Page:
  • 1
  • 2
Time to create page: 0.34 seconds