Hey!
Love the plugin and use it in all my sites.
Would be great to see that notice fixed for PHP 7 Support.
Greetings
derRALF
<b>Deprecated</b>
: Methods with the same name as their class will not be constructors in a future version of PHP; AjaxThumbnailRebuild has a deprecated constructor in
<b>/home/tusko/http_pub/dev.natxoz.com/eweb/wp-content/plugins/ajax-thumbnail-rebuild/ajax-thumbnail-rebuild.php</b>
on line
<b>26</b>
The same notice on php7.0
In an earlier edit I said it was just to rename the class name from line 26, but it is not that easy. I played around a bit and the following code is the updated “ajax-thumbnail-rebuild.php”, which works the way it should and does not throw the error message.
I wrote a blog post on the changes I made and offer a download of an updated plugin file:
https://sajonara.de/2016/03/13/wordpress-plugin-ajaxthumbnailrebuild-deprecated-nachricht-entfernen/ (German)
As my text is in German and I have no other English content on my page, just for convience use Google translate to access, if you do not understand German. Thx.
https://translate.google.com/translate?sl=de&tl=en&js=y&prev=_t&hl=en&ie=UTF-8&u=https%3A%2F%2Fsajonara.de%2F2016%2F03%2F13%2Fwordpress-plugin-ajaxthumbnailrebuild-deprecated-nachricht-entfernen%2F&edit-text= (English via Google Translate)
+1 Came here to note the same thing.
@sajonara Thanks a lot for sharing the fix as a easy to install ZIP. +1
Thanks a lot.
What is the roadmap for getting this integrated into the official code base to be fully PHP7-compatible?
/wp-content/plugins/ajax-thumbnail-rebuild/ajax-thumbnail-rebuild.php
92 | ERROR | Deprecated PHP4 style constructor are not supported since PHP7