Page 1 of 1

Deleted a language then received errors

Posted: Mon Apr 03, 2023 4:25 am
by Moxamint
Hi,

I recently decided to ditch the Japanese language, so my site is English only. I delete the Japanese language from Localization -> Languages, then I'm receiving lots of the following warnings:

Code: Select all

[01-Apr-2023 13:27:08 Asia/Taipei] PHP Warning:  require(/home/myroot/mysite.com/includes/languages/japanese/index.php): failed to open stream: No such file or directory in /home/myroot/mysite.com/index.php on line 15
[01-Apr-2023 13:27:08 Asia/Taipei] PHP Fatal error:  require(): Failed opening required '/home/myroot/mysite.com/includes/languages/japanese/index.php' (include_path='.:/opt/cpanel/ea-php74/root/usr/share/pear') in /home/myroot/mysite.com/index.php on line 15
Is there anything further I should do to delete a language without getting those errors?

Thanks, Eddy

Re: Deleted a language then received errors

Posted: Mon Apr 03, 2023 8:26 am
by burt
I wasn't able to recreate a delete language error...

I wonder if your session in the Shop Side was in Japanese, so when you deleted it in admin, it deleted it. Then you refreshed the page with the session still in Japanese, so it tries to load the jp language file etc.

Even so, I tried this (having a session in French) and delting from admin then refreshing - it just reverted to english (as expected)..

Re: Deleted a language then received errors

Posted: Mon Apr 03, 2023 10:00 am
by Moxamint
I'll try on a fresh install and see if I can recreate the error. Thanks!