Loading...
 
Architecture / Installation

Architecture / Installation


Restrict languages in i18n crashes website !

posts: 9 France

Hi all (again wink)

I'm using Tiki 26, on Apache server, under PHP 8.1.

I have a quiet big issue and I don't know if it's a bug with Tiki 26 or if it's me didn't set something right :
if I choose to restrict supported languages to only 2 languages (in i18n Admin menu), it crashes the site down...
With the following error message :

Copy to clipboard
Notice: tempnam(): file created in the system's temporary directory in /home/site-exemple/public_html/lib/core/Tiki/TikiInit.php on line 91 Fatal error: Uncaught RuntimeException: Temporary folder is set to /root/tmp, but it is not accessible by Tiki. in /home/site-exemple/public_html/lib/core/Tiki/TikiInit.php:94 Stack trace: #0 /home/site-exemple/public_html/lib/tikilib.php(63): Tiki\TikiInit::getContainer() #1 /home/site-exemple/public_html/tiki-setup_base.php(126): TikiLib::lib() #2 /home/site-exemple/public_html/tiki-setup.php(66): require_once('...') #3 /home/site-exemple/public_html/tiki-admin.php(19): require_once('...') #4 {main} thrown in /home/site-exemple/public_html/lib/core/Tiki/TikiInit.php on line 94


I can (almost) repair it if I delete the languages preferences from the database.
But I'm thus unable to restrict only 2 languages (what it's weird as my website should be in only 2 languages, so I need not the 30-something languages which appear in the language module dropdown...) !

Did someone as the same problem and think it is a bug... ?

posts: 8633 Israel
Guillaume wrote:

Hi all (again wink)

I'm using Tiki 26, on Apache server, under PHP 8.1.

I have a quiet big issue and I don't know if it's a bug with Tiki 26 or if it's me didn't set something right :
if I choose to restrict supported languages to only 2 languages (in i18n Admin menu), it crashes the site down...
With the following error message :

Copy to clipboard
Notice: tempnam(): file created in the system's temporary directory in /home/site-exemple/public_html/lib/core/Tiki/TikiInit.php on line 91 Fatal error: Uncaught RuntimeException: Temporary folder is set to /root/tmp, but it is not accessible by Tiki. in /home/site-exemple/public_html/lib/core/Tiki/TikiInit.php:94 Stack trace: #0 /home/site-exemple/public_html/lib/tikilib.php(63): Tiki\TikiInit::getContainer() #1 /home/site-exemple/public_html/tiki-setup_base.php(126): TikiLib::lib() #2 /home/site-exemple/public_html/tiki-setup.php(66): require_once('...') #3 /home/site-exemple/public_html/tiki-admin.php(19): require_once('...') #4 {main} thrown in /home/site-exemple/public_html/lib/core/Tiki/TikiInit.php on line 94


I can (almost) repair it if I delete the languages preferences from the database.
But I'm thus unable to restrict only 2 languages (what it's weird as my website should be in only 2 languages, so I need not the 30-something languages which appear in the language module dropdown...) !

Did someone as the same problem and think it is a bug... ?


Mmm...

I'm using 2 Tiki 26.x with restricted languages and I have no problem.

posts: 9 France

Yes, you're right Bernard,
I have tried to repeat the problem on a fresh new install of Tiki 26.x and the restricted supported languages option is working very well. So, I think it was a problem specific to the other installation...


Upcoming Events

1)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6) 
Tiki birthday
7)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
8)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting