LatestNews Extended error
- Posted by nejc (3) Offline
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
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
Please Log in or Create an account to join the conversation.
- Posted by erwinschro (1034) Offline
Hi Gnioco
is it possible for you to edit this file /modules/mod_latestnewsxtd/helper.php
at line 146
edit it to be
and see if that remove the error. Do let us know the result then.
11 years 6 months ago #2
by erwinschro
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.
Please Log in or Create an account to join the conversation.
- Posted by nejc (3) Offline
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
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.
Please Log in or Create an account to join the conversation.
- Posted by erwinschro (1034) Offline
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
edit it to to just
also at line 62 change it like above
see if that works.
11 years 6 months ago #4
by erwinschro
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.
Please Log in or Create an account to join the conversation.
- Posted by nejc (3) Offline