Re: file upload issues with SuiteCRM V7/8 (or apache24 and php8 diff FreeBSD vs Debian)
Date: Wed, 02 Mar 2022 00:27:08 UTC
> > $sugar_config['allowed_preview'] is set in include/utils.php - what do > you have it set to in that file? > > it's only used (read) twice, once in download.php and again in your > error file, modeuls/Documents/Document.php > > If it "runs on Linux" i put my money that php7 is running on the Linux > that works. php 8 is much more picky, php 7 wouldn't cause a type > error from that code. Thanks for poking around! :-) I don't think there is any UI access to $sugar_config['allowed_preview'], so unless it's being overwritten somewhere is still as assigned in include/utils.php 'allowed_preview' => [ 'pdf', 'gif', 'png', 'jpeg', 'jpg' ], Hopefully the comparison, wherever that is, isn't case sensitive. The SuiteCRM project has only claimed PHP 8.0 support since their last release, so I wouldn't be surprised if there are still compatibilty issues. This seems a bit obvious though..... I have posted to the SuiteCRM project forum and will reply again here when I know more in case you're curious. Thanks again, Dale