Welcome, Guest
Username: Password: Remember me

TOPIC: [SOLVED] JLoader Strict Standard

JLoader Strict Standard 07 Dec 2016 19:13 #14828

  • liubov
  • liubov's Avatar
  • Offline
  • Elite Member
  • (=) 10 mn and it's ready!
  • Posts: 279
  • Thank you received: 36
  • Karma: 22
Hi Admin,

If I set the Joomla!3.6.4 Error Reporting as 'Developpement', I get this message when i run my component :
Strict standards: Declaration of JbreedingClassLoader::registerAlias() should be compatible with JLoader::registerAlias($alias, $original, $version = false) in /var/www/html/joomla360/administrator/components/com_jbreeding/classes/loader.php on line 0
For the moment, it's not a php fatal error, but I am a Joomla!3.7-dev beta tester, and this error clearly failed as Fatal Error with this version.

I guess it comes from the missmatch parameters sent, 'not compatible' it says ;p
is it possible to have a look about that...

thx
Last Edit: 07 Dec 2016 19:21 by liubov.
The administrator has disabled public write access.

JLoader Strict Standard 07 Dec 2016 19:21 #14829

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Strange.
For me this is fixed since Joomla 3.6.4 has been released.
I remember that the declaration changed in the JLoader class.

check the file
classes/loader.php

For me, I have :
public static function registerAlias($alias, $original, $version = false)
Which seems to be correct.

And you ?
Coding is now a piece of cake
The administrator has disabled public write access.
The following user(s) said Thank You: liubov

JLoader Strict Standard 07 Dec 2016 19:34 #14830

  • liubov
  • liubov's Avatar
  • Offline
  • Elite Member
  • (=) 10 mn and it's ready!
  • Posts: 279
  • Thank you received: 36
  • Karma: 22
public static function registerAlias($alias, $original)

Ok, it's my fault, I didn't updated the classes/loader.php. Because I have now many many custom code, I have to follow the Jcook-sources and update files manualy ...

Very sorry !
Last Edit: 07 Dec 2016 19:37 by liubov.
The administrator has disabled public write access.

JLoader Strict Standard 07 Dec 2016 19:39 #14831

  • liubov
  • liubov's Avatar
  • Offline
  • Elite Member
  • (=) 10 mn and it's ready!
  • Posts: 279
  • Thank you received: 36
  • Karma: 22
No php error with the good file :)
work fine now !
The administrator has disabled public write access.

JLoader Strict Standard 07 Dec 2016 20:02 #14832

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Fine.
Coding is now a piece of cake
The administrator has disabled public write access.
Time to create page: 0.058 seconds

Get Started