1
scasmar
Problems with module News 1.68 and 0.72 LatestNews
  • 2012/5/15 10:57

  • scasmar

  • Just popping in

  • Posts: 78

  • Since: 2009/7/29


Good afternoon:

I have a website with xoops 2.5.4 and mounted with the "news module 1.68" and the module LatestNews 0.72 and when I activate the block "latest news" the home screen is blank.

I have also noticed that does not work www.indalhr.es/backend.php so I activated the "debug" and what I say is this.

Fatal error: Call to a member function getVar () on a non-object in / home / indalhr / public_html / modules / news / class / class.newsstory.php on line 585

Has this happened to someone else? Does anyone know how to fix it?.

Thank you very much for your help.

2
Cesagonchu
Re: Problems with module News 1.68 and 0.72 LatestNews

Where did you find news 1.68?

3
Anonymous
Re: Problems with module News 1.68 and 0.72 LatestNews
  • 2012/5/15 13:21

  • Anonymous

  • Posts: 0

  • Since:


I guess this about xnews 1.68 . I am not sure if xnews is compatible with the latest news block module...

4
iliakros
Re: Problems with module News 1.68 and 0.72 LatestNews
  • 2012/5/15 14:02

  • iliakros

  • Just popping in

  • Posts: 21

  • Since: 2009/11/3


I believe it is this module

news 1.68

Try replacing line 585

$moduleInfo =& $module_handler->get($xoopsModule->getVar('mid'));


with

$xoopsm is_object($xoopsModule)?$xoopsModule->getVar('mid'):0
$moduleInfo =& $module_handler->get($xoopsm);

5
Anonymous
Re: Problems with module News 1.68 and 0.72 LatestNews
  • 2012/5/15 15:03

  • Anonymous

  • Posts: 0

  • Since:


Has this news 1.68 version any relation with development of the 1.67 beta version as found here? Or is it another fork. And are there problems fixed which are still in 1.67?

6
scasmar
Re: Problems with module News 1.68 and 0.72 LatestNews
  • 2012/5/15 15:08

  • scasmar

  • Just popping in

  • Posts: 78

  • Since: 2009/7/29


exactly, you are right the module is iliakros you mention, I installed this module because I thought that was really the "news module" but I have two problems I mention.
I change it tell me the line and now get this:

Fatal error: Call to a member function getInfo () on a non-object in / home / indalhr / public_html / modules / news / class / class.newsstory.php on line 587

Any ideas?

Thank you very much everyone.

7
iliakros
Re: Problems with module News 1.68 and 0.72 LatestNews
  • 2012/5/15 16:26

  • iliakros

  • Just popping in

  • Posts: 21

  • Since: 2009/11/3


I think it is the same problem

Try replacing line 587

$pathImageIcon XOOPS_URL .'/'$moduleInfo->getInfo('icons16');


with

$icons16 is_object($moduleInfo)?$moduleInfo->getInfo('icons16'):0;
$pathImageIcon XOOPS_URL .'/'$icons16;



8
scasmar
Re: Problems with module News 1.68 and 0.72 LatestNews
  • 2012/5/15 16:55

  • scasmar

  • Just popping in

  • Posts: 78

  • Since: 2009/7/29


Fixed, I changed the lines that you said and it works perfectly.

Many thanks for your help.

9
scasmar
Re: Problems with module News 1.68 and 0.72 LatestNews
  • 2012/5/15 16:56

  • scasmar

  • Just popping in

  • Posts: 78

  • Since: 2009/7/29


Fixed, I changed the lines that you said and it works perfectly.

Many thanks for your help.

10
Cesagonchu
Re: Problems with module News 1.68 and 0.72 LatestNews

Thank you for him

Please, can you also help us here?

Login

Who's Online

171 user(s) are online (105 user(s) are browsing Support Forums)


Members: 0


Guests: 171


more...

Donat-O-Meter

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

Latest GitHub Commits