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
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.
Are you using the </> for "code display"?gunownergear wrote: ↑Fri Jul 04, 2025 10:33 pmHello,
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
cue4cheap not cheap quality
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.
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
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
Ah there it worked
I will try a new post- Thank You
Code: Select all
$data['name'] = $data['languages'][$code]['name'];
I will try a new post- Thank You
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
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
Who is online
Users browsing this forum: No registered users and 8 guests