Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Mar 2022 17:27:08 -0700 (MST)
From:      Dale Scott <dalescott@shaw.ca>
To:        Waitman Gobble <gobble.wa@gmail.com>
Cc:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: file upload issues with SuiteCRM V7/8 (or apache24 and php8 diff FreeBSD vs Debian)
Message-ID:  <1987127875.65144097.1646180828091.JavaMail.zimbra@shaw.ca>
In-Reply-To: <CAFuo_fxTRSs7WQ7cSybPjMtHCmQQpqn=pi2i6xvEr2UnvFt2iQ@mail.gmail.com>
References:  <637715396.61990484.1646149769165.JavaMail.zimbra@shaw.ca> <CAFuo_fzAyeDBvr0UbjJUqQii1ygePUMY-7FM93vCZZYb2S40DQ@mail.gmail.com> <CAFuo_fxjM5Dsy4DGgJtZwneW9SgZM8dHt8uX3KivWKxdgRdCxw@mail.gmail.com> <1894256119.63523696.1646164551088.JavaMail.zimbra@shaw.ca> <CAFuo_fxTRSs7WQ7cSybPjMtHCmQQpqn=pi2i6xvEr2UnvFt2iQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

> 
> $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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1987127875.65144097.1646180828091.JavaMail.zimbra>