I tried a fix I found elsewhere but it hasn't seemed to work
I get the following errors at the top of the forum when uploading the prostats plugin
The following warnings occurred:
Warning [2] Illegal string offset 'Latest_posts' - Line: 1247 - File: inc/plugins/prostats.php PHP 7.1.25 (Linux)
File
Line
Function/inc/plugins/prostats.php
1247
errorHandler->error
/inc/plugins/prostats.php
1837
ps_GetNewestPosts
/inc/plugins/prostats.php
1130
ps_MakeTable
/inc/class_plugins.php
142
prostats_run_index
/index.php
23
pluginSystem->run_hooks
Warning [2] Illegal string offset 'Date' - Line: 1252 - File: inc/plugins/prostats.php PHP 7.1.25 (Linux)
File
Line
Function/inc/plugins/prostats.php
1252
errorHandler->error
/inc/plugins/prostats.php
1837
ps_GetNewestPosts
/inc/plugins/prostats.php
1130
ps_MakeTable
/inc/class_plugins.php
142
prostats_run_index
/index.php
23
pluginSystem->run_hooks
Warning [2] Illegal string offset 'Starter' - Line: 1257 - File: inc/plugins/prostats.php PHP 7.1.25 (Linux)
File
Line
Function/inc/plugins/prostats.php
1257
errorHandler->error
/inc/plugins/prostats.php
1837
ps_GetNewestPosts
/inc/plugins/prostats.php
1130
ps_MakeTable
/inc/class_plugins.php
142
prostats_run_index
/index.php
23
pluginSystem->run_hooks
Warning [2] Illegal string offset 'Last_sender' - Line: 1262 - File: inc/plugins/prostats.php PHP 7.1.25 (Linux)
File
Line
Function/inc/plugins/prostats.php
1262
errorHandler->error
/inc/plugins/prostats.php
1837
ps_GetNewestPosts
/inc/plugins/prostats.php
1130
ps_MakeTable
/inc/class_plugins.php
142
prostats_run_index
/index.php
23
pluginSystem->run_hooks
Warning [2] Illegal string offset 'Forum' - Line: 1267 - File: inc/plugins/prostats.php PHP 7.1.25 (Linux)
File
Line
Function/inc/plugins/prostats.php
1267
errorHandler->error
/inc/plugins/prostats.php
1837
ps_GetNewestPosts
/inc/plugins/prostats.php
1130
ps_MakeTable
/inc/class_plugins.php
142
prostats_run_index
/index.php
23
pluginSystem->run_hooks
I tried the corrected version, but it still shows.
Well...it shows only two errors about using an array.
in forum:
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
in log:
<error>
<dateline>1546806569</dateline>
<script>inc/plugins/prostats.php</script>
<line>1261</line>
<type>2</type>
<friendly_type>Warning</friendly_type>
<message>Cannot use a scalar value as an array</message>
</error>
<error>
<dateline>1546806569</dateline>
<script>inc/plugins/prostats.php</script>
<line>1271</line>
<type>2</type>
<friendly_type>Warning</friendly_type>
<message>Cannot use a scalar value as an array</message>
</error>
Still not fixed this. That link doesn't work, says I do not have permission to view it.
oh I forgot to add the current list of string issues:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 1814 - File: inc/plugins/prostats.php PHP 7.2.28 (Linux)
File
Line
Function
/inc/plugins/prostats.php
1814
errorHandler->error
/inc/plugins/prostats.php
1130
ps_MakeTable
/inc/class_plugins.php
142
prostats_run_index
/index.php
23
pluginSystem->run_hooks
Warning [2] Use of undefined constant tablespace - assumed 'tablespace' (this will throw an Error in a future version of PHP) - Line: 2 - File: inc/plugins/prostats.php(1434) : eval()'d code PHP 7.2.28 (Linux)
File
Line
Function
/inc/plugins/prostats.php(1434) : eval()'d code
2
errorHandler->error
/inc/plugins/prostats.php
1434
eval
/inc/plugins/prostats.php
1837
ps_GetNewestPosts
/inc/plugins/prostats.php
1130
ps_MakeTable
/inc/class_plugins.php
142
prostats_run_index
/index.php
23
pluginSystem->run_hooks
Warning [2] Use of undefined constant tablespace - assumed 'tablespace' (this will throw an Error in a future version of PHP) - Line: 2 - File: inc/plugins/prostats.php(1536) : eval()'d code PHP 7.2.28 (Linux)
File
Line
Function
/inc/plugins/prostats.php(1536) : eval()'d code
2
errorHandler->error
/inc/plugins/prostats.php
1536
eval
/inc/plugins/prostats.php
1965
ps_GetMostThanks
/inc/plugins/prostats.php
1861
ps_GetExtraData
/inc/plugins/prostats.php
1130
ps_MakeTable
/inc/class_plugins.php
142
prostats_run_index
/index.php
23
pluginSystem->run_hooks
Warning [2] Use of undefined constant tablespace - assumed 'tablespace' (this will throw an Error in a future version of PHP) - Line: 2 - File: inc/plugins/prostats.php(1651) : eval()'d code PHP 7.2.28 (Linux)
File
Line
Function
/inc/plugins/prostats.php(1651) : eval()'d code
2
errorHandler->error
/inc/plugins/prostats.php
1651
eval
/inc/plugins/prostats.php
1967
ps_GetNewMembers
/inc/plugins/prostats.php
1862
ps_GetExtraData
/inc/plugins/prostats.php
1130
ps_MakeTable
/inc/class_plugins.php
142
prostats_run_index
/index.php
23
pluginSystem->run_hooks
Warning [2] Use of undefined constant tablespace - assumed 'tablespace' (this will throw an Error in a future version of PHP) - Line: 2 - File: inc/plugins/prostats.php(1496) : eval()'d code PHP 7.2.28 (Linux)
File
Line
Function
/inc/plugins/prostats.php(1496) : eval()'d code
2
errorHandler->error
/inc/plugins/prostats.php
1496
eval
/inc/plugins/prostats.php
1963
ps_GetMostReplies
/inc/plugins/prostats.php
1880
ps_GetExtraData
/inc/plugins/prostats.php
1130
ps_MakeTable
/inc/class_plugins.php
142
prostats_run_index
/index.php
23
pluginSystem->run_hooks
Warning [2] Use of undefined constant tablespace - assumed 'tablespace' (this will throw an Error in a future version of PHP) - Line: 2 - File: inc/plugins/prostats.php(1723) : eval()'d code PHP 7.2.28 (Linux)
File
Line
Function
/inc/plugins/prostats.php(1723) : eval()'d code
2
errorHandler->error
/inc/plugins/prostats.php
1723
eval
/inc/plugins/prostats.php
1969
ps_GetTopPosters
/inc/plugins/prostats.php
1881
ps_GetExtraData
/inc/plugins/prostats.php
1130
ps_MakeTable
/inc/class_plugins.php
142
prostats_run_index
/index.php
23
pluginSystem->run_hooks
Warning [2] Use of undefined constant tablespace - assumed 'tablespace' (this will throw an Error in a future version of PHP) - Line: 2 - File: inc/plugins/prostats.php(1612) : eval()'d code PHP 7.2.28 (Linux)
File
Line
Function
/inc/plugins/prostats.php(1612) : eval()'d code
2
errorHandler->error
/inc/plugins/prostats.php
1612
eval
/inc/plugins/prostats.php
1966
ps_GetMostViewed
/inc/plugins/prostats.php
1898
ps_GetExtraData
/inc/plugins/prostats.php
1130
ps_MakeTable
/inc/class_plugins.php
142
prostats_run_index
/index.php
23
pluginSystem->run_hooks
Warning [2] Use of undefined constant tablespace - assumed 'tablespace' (this will throw an Error in a future version of PHP) - Line: 2 - File: inc/plugins/prostats.php(1523) : eval()'d code PHP 7.2.28 (Linux)
File
Line
Function
/inc/plugins/prostats.php(1523) : eval()'d code
2
errorHandler->error
/inc/plugins/prostats.php
1523
eval
/inc/plugins/prostats.php
1964
ps_GetMostReputation
/inc/plugins/prostats.php
1899
ps_GetExtraData
/inc/plugins/prostats.php
1130
ps_MakeTable
/inc/class_plugins.php
142
prostats_run_index
/index.php
23
pluginSystem->run_hooks
Warning [2] Use of undefined constant borderwidth - assumed 'borderwidth' (this will throw an Error in a future version of PHP) - Line: 110 - File: inc/plugins/prostats.php(1940) : eval()'d code PHP 7.2.28 (Linux)
File
Line
Function
/inc/plugins/prostats.php(1940) : eval()'d code
110
errorHandler->error
/inc/plugins/prostats.php
1940
eval
/inc/plugins/prostats.php
1130
ps_MakeTable
/inc/class_plugins.php
142
prostats_run_index
/index.php
23
pluginSystem->run_hooks
Warning [2] Use of undefined constant tablespace - assumed 'tablespace' (this will throw an Error in a future version of PHP) - Line: 113 - File: inc/plugins/prostats.php(1940) : eval()'d code PHP 7.2.28 (Linux)
File
Line
Function
/inc/plugins/prostats.php(1940) : eval()'d code
113
errorHandler->error
/inc/plugins/prostats.php
1940
eval
/inc/plugins/prostats.php
1130
ps_MakeTable
/inc/class_plugins.php
142
prostats_run_index
/index.php
23
pluginSystem->run_hooks
(2019-01-06, 07:54 PM)Meow Purrdock Wrote: [ -> ]I tried the corrected version, but it still shows.
Well...it shows only two errors about using an array.
in forum:
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
in log:
<error>
<dateline>1546806569</dateline>
<script>inc/plugins/prostats.php</script>
<line>1261</line>
<type>2</type>
<friendly_type>Warning</friendly_type>
<message>Cannot use a scalar value as an array</message>
</error>
<error>
<dateline>1546806569</dateline>
<script>inc/plugins/prostats.php</script>
<line>1271</line>
<type>2</type>
<friendly_type>Warning</friendly_type>
<message>Cannot use a scalar value as an array</message>
</error>
Are these stopping you from using the plugin in the front-end?
Try the attached file. If it doesn't work I suggest to get rid of that plugin from your forum and server altogether.
I think that's worked. I say think as i'll double check by uploading it on a second site but I think it's worked.
TY Omar G
(2020-03-05, 06:26 PM)Meow Purrdock Wrote: [ -> ]Still not fixed this. That link doesn't work, says I do not have permission to view it.
Oh, yeah,that isbecause my plugins and such are currently not avail here though will it is planned that the will be avail on a site of mine in the near future though not here. Anyhoo, in the meantime you can get it here
https://github.com/vintagedaddyo/MyBB_Plugin-Prostats though it looks like omar already shared a copy of it here while it was not avail nor intended to be so here currently though I did not take the time to see if it is the current files currently found github or a previously shared here variant (as even when a project is hidden as intended staff can still access and view intentionally hidden projects thus further pointing out why a remove/dump/delete or even a lock content feature should be added to the extension site to avoid exactly what just happened, lol, clearly marked as hidden obviously wasn't a viable solution to denote it is intentional thus do not share). Anyhoo, glad you got it sorted.