I’ve analyzed the issue and found that the Error 500 occurs because of a method signature mismatch in PHP 8+. The showphoto() function in the Web Portal module doesn’t match the core Dolibarr Form class, which triggers a fatal error.
To fix this, you need to update the following file: htdocs/webportal/class/html.formwebportal.class.php
Find the showphoto function and replace its signature with this one (which includes the missing $usesharelinkifavailable parameter):
public static function showphoto($modulepart, $object, $width = 100, $height = 0, $caneditfield = 0, $cssclass = ‘photowithmargin’, $imagesize = ‘’, $addlinktofullsize = 1, $cache = 0, $forcecapture = ‘’, $noexternsourceoverwrite = 0, $usesharelinkifavailable = 0)
After applying this change, the invoices, orders, and proposals should load correctly without the 500 error. Don’t forget to clear your cache or restart your web server if necessary.




