Post by integraa » Thu Mar 28, 2024 9:30 pm

Dear Opencart community,
trying to find why I have this error...
OC 3.0.3.9 php 8.1
https://www.otroski-koticek.si/

Does anybody have any idea?

Code: Select all

13:18:14
PHP Fatal error:  Uncaught ArgumentCountError: 3 arguments are required, 2 given in xxx/catalog/controller/account/success.php:26
Stack trace:
#0 xxx/catalog/controller/account/success.php(26): sprintf('<p> \xC4\x8Cestitamo!...', 'https://www.otr...')
#1 xxx/storage/modification/system/engine/action.php(79): ControllerAccountSuccess->index()
#2 xxx/catalog/controller/startup/router.php(25): Action->execute(Object(Registry))
#3 xxx/storage/modification/system/engine/action.php(79): ControllerStartupRouter->index()
#4 xxx/storage/modification/system/engine/router.php(77): Action->execute(Object(Registry))
#5 xxx/storage/modification/system/engine/router.php(66): Router->execute(Object(Action))
#6 xxx/system/framework.php(176): Router->dispatch(Object(Action), Object(Action))
#7 xxx/system/startup.php(104): require_once('/home/otrosk57/...')
#8 xxx/index.php(22): start('catalog')
#9 {main}
  thrown in xxx/catalog/controller/account/success.php on line 26
When checking server logs:

Code: Select all

25/Mar/2024:13:18:14 +0100] "GET /index.php?route=account/success HTTP/1.1" 200 473 "https://www.otroski-koticek.si/index.php?route=account/register" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Mobile Safari/537.36"
46.123.255.155 - - [25/Mar/2024:13:18:14 +0100] "GET /favicon.ico HTTP/1.1" 404 1251 "https://www.otroski-koticek.si/index.php?route=account/success" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Mobile Safari/537.36"

Newbie

Posts

Joined
Sat Aug 20, 2016 2:16 pm

Post by Cue4cheap » Thu Mar 28, 2024 10:04 pm

As far as I know there isn't any issue with that version of OC. So what is on that line 26?
catalog/controller/account/success.php on line 26

cue4cheap not cheap quality


Expert Member

Posts

Joined
Fri Sep 20, 2013 4:45 am

Post by paulfeakins » Thu Mar 28, 2024 11:51 pm

integraa wrote:
Thu Mar 28, 2024 9:30 pm
Does anybody have any idea?

Code: Select all

#4 xxx/storage/modification/
Probably an installed extension.

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


User avatar
Legendary Member
Online

Posts

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

Post by JNeuhoff » Fri Mar 29, 2024 12:07 am

You are using the Journal3 framework, not the standard OpenCart framework. Journal3 isn't supported here, they have their own support.

In a standard OpenCart 3.0.3.9 the account creation works just fine.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member
Online

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by integraa » Wed Apr 03, 2024 11:37 pm

Hey,
thanks for your input.
It looked to me like OC problem.

Newbie

Posts

Joined
Sat Aug 20, 2016 2:16 pm

Post by paulfeakins » Thu Apr 04, 2024 10:42 pm

integraa wrote:
Wed Apr 03, 2024 11:37 pm
It looked to me like OC problem.
If you have Journal then most problems are probably Journal problems because it changes so much.

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


User avatar
Legendary Member
Online

Posts

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

Post by Johnathan » Fri Apr 05, 2024 1:52 am

That line is related to the success message, and it's being loaded using the sprintf() function. The error implies that you have two %s variables in this language string from the /catalog/language/YOUR-LANGUAGE/account/success.php file:

$_['text_message']

It should only have one by default. The string that has two %s variables is this one:

$_['text_approval']

Fixing the 'text_message' string should resolve the error.

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am

Who is online

Users browsing this forum: No registered users and 19 guests