Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ProStats for PHP 7.2
#1
I have changed my host PHP version from 5.6 to 7.2 because of (End of life), but ProStats doesn't work with PHP 7 and return much errors.

Please some one help to upgrade this useful plugin

Thank you so much Heart

Link:
https://community.mybb.com/mods.php?acti...ker&pid=59
https://community.mybb.com/mods.php?acti...59&bid=179
Reply
#2
The author of the plugin still seems to visit the forum sometimes. Hopefully the plugin will be updated.
Plugin Count: I lost count.
Public Plugins are available here.
Official GitHub.
Please do not PM me for support unless asked to.
Reply
#3
This fix some of the errors, but not sure is safe and correct way:

Quote:If you have a recent version of PHP upon installation on your index page you will get an error:
Illegal string offset 'Latest_posts' on line 1247, 1253, 1258, 1263, 1268


There is an easy fix for this:
On line 1236 replace:
$active_cells = "";
By:
$active_cells = array("foo" => "bar","bar" => "foo");
Reply
#4
(03-02-2019, 11:55 PM)halber Wrote: I have changed my host PHP version from 5.6 to 7.2 because of (End of life), but ProStats doesn't work with PHP 7 and return much errors.

Please some one help to upgrade this useful plugin  

Thank you so much Heart

Link:
https://community.mybb.com/mods.php?acti...ker&pid=59
https://community.mybb.com/mods.php?acti...59&bid=179

Try this:

http://s000.tinyupload.com/index.php?fil...4330228238 * forgot to remove extra prostats file in main upload directory

http://s000.tinyupload.com/index.php?fil...3258552267 * php 7.2 fixes, also  reply count added, also datetime correction

Or:

https://github.com/vintagedaddyo/MyBB_Plugin-Prostats


Preview on MyBB 1.8.20, PHP 7.2.4, MySQLi 5.7.21:

[Image: 2egcp3k.png]


https://community.mybb.com/mods.php?acti...w&pid=1232
MyBB Themes Team - Making more professional themes by the hour. (Retired)
My Mods | Offer me a coffee!
Reply
#5
@vintagedaddyo Thank you
Reply
#6
(03-08-2019, 09:21 AM)halber Wrote: @vintagedaddyo Thank you

No worries, glad it may have helped. Smile
MyBB Themes Team - Making more professional themes by the hour. (Retired)
My Mods | Offer me a coffee!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)