MyBB Community Forums
(this will throw an Error in a future version of PHP) - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: (this will throw an Error in a future version of PHP) (/thread-219379.html)



(this will throw an Error in a future version of PHP) - Spooking - 2018-08-23

So I installed a few plugins and had no problems. I downloaded like 2 plugins and I get this RIGHT ABOVE my Admin CP:

https://imgur.com/mtr212n

Someone help? Perhaps @Wires or @Serpius


RE: (this will throw an Error in a future version of PHP) - Wires - 2018-08-23

Please paste the contents of../inc/plugins/viewgroups.php


RE: (this will throw an Error in a future version of PHP) - .m. - 2018-08-23

look around line 36 of the plugin file viewgroups.php
if(THIS_SCRIPT == 'index.php')
change it like below & check if it fixes referred issue
if(defined("THIS_SCRIPT") && THIS_SCRIPT == 'index.php')

Note: php files should be saved with utf-8 encoding without Byte Order Mark.
in general, we use editor like Notepad++ or file editor at web host panel to edit the files.


RE: (this will throw an Error in a future version of PHP) - Spooking - 2018-08-23

(2018-08-23, 01:44 AM)Wires Wrote: Please paste the contents of../inc/plugins/viewgroups.php

sorry if i sound stupid, but what do you mean by that?


RE: (this will throw an Error in a future version of PHP) - Wires - 2018-08-23

(2018-08-23, 04:29 AM)Spooking Wrote:
(2018-08-23, 01:44 AM)Wires Wrote: Please paste the contents of../inc/plugins/viewgroups.php

sorry if i sound stupid, but what do you mean by that?

I meant paste the code. No worries though, try .m.'s fix first Smile


RE: (this will throw an Error in a future version of PHP) - Spooking - 2018-08-23

(2018-08-23, 04:36 AM)Wires Wrote:
(2018-08-23, 04:29 AM)Spooking Wrote:
(2018-08-23, 01:44 AM)Wires Wrote: Please paste the contents of../inc/plugins/viewgroups.php

sorry if i sound stupid, but what do you mean by that?

I meant paste the code. No worries though, try .m.'s fix first Smile

ok i am about to screenshare you on discord, may you run me through it? i also need assistance on how to upgrade my forum, again, im sorry if i cant do simply work.

(2018-08-23, 04:36 AM)Wires Wrote:
(2018-08-23, 04:29 AM)Spooking Wrote:
(2018-08-23, 01:44 AM)Wires Wrote: Please paste the contents of../inc/plugins/viewgroups.php

sorry if i sound stupid, but what do you mean by that?

I meant paste the code. No worries though, try .m.'s fix first Smile

Wait I got it! Apparently I was running MyBB v1.8.15, so all i did was update my MyBB version and it worked. thank you so much, however!