Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Saving profile not working
Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jun 13, 2017 - 8:38 am

Yehonal said
Ok thanks @yellow-swordfish 

Meanwhile is there a way to restore original meta-values for core metadata?  

If you mean the profile menus and tabs then forum admin > toolbox > housekeeping has a task to rebuild them.

Could we take your issue back to your original thread? Less confusing that way. And have you investigated the mod_security question?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Yehonal
Member
sp_UserOfflineSmall Offline
Jun 13, 2017 - 8:53 am

It's useless to continue there since i ve the same problem of mike.

I thought it was something wrong with ajax call security since it returned empty strings. But it just try to send a translated form name that is not recognized by the script (but without any php errors).

I tried to rebuild profile tabs before but unsuccesfully. Are you sure that method can restore slugs?

Avatar
Mike Miler
Member
sp_UserOfflineSmall Offline
Jun 13, 2017 - 9:31 am

The toolbox didnt help in my case...

I fixed the issue by replacing the strings in the db. Here what I did:

1. I customized the following entry in table "sfmeta":
meta_type: profile
meta_key: tabs
There we have a serialized entry. To edit the slugs, I used this tool (do not just replace string in the serialized entry. It will break then): 
http://interconnectit.com/prod.....databases/
Just upload this tool to the root directory of your website and navigate to the directory in your browser.

2. Check the url in the form-tag of your website and search with the tool above for the string after "form=". This is the string to be replaced.

3. I got the right strings from the file /wp-content/plugins/simple-press/forum/profile/ajax/sp-ajax-profile-save.php. Here you see the correct slugs after the "case: ". Copy the depending string to the replacement field at the tool.

4. Select only the table "sfmeta" for the replacements and make a dry run (nothing will be replace). There should be only one result. Now you can check if the replacement was correct. If it is correct, you can run the live run.

5. Repeat this replacement for every string (step 2-4).

6. Delete this tool again! It is public and everyone can change everything in the database if you keep it online!

7. Make a copy of the db entry. If it breaks after the next update, you can replace the serialized string if there are no changes because of the update.

As a long term solution we could make a php functions to unserialize the string, search and replace the depending slugs and overwrite it again. And maybe there is even a hook to automate this. For sure not the cleanest solution. But until we know where this issue comes from this would help...

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jun 13, 2017 - 9:50 am

Yes, ran across this once before...  we were not able to replicate it at the time, but the user clearly had the problem...  we could go through the same sequence of translating tabs/menus with same strings and not have the issue...

here is link to how we could correct on his site: https://simple-press.com/suppo.....3/#p165207

so perhaps we could get more info here to track down...   like that user, are you translating the sp admin?  by that I mean, do you have translations enabled and are you showing the admin in the translated language?  if the sp admin is in English, can you check forum - integration - language translations and see if the sp admin translation is shown as being there?

Avatar
Mike Miler
Member
sp_UserOfflineSmall Offline
Jun 13, 2017 - 10:12 am

Yes I use the admin translations. But I checked the po files and could not find for e.g. "account-settings" in there. Maybe I just did not find it (?). Here a screenshot of the translation page.Screenshot-2017-06-13-16.10.58.pngImage Enlarger

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jun 13, 2017 - 11:08 am

Wow - someone had the same problem 4+ years ago!

Those strings are not in the normal translations files as they are available to translate on the forum admin > profiles > tabs and menus admin panel. But NOT the slugs. And therein lies the puzzle.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jun 13, 2017 - 11:14 am

I might be on to something here... will keep you informed.

Can we confirm that you translated the profile tab and menu names in the forum admin?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mike Miler
Member
sp_UserOfflineSmall Offline
Jun 13, 2017 - 11:52 am

Sounds good 🙂

I am not sure what you mean with "you translated the profile tab and menu names". I think the translations were made somewhere else. But I attached a screenshot from the menu item you wrote.

I did not set up the forum. My client just came to me because of this issue. So I am not too much into the whole system.

Would be great if you could figure out the issue 🙂

Screenshot-2017-06-13-17.46.09.pngImage Enlarger

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jun 13, 2017 - 2:00 pm

Yes - you can see those labels are no longer in English and have been translated. And that means I do know what the problem is. Just amazed that this has not come up before now.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jun 13, 2017 - 10:27 pm

hmmm... @yellow-swordfish didnt let me know what the issue was, so we likely need to wait until he returns tomorrow...  I am still unable to replicate the issue...

you say you are using the sp admin translations?  based on the image, cannot tell.. do so a few words translated but guessing the german admin translation is incomplete since many are not..

for the poster in the link I gave, the key was having the admin translations loaded, but not having the admin actually translated..  sounds like you dont have same situation...

forum - toolbox - housekeeping, when resetting the profile tabs and menus, should reset everything - not sure how its not...  but after doing that, the profile tabs and menus wouldnt be translated... they get translated on forum - profile - profile tabs and menus... they are not in any translation file...

still playing and will come back, but hate to spend a lot of time if @yellow-swordfish already knows the issue...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626