Support Forum

Something gone wrong @profile options

GS Golden Sharks
Golden Sharks
Member

What just happened here? I think it causes all my new wordpress users having nickname00 where nickname is your login name and 00 are as far as I investigated random two numbers.

33 Answers

New Answer

IK Ike
Ike
Member

Hey Robert,

While this is the first time I’ve heard of the ’00’ after user names, this is a problem we’ve encountered and fixed for the next version.

Are you happy making a small code change? If so, please nip over to This Thread and see if the fix works for you..

GS Golden Sharks
Golden Sharks
Member

Adding “include_once(ABSPATH.’wp-admin/includes/plugin.php’);” to anywhere cause 4 extra errors above actual error

Warning: Division by zero in /home4/goldenshark/public_html/wp-content/plugins/simple-press/sp-startup/sp-load-admin.php on line 8

Warning: Division by zero in /home4/goldenshark/public_html/wp-content/plugins/simple-press/sp-startup/sp-load-admin.php on line 8

Warning: include_once(0php’): failed to open stream: No such file or directory in /home4/goldenshark/public_html/wp-content/plugins/simple-press/sp-startup/sp-load-admin.php on line 8

Warning: include_once(): Failed opening ‘0php’’ for inclusion (include_path=’.:/opt/php54/lib/php’) in /home4/goldenshark/public_html/wp-content/plugins/simple-press/sp-startup/sp-load-admin.php on line 8

IK Ike
Ike
Member

Did you add it as Steve outlined in Post #3?

Will also add, they are warnings not errors. If you’ve added the line as mentioned above can you then load the profile panel properly?

GS Golden Sharks
Golden Sharks
Member

Unfortunately it didn’t help. Error presist unchanged.

YS Yellow Swordfish
Yellow Swordfish
Member

Could be several things.

What tool did you use to edit the code? It MUST be a plain text editor NOT a Word Processor.

Did you put the line of code INSIDE php tags. If outside that will blow things up.

Did you leave some empty lines at the top of a file before the opening php tag. That too can cause problems.

Any of the above?

GS Golden Sharks
Golden Sharks
Member

I’m using notepadd++
I’ve just added include above line 309 as in the example. 

include_once(ABSPATH.‘wp-admin/includes/plugin.php’);

if (($mode == 3 && !is_plugin_active(‘buddypress/bp-loader.php’))|| ($mode == 6 && !is_plugin_active(‘mingle/mingle.php’))) {

 

whole file is in php inside one php tag, how could I insert something out of it while editing some line from the insides

IK Ike
Ike
Member

I’m not sure whether it’s just because you’ve pasted the code in there without using the syntax highligter or because you’ve copied out the code from the fix post without using the ‘view raw code’ button on the highlighted code, but the single quotes in that are definitely rich text and not plain.

GS Golden Sharks
Golden Sharks
Member

Now what I did, I’ve copied this part of code from the file, pasted into notepad.exe and copied back

include_once(ABSPATH.’wp-admin/includes/plugin.php’);    if (($mode == 3 && !is_plugin_active(‘buddypress/bp-loader.php’)) || ($mode == 6 && !is_plugin_active(‘mingle/mingle.php’))) {        $mode = 1;    }

It worked – the error is gone and profle tab is functionality again but I’m still having problem with thise numbers added to usernames… Let me show you

 

Edit: I fixed it! I’ve deleted the buddypress folder from my folder theme (I deleted buddypress long time ago but something left after deleting it) – it helped! All nicknames back to normal 🙂

IK Ike
Ike
Member

Good news.. Never seen the issue before and also not sure what the leftover buddypress content was and what impact it would have, but useful to know!

GS Golden Sharks
Golden Sharks
Member

Let me tell you just to know.
/themes/mytheme/buddypress
was 3 folders with other files and subfolders inside (nvm-) basicly it were:
forums, groups and members

YS Yellow Swordfish
Yellow Swordfish
Member

Afraid this means little to me but hopefully @mr-papa – who knows more about BP than me – might find the information pertinent. Thanks.

MP Mr Papa
Mr Papa
Member

sorry lost… post 10 says was fixed?  is there still an issue?

GS Golden Sharks
Golden Sharks
Member

Issue came back!

Again to my new users usernames two random numbers  are added… And error in profile options is also back.
Fatal error: Call to undefined function is_plugin_active() in /home4/goldenshark/public_html/wp-content/plugins/simple-press/admin/panel-profiles/forms/spa-profiles-options-form.php on line 71

sp api common display under line 309 is at it was when it was fine so eddited like mentioned ‘post #3’

include_once(ABSPATH.’wp-admin/includes/plugin.php’);
if (($mod…………

IK Ike
Ike
Member

So are you saying that somehow the change was reverted and you re-fixed it?

If so, what changed? Was something updated? If the 00 on the end of usernames was the result of something ‘left behind’ by a BuddyPress removal, is it possible that something updated and put these folders back? Or is it possible you have some custom code maybe a hook that’s causing problems?