Jump to content
  • Status: Moved to Github

TypeErrors which I believe is caused from the gallery changes which removed sort by specific variables which have been deprecated.

Such as:

The URL of page the error occurred on was .../content/?page=1%5Cu0026sortby=image_comments%5Cu0026sortdirection=desc%5Cu0026type=gallery_image

The URL of page the error occurred on was .../content/?page=1%5Cu0026sortby=image_last_comment%5Cu0026sortdirection=desc%5Cu0026type=gallery_image

User Feedback

Recommended Comments

teraßyte

Clients

Nope. It's because the URL is broken:

/content/?page=1%5Cu0026sortby=image_comments%5Cu0026sortdirection=desc%5Cu0026type=gallery_image

The correct format is:

/content/?page=1&sortby=image_comments&sortdirection=desc&type=gallery_image

Are those broken URLs coming from a specific page on your site?

asigno

Clients

Thanks for the response, I don't know where they are coming from, but they are all generated on the member profile page.

E.g.
The log entry was triggered by a guest (Guests)

31 minutes ago

The URL of page the error occurred on was https://yamahaclub.com/profile/3827-muckywillow/content/?page=1%5Cu0026sortby=image_last_comment%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}

Esther E.

Invision Community Team

This might be fixed in the latest 5.0.4 beta. I'm pretty sure it is, but since I couldn't reproduce it, I can't say 100%.

asigno

Clients

Thanks @Esther E. I've just upgraded to 5.0.4, will comment back if not fixed. Cheers