Support Forum

Profil tab gone…

26 Answers

New Answer

MP Mr Papa
Mr Papa
Member

worth checking the error logs, but would be surprised…  since we check for existence of the form first, no error will get generated…

a blank screen does not make much sense either…  which makes it look like your db is screwed up…  the entry for the tabs I mean…  can you look at the sfmeta?  does it still contain the info I gave you?  or have you already tried a reset?  seems like the reset might be messing it up…

so lets dump a bit more code…  a little earlier in the same file, around line 72, find this line of code:

    $tabs = sp_profile_get_tabs();

after it please add

ashow($tabs);

and lets see what it contains and see if the serialized array is proper…

MP Mr Papa
Mr Papa
Member

it should essentially just be echoing out what is the sfmeta entry… so can you echo back from your db, what you have there?

BS briot stephane
briot stephane
Member

This is the content for sfmeta entry > meta_type > profile 

a:5:{i:0;a:5:{s:4:"name";s:7:"Profile";s:4:"slug";s:7:"profile";s:7:"display";i:1;s:4:"auth";s:0:"";s:5:"menus";a:7:{i:0;a:5:{s:4:"name";s:8:"Overview";s:4:"slug";s:8:"overview";s:4:"form";s:106:"/var/www/clients/client6/web8/web/wp-content/plugins/simple-press/forum/profile/forms/sp-form-overview.php";s:7:"display";i:1;s:4:"auth";s:0:"";}i:1;a:5:{s:4:"name";s:12:"Edit Profile";s:4:"slug";s:12:"edit-profile";s:4:"form";s:105:"/var/www/clients/client6/web8/web/wp-content/plugins/simple-press/forum/profile/forms/sp-form-profile.php";s:7:"display";i:1;s:4:"auth";s:0:"";}i:2;a:5:{s:4:"name";s:15:"Edit Identities";s:4:"slug";s:15:"edit-identities";s:4:"form";s:108:"/var/www/clients/client6/web8/web/wp-content/plugins/simple-press/forum/profile/forms/sp-form-identities.php";s:7:"display";i:1;s:4:"auth";s:0:"";}i:3;a:5:{s:4:"name";s:11:"Edit Avatar";s:4:"slug";s:11:"edit-avatar";s:4:"form";s:104:"/var/www/clients/client6/web8/web/wp-content/plugins/simple-press/forum/profile/forms/sp-form-avatar.php";s:7:"display";i:1;s:4:"auth";s:0:"";}i:4;a:5:{s:4:"name";s:14:"Edit Signature";s:4:"slug";s:14:"edit-signature";s:4:"form";s:107:"/var/www/clients/client6/web8/web/wp-content/plugins/simple-press/forum/profile/forms/sp-form-signature.php";s:7:"display";i:1;s:4:"auth";s:14:"use_signatures";}i:5;a:5:{s:4:"name";s:11:"Edit Photos";s:4:"slug";s:11:"edit-photos";s:4:"form";s:104:"/var/www/clients/client6/web8/web/wp-content/plugins/simple-press/forum/profile/forms/sp-form-photos.php";s:7:"display";i:1;s:4:"auth";s:0:"";}i:6;a:5:{s:4:"name";s:16:"Account Settings";s:4:"slug";s:16:"account-settings";s:4:"form";s:105:"/var/www/clients/client6/web8/web/wp-content/plugins/simple-press/forum/profile/forms/sp-form-account.php";s:7:"display";i:1;s:4:"auth";s:0:"";}}}i:1;a:5:{s:4:"name";s:7:"Options";s:4:"slug";s:7:"options";s:7:"display";i:1;s:4:"auth";s:0:"";s:5:"menus";a:3:{i:0;a:5:{s:4:"name";s:19:"Edit Global Options";s:4:"slug";s:19:"edit-global-options";s:4:"form";s:112:"/var/www/clients/client6/web8/web/wp-content/plugins/simple-press/forum/profile/forms/sp-form-global-options.php";s:7:"display";i:1;s:4:"auth";s:0:"";}i:1;a:5:{s:4:"name";s:20:"Edit Posting Options";s:4:"slug";s:20:"edit-posting-options";s:4:"form";s:113:"/var/www/clients/client6/web8/web/wp-content/plugins/simple-press/forum/profile/forms/sp-form-posting-options.php";s:7:"display";i:1;s:4:"auth";s:0:"";}i:2;a:5:{s:4:"name";s:20:"Edit Display Options";s:4:"slug";s:20:"edit-display-options";s:4:"form";s:113:"/var/www/clients/client6/web8/web/wp-content/plugins/simple-press/forum/profile/forms/sp-form-display-options.php";s:7:"display";i:1;s:4:"auth";s:0:"";}}}i:2;a:5:{s:4:"name";s:10:"Usergroups";s:4:"slug";s:10:"usergroups";s:7:"display";i:1;s:4:"auth";s:0:"";s:5:"menus";a:1:{i:0;a:5:{s:4:"name";s:16:"Show Memberships";s:4:"slug";s:16:"show-memberships";s:4:"form";s:109:"/var/www/clients/client6/web8/web/wp-content/plugins/simple-press/forum/profile/forms/sp-form-memberships.php";s:7:"display";i:1;s:4:"auth";s:0:"";}}}i:3;a:5:{s:4:"name";s:11:"Permissions";s:4:"slug";s:11:"permissions";s:7:"display";i:1;s:4:"auth";s:0:"";s:5:"menus";a:1:{i:0;a:5:{s:4:"name";s:16:"Show Permissions";s:4:"slug";s:16:"show-permissions";s:4:"form";s:109:"/var/www/clients/client6/web8/web/wp-content/plugins/simple-press/forum/profile/forms/sp-form-permissions.php";s:7:"display";i:1;s:4:"auth";s:0:"";}}}i:4;a:5:{s:4:"name";s:11:"Abonnements";s:4:"slug";s:11:"abonnements";s:7:"display";i:1;s:4:"auth";s:0:"";s:5:"menus";a:1:{i:0;a:5:{s:4:"name";s:21:"Options d'Abonnement";s:4:"slug";s:19:"options-dabonnement";s:4:"form";s:125:"/var/www/clients/client6/web8/web/wp-content/sp-resources/forum-plugins/subscriptions/forms/sp-subscriptions-options-form.php";s:7:"display";i:1;s:4:"auth";s:0:"";}}}}
YS Yellow Swordfish
Yellow Swordfish
Member

