savecontent error!!

Nicky


jacobi22

i understand  :wink:

whats Language is "Login nom"? Norsk?

Nicky



QuoteAdmin Tool AddonFileEditor (see here under DOWNLOADS) -> http://addons.websitebaker.org/pages/en/browse-add-ons.php?id=02D8BA1
Well, I've just changed Loginname into Login-Nom which took all of about 5 seconds and it's showing up in the front-end perfectly. Thanks jacobi !  :-D  :-D


jacobi22

you can change the langauage files with every editor like notepad, notepad++ etc
its also possible online with the Admin Tool AddonFileEditor (see here under DOWNLOADS) -> http://addons.websitebaker.org/pages/en/browse-add-ons.php?id=02D8BA1

Nicky

Hi jacobi22,

So I guess then that I'll have to leave my intended language-mod, "as-is".

Nevertheless, many thanks for your research on this subject though.

Regards,

Nicky 

jacobi22

the file tool_save.php is a part of the module (vers 0.91)
directory is /module/languageedit

but i found another point.
every php.ini has a setting called max_input_vars
this setting means , how many input fields are possible in a formular. the standard setting is 1000, but the module-script use more then 1000 input field in bigger language files like DE.php or EN.php (all files in the main language folder)
PHP cut the POST-Array, when its have more then 1000 vars. the file name for your language file was send as the last var in this POST-array, so its missing and the tool_save.php has nothing to do without a file name to write in it.

at all: this module doesnt work in the WB 2.8.4. This WB 2.8.4 use UTF8-coded Language files and the module Languages Editor cannot handle this files. See also here -> http://www.websitebaker.org/forum/index.php/topic,26755.0.html

Nicky

Quoteyou can change the code in the file tool_save.php in line 93ff

I can find save.php and tool.php but I cannot locate tool_save.php

In what directory can I find tool_save.php please?

(WB 2.8.2  Revision 1528)

jacobi22

i think, you dont understand correct - sorry  :wink:

i talk only from the module language edit, not about other wb-function like "minimum-chars in-username"

if you make a input , maybe to change a language variable like "$TEXT['USERNAME']", the script count the chars from your input and if your input has not a minimum from 11 chars (inclusive space, comma etc), the script stops

it has nothing to do with a login name, its only for the tool language edit

for example
you want to edit the language variable $TEXT['ADD']  -> the english text is "ADD", but the word "ADD" has only 3 chars, its too short for the script,

in you example you like to change the word LOGINNAME to login nome == 10 chars, but not more then 10 chars
if you change another word in the next lines, you have more then 10 chars and it works without error and error messages

thats my two solutions
1. change the code (see my first answer)
2. change more than one languages variables in the same time


Nicky

Hello jacobi22,

Thanks, I get your info about the length of any login name but it is the text for the prompt called loginname that I want to try and and edit...

So I go here:

"Edit Website Baker System Language Files"

Then here:

353     $TEXT['USERNAME']    Loginname

If I try to edit and save that prompt as login-nom or pseudo-nom for example, I still get the same original error and, nothing in that language file changes.

My query has nothing to do with the actual length of the login name but simply changing the prompt called "loginname" to something else (in French with this site).

Regards,
Nicky

jacobi22

#2
this error messages means, that your input is too short (minimum 10 chars)
you can change the code in the file tool_save.php in line 93ff

originalcode
if($save_file) {
       if (strlen($savecontent)<10) {
               echo "savecontent error!!";
       }


new code
if($save_file) {
       if (strlen($savecontent)== '') {
               echo "savecontent error!!";
       }

Nicky

Happy New Year to all Bakers!

I'm trying to change loginname to login nom but, I get this error:

Administration Tools -> Language Edit
savecontent error!!

Sucessfully saved


And none of my changes are actually saved.

I'm using Version 2.8.2  Revision 1528

Any ideas how to fix this?

(I don't have any issues saving page content or receive any other error messages anywhere).

Regards,
Nicky