Post by hsynplt » Tue Apr 27, 2021 5:49 am

Hello,

I am using the latest version Opencart (3.0.3.7) and I get the following error on the return page.

Code: Select all

"Warning: sprintf(): Too few arguments in /home/*******/public_html/catalog/controller/account/return.php on line 433"
To find this error, I opened the return.php file and the following code is written on line 433. But I could not find the cause of the error. Can you help resolve this error?

Code: Select all

if ($information_info) {
				$data['text_agree'] = sprintf($this->language->get('text_agree'), $this->url->link('information/information/agree', 'information_id=' . $this->config->get('config_return_id'), true), $information_info['title']);
			} else {
				$data['text_agree'] = '';
			}
Thanks.
Last edited by hsynplt on Mon May 03, 2021 6:29 am, edited 1 time in total.

User avatar
Newbie

Posts

Joined
Mon Mar 08, 2021 1:18 am
Location - Turkey

Post by thekrotek » Tue Apr 27, 2021 1:58 pm

Check text_agree value in the language file. Looks like it contains extra %s.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by hsynplt » Tue Apr 27, 2021 3:03 pm

Thank you @thekrotek.
I replaced the language file with the original and it was fixed.

User avatar
Newbie

Posts

Joined
Mon Mar 08, 2021 1:18 am
Location - Turkey

Post by paulfeakins » Tue Apr 27, 2021 4:38 pm

hsynplt wrote:
Tue Apr 27, 2021 3:03 pm
Thank you @thekrotek.
I replaced the language file with the original and it was fixed.
Then please add [SOLVED] to the start of the post title.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom
Who is online

Users browsing this forum: Baidu [Spider], drag84, Google [Bot] and 467 guests