Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: [SOLVED] DT_MyScript Error: Deprecated: Methods with the same name as their class...

[SOLVED] DT_MyScript Error: Deprecated: Methods with the same name as their class... 7 years 1 week ago #26897

  • hoomank
  • hoomank's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 38
  • Thank you received: 0
Hello

I am using PHP7 and the latest DT_Register (3.2.1) on Joomla 3.7.2

I downloaded the latest version of MY Script for DT_Register but got the following error on my home page:

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; plgdtregistermyscript has a deprecated constructor in /var/www/html/plugins/dtregister/myscript/myscript.php on line 18

Can you you let us know when this will be fixed?

Thanks

Hooman

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

Last Edit: by nathan.dth.

DT_MyScript Error: Deprecated: Methods with the same name as their class will not be constructors .. 7 years 1 week ago #26899

  • nathan.dth
  • nathan.dth's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 1857
  • Karma: 19
  • Thank you received: 218
This isn't an error and wouldn't show if you turned down (or off) your error reporting settings, but you can make this change...

In the myscript.php file that is noted in this deprecated warning, change:
function plgdtregistermyscript ( &$subject, $config)

to...
function __construct($subject,$config)

We will update the package for this change.

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

Nathan is no longer affiliated with DTH since the recent acquisition. You can connect with him and get any type of Joomla website help at www.JoomlaEmployee.com .
  • Page:
  • 1
Time to create page: 0.135 seconds