WebsiteBaker Support (2.8.x) > WebsiteBaker Language Files

savecontent error!!

(1/3) > >>

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

jacobi22:
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

--- Code: ---if($save_file) {
        if (strlen($savecontent)<10) {
                echo "savecontent error!!";
        }
--- End code ---

new code

--- Code: ---if($save_file) {
        if (strlen($savecontent)== '') {
                echo "savecontent error!!";
        }
--- End code ---

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:
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:

--- Quote ---you can change the code in the file tool_save.php in line 93ff
--- End quote ---

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)

Navigation

[0] Message Index

[#] Next page

Go to full version