I have no access at the moment to PHP 7, and so am unable to test, verify and/or fix any issues that may or may not work with that version. Until such time as I do it will stay as it is, if someone would like to fix the issues for the benefit of themselves and other users feel free, if they was to contact me via email with the code I would be happy to commit it to the svn and give them credit for the fixes.
Thank you for your answer. I understand. I hope that you’ll be able to test this great version soon :).
Out of curiosity, could you use AMPPS or MAMP to spin up a PHP7 environment for testing?
Based on the feedback of @ajoah, this update to line 1774 technically makes the plugin work in PHP7 :
return ${$all_options['first_order']} . ${$all_options['second_order']} . ${$all_options['third_order']} . ${$all_options['fourth_order']} . ${$all_options['fifth_order']} . ${$all_options['first_order']} . $all_options['seventh_order'] . $promote;
One non-fatal error still exists :
Methods with the same name as their class will not be constructors in a future version of PHP; WPRealtimeSitemap has a deprecated constructor in wp-realtime-sitemap/wp-realtime-sitemap.php on line 32
-
This reply was modified 3 years, 12 months ago by
axlright.
-
This reply was modified 3 years, 12 months ago by
axlright.
-
This reply was modified 3 years, 12 months ago by
axlright. Reason: fix typos
-
This reply was modified 3 years, 12 months ago by
axlright. Reason: fix typos
Likewise, I’m a user of WP Realtime Sitemap and am preparing for an upgrade to PHP7. I’d like to add my vote to an update that is compatible. Thanks in advance!
v1.5.7 now fully works with php 7.
You have @gingalley for providing the php 7 hosting and also myself to thank for this!
If you would like to make a donation, you can do so here : http://goo.gl/mmUuGj
This is entirely optional, but does mean that I am able to spend more time providing support and fixing issues than I would normally as working on this plugin doesn’t pay the bills.