Jump to content

TypeError: IPS\Http\Url\Friendly::setPage(): Argument #2 ($number) must be of type ?int, string give

Featured Replies

Posted

Hi,

I"m getting lots of the following errors in my logs, I'm not sure what's cuasing it, any ideas?

Thanks in advance.

Cheers

E.g.

The log entry was triggered by a guest (Guests)

1 hour ago

The URL of page the error occurred on was https://yamahaclub.com/profile/2971-bornagainbiker/content/?page=1%5Cu0026sortby=image_caption%2BASC,%2Bimage_id%2B%5Cu0026sortdirection=desc%5Cu0026type=gallery_image

TypeError: IPS\Http\Url\Friendly::setPage(): Argument #2 ($number) must be of type ?int, string given, called in /home/yamahaclub/htdocs/yamahaclub.com/applications/core/modules/front/members/profile.php on line 611 (0)

#0 /home/yamahaclub/htdocs/yamahaclub.com/applications/core/modules/front/members/profile.php(611): IPS\Http\Url\Friendly->setPage()

#1 /home/yamahaclub/htdocs/yamahaclub.com/system/Dispatcher/Controller.php(128): IPS\core\modules\front\members\profile->content()

#2 /home/yamahaclub/htdocs/yamahaclub.com/applications/core/modules/front/members/profile.php(130): IPS\Dispatcher\Controller->execute()

#3 /home/yamahaclub/htdocs/yamahaclub.com/system/Dispatcher/Dispatcher.php(169): IPS\core\modules\front\members\profile->execute()

#4 /home/yamahaclub/htdocs/yamahaclub.com/index.php(16): IPS\Dispatcher->run()

#5 {main}

Backtrace

#0 /home/yamahaclub/htdocs/yamahaclub.com/init.php(827): IPS\Log::log()

#1 [internal function]: IPS\IPS::exceptionHandler()

#2 {main}

People trying to use invalid links by the look of it. Please could you disable all 3rd party items, and test on a default theme? I am testing on my end with the same query string to see if I can break it, and seem to be unable to do so

  • Author

Hi @Marc thanks for the help here, I've disabled all 3rd party items and am using a default theme. I still get the same issue.

  • Author

Thanks @Jim sorry do you mean there is an issue in how these are being logged by IPB, or that this is correct in how they are being logged as errors?

How can I work out how these URLs are being requested?

Its not possible to know really. It could quite literally be someone typing it into their browser, a bad link somewhere, or any manner of things. We do now have a bug report in to stop it causing logs though

  • Author

@Marc There are hundreds of them, but from quickly looking at the URL requests, it looks like it's due to the requests containing sort parameters which no longer exist in Gallery. Such as sort by image views, image date, last comment, image comments, image caption, image updated etc.

Recently Browsing 0

  • No registered users viewing this page.