Error Non-static method modDjFlyer in home page

More
5 years 16 hours ago #5807 by fsigu
fsigu created the topic: Error Non-static method modDjFlyer in home page
Hi install de template (quickstar) in my pc but in the home page i have this error
Strict standards: Non-static method modDjFlyer::getCategories() should not be called statically in C:\wamp\www\royal\modules\mod_djflyer\mod_djflyer.php on line 44

I have the last wamp server
apache 2.4.9
php 5.5.12
mysql 5.6.17




How i can resolve this error?

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

More
4 years 11 months ago #5812 by marcin
marcin replied the topic: Error Non-static method modDjFlyer in home page
Hello,

You can simply disable the error reporting in your Joomla settings. To do that, go to "Site->Global Configuration->Server" and simply set "None" for the "Error Reporting" option.

Please note that strict standards messages are warnings, not errors. Those messages appears as information for developers and you do not need to display error reporting on your server.

Regards,
Marcin

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

More
4 years 11 months ago #5828 by fsigu
fsigu replied the topic: Error Non-static method modDjFlyer in home page
I fox the error change the line with this
original
//$cats = modDjFlyer::getCategories($cat_l);
change
$cats = (new modDjFlyer)->getCategories($cat_l);

original
//$items = modDjFlyer::getItems($cat_l,$ordering);
change
$items = (new modDjFlyer)->getItems($cat_l,$ordering);

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

More
4 years 11 months ago #5832 by marcin
marcin replied the topic: Error Non-static method modDjFlyer in home page
Hello,

Thank you for sharing this info.

Regards,
Marcin

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

Time to create page: 0.224 seconds

INDICO S.C.

ul. Wałowa 10/3, 84-200 Wejherowo, registered in Centralna Ewidencja i Informacja o Działalnosci Gospodarczej
NIP/VATID: PL5882424318

Copyright © 2009-2018 Joomla-Monster.com All rights reserved.

Joomla-Monster.com and this site is not affiliated with or endorsed by The Joomla! Project™. Any products and services provided through this site are not supported or warrantied by The Joomla! Project or Open Source Matters, Inc. Use of the Joomla!® name, symbol, logo and related trademarks is permitted under a limited license granted by Open Source Matters, Inc.