ryanhowdy / fcms

Family Connections - Create a private family website.
http://www.familycms.com
GNU General Public License v2.0
83 stars 41 forks source link

Photo Gallery - ImageCreateFromBMP php 7.2+ #565

Closed ryanhowdy closed 5 years ago

ryanhowdy commented 6 years ago

Assigned to Problems, Issues and Bugs #19338. As reported in Tender:

Hello.
Ik been trying to install FCM on my server. Im running CentosWebPanel. on a centos 7 machine.

Distro Name: CentOS Linux release 7.5.1804 (Core)
Kernel Version: 3.10.0-862.3.2.el7.x86_64
Apache version: Apache/2.4.29
PHP version: 7.2.2
MySQL version: 10.1.33-MariaDB

and when i have applied database credentials and press next, i get this error code
Fatal error: Cannot redeclare ImageCreateFromBMP() in /home/site4/public_html/site4.lokaal/inc/utils.php on line 3647

I changed the rights on few folders you mentioned in the installation instructions..but I cant find any other requirements.
I hope you can help me out.

Regards
Mike

ryanhowdy commented 6 years ago
if (!function_exists('ImageCreateFromBMP')) {
    function ImageCreateFromBMP()
    {
        ... code is here ...
    }
}
ryanhowdy commented 5 years ago

Assigned to Tender discussion #33086.

leolivier commented 5 years ago

Hi, This bug is closed but I still got the error when trying to install 3.7.0 version on a raspberry pi (rasbian latest, php7.3 fpm, apache): [Sun Sep 08 19:16:30.364490 2019] [proxy_fcgi:error] [pid 1110:tid 1691493408] [client 192.168.0.254:43572] AH01071: Got error 'PHP message: PHP Fatal error: Cannot redeclare ImageCreateFromBMP() in /var/www/familyconnections/inc/utils.php on line 3647' Does it mean the fix has never been released?

ryanhowdy commented 4 years ago

Sorry, this is closed because it's been fixed in version 3.8.0, but that hasn't been released yet.