At a quck glance I think this looks OK but I will await Steve’s (Mr Papa) expert judgement – only he is away for another day.
This might come down to an Ajax issue however.

MP Mr Papa
Mr Papa
Member

No, quick glance and I think it’s the single quote in Options d’Abonnement,

Perhaps an escaping issue?

BS briot stephane
briot stephane
Member

Nope… I change “Options d’Abonnement” to “Option abonnement”. Nothing better :/

MP Mr Papa
Mr Papa
Member

Not sure what you did, but potentially not easy to change. You cannot just edit the string in the db. It’s in a serialized array so you have to change some array indices too. And it would explain why no tab is loading.

But in airport getting ready to get on plane so can’t really look now and may be hard on phone later too. Worst case, Andy can help fix the array indices tomorrow morning to see if that is the issue.

What does that string mean? That is, which tab or menu is that? Is it from translation file?

BS briot stephane
briot stephane
Member

Ok Guys ((: 

I disable the subs.mo in the folder language. 

And now, the profile work’s.

So, you right, the problem coming from the translation file. 

Hard to find it, but you did it. 

I will see how can i fix it. 

Thank’s again for your help.

YS Yellow Swordfish
Yellow Swordfish
Member

You could edit the data to correct this but it is a bit scary smile

If you located this part of that long string:

{s:4:"name";s:21:"Options d'Abonnement";

and changed it to

{s:4:"name";s:19:"Options dAbonnement";

then it should work. The key is that number just before the text string. It has to equal the length of the text that follow in the double quotes.

But that would just be a temporary fix of course. We will investigate a fix for this and try and get something into the next update.

BS briot stephane
briot stephane
Member

I simply regenerate the .mo file with poedit, upload, and it’s work (: 

The problem is coming from the french translation. 

If i download the .mo from the translate site, it doesn’t work.

If i download the .po file and generate the .mo file with poedit, it’s ok. 

YS Yellow Swordfish
Yellow Swordfish
Member

Curious. Sounds like a GlotPress issue then. We will try and look into that and maybe alert the GlotPress team. Thanks for the find.
And glad to hear all is now well. But odd that nobody else has found this issue….