Deleted a language then received errors

Open to all! Ask other shopowners for help.
Post Reply
Moxamint
Member
Posts: 93
Joined: Fri Nov 06, 2020 10:36 am
Phoenix Version:
Has thanked: 33 times
Been thanked: 3 times

Deleted a language then received errors

Post 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


Join The Code Co-op to get access to your library in the Code Co-op Forum
User avatar
burt
Core Team
Posts: 4551
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: Deleted a language then received errors

Post 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)..
I am not here to build for you.
I am here to build with you. Let's help each other.
Moxamint
Member
Posts: 93
Joined: Fri Nov 06, 2020 10:36 am
Phoenix Version:
Has thanked: 33 times
Been thanked: 3 times

Re: Deleted a language then received errors

Post by Moxamint »

I'll try on a fresh install and see if I can recreate the error. Thanks!


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply