1
Chappy
error when printing articles in news 1.3.1 stable
  • 2005/7/4 5:56

  • Chappy

  • Friend of XOOPS

  • Posts: 456

  • Since: 2002/12/14


When visitors go to print the news articles, it throws a blank page. Using php debug, I get this error: Fatal error: "Call to a member function on a non-object in /home/mydomain_uername/public_html/modules/news/print.php on line 83"

That section of code is as follows:

Quote:
if(trim($story->description())!='') {
$xoopsTpl->assign('xoops_meta_description', $story->description());
} else {
$xoops_meta_description=$story->title();
}


Some articles print fine. Others, get the error. The error occurs in all cases where meta data was manually set in previous versions of news -- or at least where the database table xoops_stories has the columns keywords and descriptions entered.

Anyone have an idea how to patch this at least until newer version?

I also posted this to the module bugs reporting system at the dev site.

Thanks!
MMM...It tastes like chicken! ...

2
blueteen
Re: error when printing articles in news 1.3.1 stable
  • 2005/7/4 7:48

  • blueteen

  • Quite a regular

  • Posts: 379

  • Since: 2004/7/16


Hello,

in printp.php, replace line

$xoopsTpl->assign('xoops_meta_description'$story->description());


with

$xoops_meta_description $story->description();

3
Chappy
Re: error when printing articles in news 1.3.1 stable
  • 2005/7/5 13:09

  • Chappy

  • Friend of XOOPS

  • Posts: 456

  • Since: 2002/12/14


Thanks, blueteen!

That did the trick!

As always appreciate the support.
MMM...It tastes like chicken! ...

Login

Who's Online

200 user(s) are online (60 user(s) are browsing Support Forums)


Members: 0


Guests: 200


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits