Page 1 of 1

Uncaught ArgumentCountError: Too few arguments to function Href::redirect()

Posted: Sat Apr 24, 2021 12:13 pm
by fcollingwood
I'm getting the following in my error log on every access to any page:
[25-Apr-2021 00:07:21 Pacific/Auckland] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function Href::redirect(), 0 passed in <my catalog>/includes/system/segments/application/parse_actions.php on line 17 and exactly 1 expected in <my catalog>/includes/system/versioned/1.0.8.1/href.php:129
Stack trace:
#0 <my catalog>/includes/system/segments/application/parse_actions.php(17): Href::redirect()
#1 <my catalog>/includes/application_top.php(46): require('<my catalog>...')
#2 <my catalog>/products_new.php(13): require('<my catalog>...')
#3 {main}
thrown in <my catalog>/includes/system/versioned/1.0.8.1/href.php on line 129
I haven't touched either of these files, so it's a bit odd

Re: Uncaught ArgumentCountError: Too few arguments to function Href::redirect()

Posted: Sun Apr 25, 2021 3:49 am
by ecartz
That's the "session not started" case. So your first problem is whatever is keeping the session from starting.

The second problem is that linking does not seem to be working. Line 17 of parse_actions.php:

Code: Select all

      Href::redirect(Guarantor::ensure_global('Linker')->build('cookie_usage.php'));
Something would seem to be wrong with Linker or Href (Linker->build calls Href). You could add

Code: Select all

var_dump($Linker);
immediately before line 17 and see if that gives you any useful information.

Re: Uncaught ArgumentCountError: Too few arguments to function Href::redirect()

Posted: Wed Aug 24, 2022 9:00 pm
by edfaught
Has anyone found the solution to this?