Forum OpenACS Development: Re: Unexpected error "expected boolean value but got ..."

Collapse
Posted by Gustaf Neumann on
i can explain the symptoms, but not the cause. The function lang::util::translator_mode_p returns on your site an empty string instead of a boolean value. This can happen only, when "ad_get_client_property -default 0 acs-lang translator_mode_p" returns empty. The change in [1] returns the default-value instead of "" for cases ad_get_client_property fails, which might help. Can it be that you switched between http and https?

In case the value in the database is incorrect, starting a new session (logout/login) should help. You can check, what's in the client properties via "select * from sec_session_properties;"

Hope this helps a little.
-g

[1] http://cvs.openacs.org/changelog/OpenACS?cs=oacs-5-9%3Agustafn%3A20150920092851

Collapse
Posted by v v on
1. I don't use https.
2. I couldn't do logout\login because I had got error for any url (see above).

But I've done sql command "truncate table sec_session_properties" and restart web server and database. After that I stopped getting the error and web looks like as working. Could you clarify - I can use package Automated Testing for check efficiency?

Collapse
Posted by Gustaf Neumann on
I can't clarify further, since i have never seen the problem on any site, and there is no way to reproduce the problem without more information. My explanation was based on the source code of lang::util::translator_mode_p [1] and ad_get_client_property [2]. Since "-cache-only" was not set in the call, and - as you said - you are not using a secure connection, the only option is that the empty value was coming from the database. ... but i have no idea, how it got there. Maybe related to your modifications?

-g

[1] http://openacs.org/api-doc/proc-view?proc=lang%3a%3autil%3a%3atranslator_mode_p&source_p=1
[2] http://openacs.org/api-doc/proc-view?proc=ad_get_client_property&source_p=1

Collapse
Posted by v v on
I will check the efficiency of the process is maintained.
Collapse
Posted by Gustaf Neumann on
concerning "couldn't logout": what you can do always is to delete the AD*-cookies in your browser. This will log you out (force fresh login).