MyBB Community Forums

Full Version: ProStats for PHP 7.2
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
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
The author of the plugin still seems to visit the forum sometimes. Hopefully the plugin will be updated.
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");
(2019-03-02, 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
@vintagedaddyo Thank you
(2019-03-08, 09:21 AM)halber Wrote: [ -> ]@vintagedaddyo Thank you

No worries, glad it may have helped. Smile
Hi all ;D

I used the php version 7.2.19, this version make warnings message on the top from forum. Now my question,

@vintagedaddyo Which php version is the plugin to fixed ?

Greetings

Gerriet
Posting to come back later
Hello all ;D

Was my fall .. the problem is solved .. thanks for good support ;D

Have a nice Day ;D
Hello friends...
I did the above suggested changes and still get error messages:

http://www.bouzoukigreek.com/forum/

Have a look and let me know if you have any thoughts.

Thanks
Pages: 1 2