Strict standards issue #652

Closed
810 opened this Issue May 3, 2012 · 10 comments

Projects

None yet

5 participants

@810
Kunena member
810 commented May 3, 2012

Strict standards: Declaration of JParameter::loadSetupFile() should be compatible with that of JRegistry::loadSetupFile() in C:\wamp\www\j254\libraries\joomla\html\parameter.php on line 512
Strict standards: Declaration of TableKunenaTopics::hit() should be compatible with that of JTable::hit() in C:\wamp\www\j254\administrator\components\com_kunena\libraries\tables\kunenatopics.php on line 117
Strict standards: Non-static method KunenaForum::display() should not be called statically, assuming $this from incompatible context in C:\wamp\www\j254\components\com_kunena\views\user\view.html.php on line 203
Strict standards: Non-static method KunenaForum::display() should not be called statically, assuming $this from incompatible context in C:\wamp\www\j254\components\com_kunena\views\user\view.html.php on line 264
Strict standards: Non-static method KunenaForum::display() should not be called statically, assuming $this from incompatible context in C:\wamp\www\j254\components\com_kunena\views\user\view.html.php on line 248
Strict standards: Non-static method KunenaForum::display() should not be called statically, assuming $this from incompatible context in C:\wamp\www\j254\components\com_kunena\views\user\view.html.php on line 218
Strict standards: Non-static method KunenaForum::display() should not be called statically, assuming $this from incompatible context in C:\wamp\www\j254\components\com_kunena\views\user\view.html.php on line 188
Strict standards: Declaration of KunenaModelSearch::getError() should be compatible with that of JObject::getError() in C:\wamp\www\j254\components\com_kunena\models\search.php on line 294

@xillibit xillibit added a commit to xillibit/Kunena-forum that referenced this issue May 3, 2012
@xillibit xillibit #652 Strict standards issue 71ba390
@mahagr
Kunena member

These are still in there:

Strict standards: Declaration of TableKunenaTopics::hit() should be compatible with that of JTable::hit() in C:\wamp\www\j254\administrator\components\com_kunena\libraries\tables\kunenatopics.php on line 117
Strict standards: Declaration of KunenaModelSearch::getError() should be compatible with that of JObject::getError() in C:\wamp\www\j254\components\com_kunena\models\search.php on line 294

@xillibit
Kunena member

Because in parent class, there a parameter in the method but in Kunena we don't have this parameter but i don't want to add a parameter to a method will be useless.

@mahagr
Kunena member

I'll take a look on these.

@mahagr mahagr added a commit to mahagr/Kunena-Forum that referenced this issue May 5, 2012
@mahagr mahagr Fix remaining strict standards issues in #652 17110fb
@mahagr mahagr closed this May 5, 2012
@Mortti

I can see these in com_kunena_v2.0.0-BETA2-DEV_2012-05-05.zip package at first in backend:

Strict Standards: Declaration of KunenaController::getInstance() should be compatible with that of JController::getInstance() in /home/xxxxxxxxx/public_html/xxxxxxxxx/administrator/components/com_kunena/libraries/controller.php on line 20

Strict Standards: Declaration of JParameter::loadSetupFile() should be compatible with that of JRegistry::loadSetupFile() in /home/xxxxxxxxx/public_html/xxxxxxxxx/libraries/joomla/html/parameter.php on line 512

Are these already fixed...?

@mahagr
Kunena member

Should be, except that we cannot fix the second message unless we drop J1.5 support.

@Mortti

Is this also those kind of:

Strict Standards: is_a(): Deprecated. Please use the instanceof operator in /home/xxxxxxxxx/public_html/xxxxxxxxx/components/com_kunena/views/user/view.html.php on line 142

Same tester package... J! 2.5.4 in frontend profile...

@realityking

That a 5.2 only error but still nice to fix.

@xillibit
Kunena member

It's weird is_a() is deprecated in php 5.x but not since 5.3.x

@realityking

Correct, it was "undeprecated" in 5.3. Personally I still prefer instanceof and it doesn't spit out warnings in 5.2.

@xillibit
Kunena member

@mahagr : i have this one too when i do a preview : Strict standards: Creating default object from empty value in C:\wamp\www\joomla_2.5.4\components\com_kunena\views\topic\view.raw.php on line 21

I don't know what you wanted do with this line 21 ?

@xillibit xillibit added a commit to xillibit/Kunena-forum that referenced this issue May 7, 2012
@xillibit xillibit #652 Strict standards issue (replace is_a() with instanceof ) dc948b2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment