General Community > Global WebsiteBaker 2.8.x discussion

LANGUAGE_LOADED in WB 2.8.3 SP5

(1/2) > >>

petin:
error log write this lines:
[Sat Jan 02 13:15:18.738320 2016] [:error] [pid 1661] [client 192.168.2.1:51432] PHP Notice:  Use of undefined constant LANGUAGE_LOADED - assumed 'LANGUAGE_LOADED' in /var/www/virtual/myweb.xyz/htdocs/framework/initialize.php on line 182, referer: http://myweb.xyz/install/index.php?sessions_checked=true

[Sat Jan 02 13:15:57.624347 2016] [:error] [pid 1660] [client 192.168.2.1:51446] PHP Notice:  Use of undefined constant LANGUAGE_LOADED - assumed 'LANGUAGE_LOADED' in /var/www/virtual/myweb.xyz/htdocs/framework/initialize.php on line 182

[Sat Jan 02 13:16:12.827828 2016] [:error] [pid 4424] [client 192.168.2.1:51448] PHP Notice:  Use of undefined constant LANGUAGE_LOADED - assumed 'LANGUAGE_LOADED' in /var/www/virtual/myweb.xyz/htdocs/framework/initialize.php on line 182, referer: http://myweb.xyz/admin/login/index.php

Shows only a white page in administration.
After select language is this problem.

How and where do I define a constant LANGUAGE_LOADED please...

Thank you
PeTr

Gast:

--- Quote ---After select language is this problem.
--- End quote ---

which language??

Gast:
LANGUAGE_LOADED are defined in every language-File in the folder "language" in this form here

--- Code: ---if(!defined('LANGUAGE_LOADED'))
{
    define('LANGUAGE_LOADED', true);
}
--- End code ---

if the script, specially the file framework / initialize.php doesnt found this Code or a in your wb- or personal settings selected language, it loads the language file language / EN.php

petin:
after select language CS and save in admin config page is only white page... :-(

and the main site is also white ...
where is the problem?

Gast:
i think, i found the error....

Problem is the file languages / CS.php

see this line in the top


--- Code: ---// Set the language information
$language_code = 'CZ';
--- End code ---

i'm not sure what we use in WB, language code or Country Code

1. the white screen - there is a problem with the LoadonFly-Method ( i hope) - this result in a white screen, if there is a error message or notice - we work on it
here a work-around
go to templates / your_admintheme / jquery / jquery-plugins.js
go there to line 27

--- Code: ---$.insert(WB_URL+"/include/jscalendar/calendar-system.css");
--- End code ---
and also to line 31

--- Code: ---$.insert(WB_URL+"/modules/jsadmin/backend.css");
--- End code ---

and make a double // in the front of every line to deactivate this lines - it solved the white screen, but with the effect, that its not possible to move lines via drag&drop (like the pages overview)

2. the language problem
its important to use the same code in the name of the file for Czechoslovakian and the code inside this file
CZ is the country code for Czechoslovakia, CS the language code

simple solution is a change in the file languages / CS.php

to

--- Quote ---// Set the language information
$language_code = 'CS';
--- End quote ---

other method
rename this file to CZ.php and reload the Addons under Addons -> advanced

Navigation

[0] Message Index

[#] Next page

Go to full version