Live Helper Chat support forum.. Forum is locked. New place for questions - Github Discussions

You are not logged in.

Announcement

#1 2017-06-12 22:10:18

muellerlukas
Member
Registered: 2017-06-12
Posts: 2

Error when switching languages

Hi,

I installed Live helper chat today. But when I want to change the language, the page is just empty.
So I enabled the debug-reporting.

Warning: simplexml_load_file(): I/O warning : failed to load external entity "/var/www/virtual/mulu90/XXXXX//translations/de_DE/translation.ts" in /var/www/virtual/mulu90/software/livehelperchat/lhc_web/ezcomponents/Translation/src/backends/ts_backend.php on line 233

Fatal error: Call to a member function rewind() on boolean in /var/www/virtual/mulu90/software/livehelperchat/lhc_web/ezcomponents/Translation/src/backends/ts_backend.php on line 396

So I had a look in ts_backend.php. The line says:

return simplexml_load_file( $filename, $returnClass );

I currently do not have enough free time to check WHY that error occurs, but for now I worked changing it to.

return simplexml_load_string( file_get_contents( $filename ), $returnClass );

I will send a pull request on github for this.

Offline

#2 2017-06-13 03:39:43

PeopleInside
Administrator
From: Italy
Registered: 2014-04-10
Posts: 4,046
Website

Re: Error when switching languages

Hi muellerlukas,
welcome in live helper chat forum and thank you for your message.

The issue you are expecting is on visitor side widget or in the operator / admin side?
Can you please provide the exact steps to reproduce?

I AM currently waiting the steps for reproduce the issue as from first test I AM unable to replicate the issue reported by you.

Are you sure to use a PHP version same or superior to 5.6?
Thank you!

Last edited by PeopleInside (2017-06-13 03:50:17)


lol PeopleInside - Live helper chat - free limited forum support!
wink For commercial support or GitHub [see FAQ here]
ops If you want to support this open source project, just donate [see support page]
glasses Something wrong with the forum? [contact a superhero]

Offline

#3 2017-06-13 09:00:04

PeopleInside
Administrator
From: Italy
Registered: 2014-04-10
Posts: 4,046
Website

Re: Error when switching languages

Thank you,
your fix has been merged.
smile


lol PeopleInside - Live helper chat - free limited forum support!
wink For commercial support or GitHub [see FAQ here]
ops If you want to support this open source project, just donate [see support page]
glasses Something wrong with the forum? [contact a superhero]

Offline

#4 2017-06-13 11:44:36

muellerlukas
Member
Registered: 2017-06-12
Posts: 2

Re: Error when switching languages

PeopleInside wrote:

The issue you are expecting is on visitor side widget or in the operator / admin side?

Can you please provide the exact steps to reproduce?

On the admin side. I installed it using the webbased installer. Then I tried to change the language of my account to de_DE. (index.php/site_admin/system/languages#/yourlanguage)
The settings are updated in the database and I am forwarded to index.php/site_admin/system/languages/(updated)/true/(sa)/site_admin#/yourlanguage.
The page is then completly blank. Both in the current login and also when I trie to login in with another browser.
So I set "debug_output" in die settings.ini.php to true. That how I got the php-error-message.

Are you sure to use a PHP version same or superior to 5.6?

I am using PHP 5.6.30.

Offline

#5 2017-06-13 11:45:39

PeopleInside
Administrator
From: Italy
Registered: 2014-04-10
Posts: 4,046
Website

Re: Error when switching languages

Thank you,
your fix has been approved and will be now integrated in Live helper chat, last version.

Thank you for reporting and fix this!


lol PeopleInside - Live helper chat - free limited forum support!
wink For commercial support or GitHub [see FAQ here]
ops If you want to support this open source project, just donate [see support page]
glasses Something wrong with the forum? [contact a superhero]

Offline

Board footer