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

asigno

Clients

Just an update, I'm still seeing the same error TypeError: IPS\Http\Url\Friendly::setPage(): Argument #2 ($number) must be of type ?int,

However I'm also getting three new errors I didn't get in 5.0.2

TypeError: IPS\Content\Item::getRedirectFrom(): Argument #1 ($id) must be of type int, string given, called in /home/yamahaclub/htdocs/yamahaclub.com/system/Content/Controller.php on line 417 (0) #0 /home/yamahaclub/htdocs/yamahaclub.com/system/Content/Controller.php(417): IPS\Content\Item::getRedirectFrom() #1 /home/yamahaclub/htdocs/yamahaclub.com/applications/forums/modules/front/forums/topic.php(94): IPS\Content\Controller->manage() #2 /home/yamahaclub/htdocs/yamahaclub.com/system/Dispatcher/Controller.php(139): IPS\forums\modules\front\forums\topic->manage() #3 /home/yamahaclub/htdocs/yamahaclub.com/system/Content/Controller.php(124): IPS\Dispatcher\Controller->execute() #4 /home/yamahaclub/htdocs/yamahaclub.com/applications/forums/modules/front/forums/topic.php(82): IPS\Content\Controller->execute() #5 /home/yamahaclub/htdocs/yamahaclub.com/system/Dispatcher/Dispatcher.php(169): IPS\forums\modules\front\forums\topic->execute() #6 /home/yamahaclub/htdocs/yamahaclub.com/index.php(16): IPS\Dispatcher->run() #7 {main}

UnderflowException: lang_not_exists__core_emoticon_group_default (0) #0 /home/yamahaclub/htdocs/yamahaclub.com/applications/core/modules/front/system/editor.php(339): IPS\Lang->get() #1 /home/yamahaclub/htdocs/yamahaclub.com/system/Dispatcher/Controller.php(128): IPS\core\modules\front\system\editor->emoji() #2 /home/yamahaclub/htdocs/yamahaclub.com/system/Dispatcher/Dispatcher.php(169): IPS\Dispatcher\Controller->execute() #3 /home/yamahaclub/htdocs/yamahaclub.com/index.php(16): IPS\Dispatcher->run() #4 {main}

TypeError: IPS\gallery\Image::get__notes(): Return value must be of type array, null returned in /home/yamahaclub/htdocs/yamahaclub.com/applications/gallery/sources/Image/Image.php:319 Stack trace: #0 /home/yamahaclub/htdocs/yamahaclub.com/system/Patterns/ActiveRecord.php(360): IPS\gallery\Image->get__notes() #1 /home/yamahaclub/htdocs/yamahaclub.com/applications/gallery/sources/Image/Image.php(330): IPS\Patterns\ActiveRecord->__get() #2 /home/yamahaclub/htdocs/yamahaclub.com/system/Patterns/ActiveRecord.php(360): IPS\gallery\Image->get__notes_json() #3 /home/yamahaclub/htdocs/yamahaclub.com/static/templates/gallery_front_view.php(1032): IPS\Patterns\ActiveRecord->__get() #4 /home/yamahaclub/htdocs/yamahaclub.com/system/Theme/SandboxedTemplate.php(68): IPS\Theme\class_gallery_front_view->imageFrame() #5 /home/yamahaclub/htdocs/yamahaclub.com/static/templates/gallery_front_view.php(357): IPS\Theme\SandboxedTemplate->__call() #6 /home/yamahaclub/htdocs/yamahaclub.com/system/Theme/SandboxedTemplate.php(68): IPS\Theme\class_gallery_front_view->image() #7 /home/yamahaclub/htdocs/yamahaclub.com/applications/gallery/modules/front/gallery/view.php(376): IPS\Theme\SandboxedTemplate->__call() #8 /home/yamahaclub/htdocs/yamahaclub.com/system/Dispatcher/Controller.php(139): IPS\gallery\modules\front\gallery\view->manage() #9 /home/yamahaclub/htdocs/yamahaclub.com/system/Content/Controller.php(124): IPS\Dispatcher\Controller->execute() #10 /home/yamahaclub/htdocs/yamahaclub.com/applications/gallery/modules/front/gallery/view.php(109): IPS\Content\Controller->execute() #11 /home/yamahaclub/htdocs/yamahaclub.com/system/Dispatcher/Dispatcher.php(169): IPS\gallery\modules\front\gallery\view->execute() #12 /home/yamahaclub/htdocs/yamahaclub.com/index.php(16): IPS\Dispatcher->run() #13 {main}

Esther E.

Invision Community Team

I'll reopen the original bug report. Can I trouble you to please submit errors as separate reports? Thanks.