Support Forum
Yehonal said
Ok thanks @yellow-swordfishMeanwhile 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?
YELLOW
SWORDFISH
|
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?
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...
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?
Visit Cruise Talk Central and Mr Papa's World
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 🙂
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...
Visit Cruise Talk Central and Mr Papa's World
1 Guest(s)