Loading...
 
Skip to main content

Themes


Editing tiki-error.php

I would like to edit the tiki-error.php message for people that receive the cookies error message, to one that is more informative to help them enable cookies.

The page is "/tiki-error.php?error=You+have+to+enable+cookies+to+be+able+to+login+to+this+site".

I have looked at the tiki-error.php and error.tpl files but I don't see where the cookie error message is.

Any ideas where to edit this?

> Any ideas where to edit this?

It's in lang/en/language.php (and translated versions are in the other language files).

In language.php, the wording in commented-out lines (beginning with "//") is used as it is; the word or words are already in the templates to be used on pages. To change a line in the language file, uncomment it if it is commented (delete the slashes), and change the second appearance of the words, on the right side of the "=>" to the words you want to use.

The cookies error line is at or near line 5213.

Be sure to save the file with utf-8 encoding (a text editor config option), or your site could stop working.

-- Gary