Jump to content

Error embedding links after upgrade to latest


Recommended Posts

Hello,

Getting

TypeError: Unsupported operand types: string * float (0)
#0 /main/public_html/applications/core/modules/front/system/editor.php(130): IPS\Text\_Parser::imageEmbed(Object(IPS\Http\Url), 1280, 720)
#1 /main/public_html/system/Dispatcher/Controller.php(107): IPS\core\modules\front\system\_editor->validateLink()
#2 /main/public_html/system/Dispatcher/Dispatcher.php(153): IPS\Dispatcher\_Controller->execute()
#3 /main/public_html/index.php(13): IPS\_Dispatcher->run()
#4 {main}

When attempting to embed an image using a link. PHP 8.0.24

Edited by SpookyThings
Link to comment
Share on other sites

Issue appears to be 

Parser.php

$widthToUse	= floor($maxImageDims[1] * ( $widthToUse / $heightToUse ) );

and

$heightToUse	= floor( $maxImageDims[0] * ( $heightToUse / $widthToUse ) );

$maxImageDims[1] and $maxImageDims[0] needs to be casted to float ie floatval($maxImageDims[1])

Edited by SpookyThings
Link to comment
Share on other sites

We would need to look further into this for you, however the access details on file appear to be incorrect or missing. Could you please update these details by visiting your client area, selecting the relevant purchase, then clicking "Review/Update Access Information" under the "Stored Access Information" section. 

We look forward to further assisting you. 

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...