LatestNews Extended error

Hi,
I purchased a module LatestNews Extended.

How can I avoid displaying this error:

Strict Standards: Non-static method modLatestNewsXtdHelper::getFormattedDate() should not be called statically in E:\WEBPAGE\motionfit\modules\mod_latestnewsxtd\helper.php on line 138

Thank you
11 years 6 months ago #1 by nejc

Please Log in or Create an account to join the conversation.

Hi Gnioco

is it possible for you to edit this file /modules/mod_latestnewsxtd/helper.php

at line 146
private function getFormattedDate($date, $offset, $show_date_type)  {

edit it to be
private static function getFormattedDate($date, $offset, $show_date_type) {

and see if that remove the error. Do let us know the result then.
11 years 6 months ago #2 by erwinschro

Please Log in or Create an account to join the conversation.

Hi,

Thank you. Problem solved.
However, I am still getting another error:

Notice: Undefined variable: imgstyle in E:\...\modules\mod_latestnewsxtd\tmpl\default.php on line 87

Any ideas?

Thank you.
11 years 6 months ago #3 by nejc

Please Log in or Create an account to join the conversation.

Yeah I forgot for what this imgstyle variable is in there...
so can you just remove it from
/modules/mod_latestnewsxtd/tmpl/default.php at line 87
<div class="image-feat" <?php echo $imgstyle; ?>>

edit it to to just
<div class="image-feat">

also at line 62 change it like above

see if that works.
11 years 6 months ago #4 by erwinschro

Please Log in or Create an account to join the conversation.

It works now.

Thank you for your help.

Regards
11 years 6 months ago #5 by nejc

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum