Textpattern CMS support forum

You are not logged in. Register | Login | Help

#41 2019-03-09 10:57:28

whocarez
Plugin Author
From: Germany/Ukraine
Registered: 2007-10-08
Posts: 250
Website

Re: smd_fuzzy_find: making search results less precise

Hi Stef,
smd_fuzzy_find and also smd_lib use a deprecated method in php 7.x.

smd_fuzzy_find -> 8192: Methods with the same name as their class will not be constructors in a future version of PHP;
smd_lib -> 8192: Methods with the same name as their class will not be constructors in a future version of PHP; smd_MLP has a deprecated constructor on line 4

For smd_fuzzy_find I could resolve this problem by changing class smd_FuzzyFind { to class __construct {. For the library it isn’t possible to do that in this manner. smd_lib is also used in smd_gallery. Is there any “quick” solution?

Offline

#42 2019-03-09 15:48:25

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 8,566
Website

Re: smd_fuzzy_find: making search results less precise

whocarez wrote #316926:

smd_fuzzy_find and also smd_lib use a deprecated method in php 7.x.

Thanks for catching these. I’ve fixed both in the GitHub repos:

If you’re comfortable copying the code blocks from those files as-is over your existing plugin code, great. If not, I’ll be bundling up official .txt file packages later today, with luck.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#43 2019-03-09 16:05:17

whocarez
Plugin Author
From: Germany/Ukraine
Registered: 2007-10-08
Posts: 250
Website

Re: smd_fuzzy_find: making search results less precise

Thanks! It works. The notice disappeared and smd_gallery and smd_fuzzy_find doing there job!

Offline

Board footer

Powered by FluxBB