sparkbuilt / lendr

Joomla! 3.0 Component Tutorial Series
73 stars 50 forks source link

PHP strict standards errors #5

Open phasemaster opened 11 years ago

phasemaster commented 11 years ago

The component causes a number of warnings when PHP strict standards are enabled:

Strict Standards: Non-static method LendrHelpersStyle::load() should not be called statically in C:\xampp\htdocs\components\com_lendr\lendr.php on line 18

Strict Standards: Non-static method LendrHelpersView::load() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\components\com_lendr\views\profile\html.php on line 13

Strict Standards: Non-static method LendrHelpersView::load() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\components\com_lendr\views\profile\html.php on line 36
davidhurley commented 11 years ago

Ah, didn't see those. I'll need to change those to instantiated calls instead. Thanks.

mycermy commented 11 years ago

how to clear this error

Strict Standards: Non-static method LendrHelpersStyle::load() should not be called statically in D:\seed\seedIntra\components\com_lendr\lendr.php on line 18

Strict Standards: Non-static method LendrHelpersView::load() should not be called statically, assuming $this from incompatible context in D:\seed\seedIntra\components\com_lendr\views\profile\html.php on line 13

Strict Standards: Non-static method LendrHelpersView::load() should not be called statically, assuming $this from incompatible context in D:\seed\seedIntra\components\com_lendr\views\profile\html.php on line 36

mycermy commented 11 years ago

the error already clear. i just refer to this forum. http://forum.joomla.org/viewtopic.php?t=271244

Put this right after "define( '_JEXEC', 1 );" on index.php: Code: error_reporting( E_ERROR | E_PARSE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING );

You may need to do that on your administrator folder too.