Hello,
I was in the front-end (not ACP) and selected a record that I wanted to feature. I clicked 'feature' and received the following error:
TypeError: IPS\File::get(): Argument #2 ($url) must be of type IPS\Http\Url|string, null given, called in /home/bn2468/public_html/applications/cms/sources/Records/Records.php on line 1659 (0)
#0 /home/bn2468/public_html/applications/cms/sources/Records/Records.php(1659): IPS\File::get()
#1 /home/bn2468/public_html/system/Content/Controller.php(4635): IPS\cms\Records->contentImages()
#2 /home/bn2468/public_html/system/Dispatcher/Controller.php(128): IPS\Content\Controller->feature()
#3 /home/bn2468/public_html/system/Content/Controller.php(125): IPS\Dispatcher\Controller->execute()
#4 /home/bn2468/public_html/applications/cms/sources/Databases/Dispatcher.php(372): IPS\Content\Controller->execute()
#5 /home/bn2468/public_html/applications/cms/modules/front/pages/page.php(234): IPS\cms\Databases\Dispatcher->run()
#6 /home/bn2468/public_html/system/Dispatcher/Controller.php(128): IPS\cms\modules\front\pages\page->__call()
#7 /home/bn2468/public_html/system/Dispatcher/Dispatcher.php(169): IPS\Dispatcher\Controller->execute()
#8 /home/bn2468/public_html/index.php(16): IPS\Dispatcher->run()
#9 {main}
A little bit of diagnosis shows that the problem field is the following:
As you can see, the field is NOT required.
I had not uploaded an image to the record and this resulted in the exception described above.
I then uploaded an image to the record/field and was then able to 'feature' the record - pretty much proving that the bug is to do with missing image/upload contents for fields that are NOT required.
Thanks.
John
Recommended Comments
There are no comments to display.