The International Simutrans Forum

Information and Announcements => Information & Announcements => Topic started by: Isaac Eiland-Hall on January 04, 2024, 03:15:32 AM

Title: 2024-01-03 Server Outage
Post by: Isaac Eiland-Hall on January 04, 2024, 03:15:32 AM
In brief because I must to bed: Server ran out of disk space due to backups and crashed. I wasn't able to fix until this evening. Apologies for the downtime.

For any sites that are suffering, database tables might need to be repaired. I'll try to check on that, but anyone with WHM access might be able to help - and let me know any sites that are still down you run across and I'll get to them soon as I can.
Title: Re: 2024-01-03 Server Outage
Post by: jamespetts on January 04, 2024, 10:35:15 AM
Good to see it back up again!
Title: Re: 2024-01-03 Server Outage
Post by: Andarix on January 05, 2024, 07:11:05 PM
Does the contents of the folder
http://simutrans.com/gallery/ still exist?



graphics.simutrans.com (https://graphics.simutrans.com)

return error
Deprecated: Automatic conversion of false to array is deprecated in /home/sg/public_html/include/debugger.inc.php on line 114
Title: Re: 2024-01-03 Server Outage
Post by: Roboron on January 07, 2024, 03:54:25 PM
The images are still there, but the software (Coppermine Photo Gallery - CPG) is not working properly.

I've taken a look. It seems CPG was updated to version 1.6.x some time ago, but the update was not completed. The database shows that last working version was 1.4.1.0.

According to documentation, we need:

1) To update first CPG to version 1.5.x https://coppermine-gallery.net/demo/cpg15x/docs/en/upgrading.htm
2) Then update CPG from version 1.5.x to version 1.6.x https://coppermine-gallery.net/docs/curr/en/upgrading.htm

I tried to do the first update, only to fail. I can't update to version 1.5.x because the required PHP version is 7.0, while cPanel only allows me to set 7.3 as minimum (https://docs.cpanel.net/ea4/php/introduction-to-php/#php-versions).

So now the page shows a "Call to undefined function mysql_connect()" error. I don't know if there is a way to install an older version of PHP to perform the upgrade, Isaac may know better. Otherwise, we are doomed.

I found this thread where a solution is discussed, but the reference thread no longer exists https://forum.coppermine-gallery.net/index.php?topic=80058.0
Title: Re: 2024-01-03 Server Outage
Post by: Andarix on January 07, 2024, 05:43:47 PM
It makes more sense to export the database and do the updates locally with xampp. Alternatively, use a VM with suitable software.
Title: Re: 2024-01-03 Server Outage
Post by: Isaac Eiland-Hall on January 07, 2024, 09:27:50 PM
Alas, 7.3 is as low as I can go. :(