Post by gunownergear » Fri Jul 04, 2025 10:33 pm

Hello,
I cannot figure out how to post error codes on this forum.
When I copy and paste the code, and then submit, I get the "blocked" page.
Can someone let me know how to do this properly.
Thank you,
Dan
Last edited by gunownergear on Sat Jul 05, 2025 5:02 am, edited 1 time in total.

Newbie

Posts

Joined
Sun Mar 16, 2025 7:06 am

Post by Cue4cheap » Fri Jul 04, 2025 10:41 pm

gunownergear wrote:
Fri Jul 04, 2025 10:33 pm
Hello,
I cannot figure out how to post error codes on this forum.
When I copy and paste the code, and then submit, I get the "blocked" page.
Can someone let me know how to do this properly.
Thank you,
Dan
Are you using the </> for "code display"?

cue4cheap not cheap quality


Expert Member

Posts

Joined
Fri Sep 20, 2013 4:45 am

Post by gunownergear » Fri Jul 04, 2025 10:59 pm

Yes, still get "sorry you have been blocked"
Last edited by gunownergear on Fri Jul 04, 2025 11:27 pm, edited 1 time in total.

Newbie

Posts

Joined
Sun Mar 16, 2025 7:06 am

Post by khnaz35 » Fri Jul 04, 2025 11:05 pm

Yes you should post it between the tags

Code: Select all

Your code here

Got an urgent question that’s keeping you up at night? There might just be a magical inbox ready to help: khnaz35@gmail.com
Enjoy nature ;) :) :-*


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia

Post by gunownergear » Fri Jul 04, 2025 11:42 pm

Just tried it in this reply
won't let me

Newbie

Posts

Joined
Sun Mar 16, 2025 7:06 am

Post by gunownergear » Fri Jul 04, 2025 11:46 pm

2025-06-20 20:26:55 - PHP Warning: Undefined array key "en-gb'" in /home/gunowner/public_html/catalog/controller/common/language.php on line 37

Code: Select all

$data['name'] = $data['languages'][$code]['name'];
Ah there it worked

I will try a new post- Thank You

Newbie

Posts

Joined
Sun Mar 16, 2025 7:06 am

Post by khnaz35 » Sat Jul 05, 2025 12:16 am

What is your opencart version and the php version ?

Got an urgent question that’s keeping you up at night? There might just be a magical inbox ready to help: khnaz35@gmail.com
Enjoy nature ;) :) :-*


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia

Post by gunownergear » Sat Jul 05, 2025 12:19 am

khnaz35 wrote:
Sat Jul 05, 2025 12:16 am
What is your opencart version and the php version ?
Sorry it is 4.1.0.3
PHP is 8.3.22

Newbie

Posts

Joined
Sun Mar 16, 2025 7:06 am

Post by khnaz35 » Sat Jul 05, 2025 12:35 am

gunownergear wrote:
Sat Jul 05, 2025 12:19 am
it is 4.1.0.3
PHP is 8.3.22
Change the line with this

Code: Select all

$code = $data['code'];
$code = trim($code, " \t\n\r\0\x0B'\"");

if (isset($data['languages'][$code])) {
	$data['name'] = $data['languages'][$code]['name'];
	$data['image'] = $data['languages'][$code]['image'];
} else {
	$data['name'] = '';
	$data['image'] = '';
}

Got an urgent question that’s keeping you up at night? There might just be a magical inbox ready to help: khnaz35@gmail.com
Enjoy nature ;) :) :-*


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia

Post by gunownergear » Sat Jul 05, 2025 4:38 am

OK Thank you.
I did now I will monitor, let you know

Newbie

Posts

Joined
Sun Mar 16, 2025 7:06 am
Who is online

Users browsing this forum: No registered users and 8 guests