1

Topic: Deprecated functions

I finally updated to Drupal 7.54 and am getting this error:
Deprecated function: Methods with the same name as their class will not be constructors in a future version of PHP; PasswordHash has a deprecated constructor in require() (line 8 of D:\Websites\sewbrec\sewbrecord.org.uk\www\sites\all\modules\iform_mobile_auth\iform_mobile_auth.module).

Presumably this is in hand?

I am pretty sure I am up-to-date with the Indicia source code, but it is always possible that I have missed something!
Dave

Dave Slade
Senior IT & Records Officer,
15 Talbot Road, Talbot Green, Pontyclun, CF72 8AD
www.sewbrec.org.uk, www.sewbrecord.org.uk

2 (edited by DaveSlade 16-05-2017 09:29:18)

Re: Deprecated functions

Since the error indicates that the use of the same name for a class and a function is to be removed I have made the error message go away by:
1) In PasswordHash.php, line 33, change the function name to PasswordHash_FN,
2) update iform_mobile_auth.module, lines 1179 and 1191 to reflect this change.

Hopefully my 'correction' has not broken anything else!
Dave

Dave Slade
Senior IT & Records Officer,
15 Talbot Road, Talbot Green, Pontyclun, CF72 8AD
www.sewbrec.org.uk, www.sewbrecord.org.uk

3 (edited by DaveSlade 22-05-2017 14:09:57)

Re: Deprecated functions

In fact don't update iform_mobile_auth.module lines 1179 and 1191 - these appear to refer to the object not the function. My earlier 'correction' did indeed break something!

Dave Slade
Senior IT & Records Officer,
15 Talbot Road, Talbot Green, Pontyclun, CF72 8AD
www.sewbrec.org.uk, www.sewbrecord.org.uk

4

Re: Deprecated functions

Hi

I can see a fix for this has been proposed in the develop branch of the module.
https://github.com/Indicia-Team/drupal- … 506d6ecc04

Jim Bacon.