Simple Machines Community Forum

SMF Support => SMF 2.1.x Support => Topic started by: Bigguy on August 22, 2019, 08:38:27 AM

Title: php 7.3
Post by: Bigguy on August 22, 2019, 08:38:27 AM
What would be a reason why SMF 2.1 would not run on php 7.3  ???
Title: Re: php 7.3
Post by: Arantor on August 22, 2019, 08:42:51 AM
Likely it just hasn't been tested.

Are you having a specific error we can look at?
Title: Re: php 7.3
Post by: d3vcho on August 22, 2019, 08:47:21 AM
AFAIK, there are some members running PHP 7.3 in the latest GitHub build. Also, Travis (the code testing tool) provides testing for PHP 7.3 in all commits.
Title: Re: php 7.3
Post by: Bigguy on August 22, 2019, 08:49:38 AM
I have 3 domains on my server and I switched one of them to 7.3 All it says is it won't connect to the database. All the other domains are on 7.1. None of them will run on 7.2 or 7.3. A member at my site switched his install to 7.3 and it ran fine. The only difference that I could see was mariadb was a different version. So there are no errors really it just won't connect to the database.
Title: Re: php 7.3
Post by: Illori on August 22, 2019, 08:55:55 AM
ask your host if they know why it is not working.
Title: Re: php 7.3
Post by: Bigguy on August 22, 2019, 08:57:19 AM
The info from my site is this:
Forum version: SMF 2.1 RC2 (more detailed)
Current SMF version: SMF 2.1 RC2
GD version: bundled (2.1.0 compatible)
MySQLi engine: MariaDB
MySQLi version: 10.2.23-MariaDB
PHP: 7.1.31 (more detailed)
Server version: Apache

From the site that will run it is this:Forum version: SMF 2.1 RC2 (more detailed)

Current SMF version: SMF 2.1 RC2
GD version: bundled (2.1.0 compatible)
MySQLi engine: MariaDB
MySQLi version: 10.1.41-MariaDB
PHP: 7.3.8 (more detailed)
Server version: Apache

I was thinking maybe it had something to do with the database versions being different.
Title: Re: php 7.3
Post by: Bigguy on August 22, 2019, 08:59:01 AM
Quote from: Illori on August 22, 2019, 08:55:55 AM
ask your host if they know why it is not working.

I guess I will have to put a ticket in I guess. This is on a vps that I manage on my own and I don't think I did anything wrong at all.
Title: Re: php 7.3
Post by: Arantor on August 22, 2019, 09:01:02 AM
Shouldn't be, 10.1 is more compatible as far as we know.

Are the DB settings definitely correct?
Title: Re: php 7.3
Post by: Bigguy on August 22, 2019, 09:03:23 AM
Yes, I can switch between 7.1 and 7.2 and 3 and the only version that works is 7.1 for some reason.
Title: Re: php 7.3
Post by: Bigguy on August 22, 2019, 09:04:09 AM
I can PM a link to someone if they like but I don't want the link in public as it's just a test site.
Title: Re: php 7.3
Post by: Illori on August 22, 2019, 09:05:23 AM
if the MariaDB is different with different php version, then it is possible that version does not have your database in it, or the user is not correct. can you log into phpmyadmin and confirm the database exists?
Title: Re: php 7.3
Post by: Bigguy on August 22, 2019, 09:06:59 AM
I am in phpmyadmin now and the database is there. I have also checked the Settings.php file and all info there is correct as well.
Title: Re: php 7.3
Post by: Illori on August 22, 2019, 09:12:51 AM
does your phpmyadmin tell you which MariaDB version it is connected to?
Title: Re: php 7.3
Post by: Bigguy on August 22, 2019, 09:14:29 AM
The only error I can find in the error log is this:

PHP Warning:  call_user_func() expects parameter 1 to be a valid callback, no array or string given in /home/*****/public_html/index.php on line 15

@illori: I will check
Title: Re: php 7.3
Post by: Bigguy on August 22, 2019, 09:15:43 AM
This is the database info from phpmyadmin:
Title: Re: php 7.3
Post by: Illori on August 22, 2019, 09:17:23 AM
that is not the version in use by your php 7.3 install. so you need to figure out how to connect to that MariaDB and see what databases it has.
Title: Re: php 7.3
Post by: Bigguy on August 22, 2019, 09:18:44 AM
Ok, now I'm lost, lol.
Title: Re: php 7.3
Post by: Bigguy on August 22, 2019, 09:33:15 AM
Quote from: Illori on August 22, 2019, 09:17:23 AM
that is not the version in use by your php 7.3 install. so you need to figure out how to connect to that MariaDB and see what databases it has.

How do you know from what I have told you. I'm not sure how to do that tbh. (Just asking)
Title: Re: php 7.3
Post by: Illori on August 22, 2019, 09:36:50 AM
QuoteForum version: SMF 2.1 RC2 (more detailed)
Current SMF version: SMF 2.1 RC2
GD version: bundled (2.1.0 compatible)
MySQLi engine: MariaDB
MySQLi version: 10.2.23-MariaDB
PHP: 7.1.31 (more detailed)
Server version: Apache

From the site that will run it is this:Forum version: SMF 2.1 RC2 (more detailed)

Current SMF version: SMF 2.1 RC2
GD version: bundled (2.1.0 compatible)
MySQLi engine: MariaDB
MySQLi version: 10.1.41-MariaDB
PHP: 7.3.8 (more detailed)
Server version: Apache

from the above it states which MariaDB is connected with which php version. at this point if you cannot configure your phpmyadmin to connect to MariaDB 10.1.41, you would need to connect via CLI and check the database this way. or you ask your host to fix it for you.
Title: Re: php 7.3
Post by: Bigguy on August 22, 2019, 09:42:31 AM
I have to go to work but will check on this later when I get home.
Title: Re: php 7.3
Post by: Arantor on August 22, 2019, 09:52:41 AM
And there's nothing in the error logs on the host?
Title: Re: php 7.3
Post by: Bigguy on August 22, 2019, 12:27:26 PM
This is the only error in the error logs in cpanel:

https://www.simplemachines.org/community/index.php?topic=569300.msg4028673#msg4028673
Title: Re: php 7.3
Post by: Bigguy on August 22, 2019, 12:27:41 PM
I can check WHM if you need me to
Title: Re: php 7.3
Post by: lurkalot on August 22, 2019, 12:31:30 PM
This test site is running 2.1 RC2 Nightly build from a couple of weeks ago, http://lts4.byethost7.com/index.php

It's running on a free hosting plan and on PHP: 7.3.6  Seems fine, no errors.

Version Information:
Forum version: SMF 2.1 RC2 (more detailed)
Current SMF version: SMF 2.1 RC2
GD version: bundled (2.1.0 compatible)
MySQLi engine: Percona
MySQLi version: 5.6.41-84.1
PHP: 7.3.6 (more detailed)
Server version: Apache
Title: Re: php 7.3
Post by: Bigguy on August 22, 2019, 12:42:05 PM
I can't figure out what this means or what I am supposed to check:

https://www.simplemachines.org/community/index.php?topic=569300.msg4028675#msg4028675
Title: Re: php 7.3
Post by: Illori on August 22, 2019, 12:45:29 PM
that is why I suggested you contact your host. you pay them for a reason.
Title: Re: php 7.3
Post by: Bigguy on August 22, 2019, 12:50:55 PM
I guess I will have to. I'm at a loss here.
Title: Re: php 7.3
Post by: Bigguy on August 22, 2019, 05:00:24 PM
I think I fixed it. When I installed php 7.2 and 7.3 on the server I didn't install a few extensions, namely:

php73-php-mysqlnd
php73-php-pdo

Once those were installed the site started to work.
Title: Re: php 7.3
Post by: lurkalot on August 22, 2019, 05:09:37 PM
Quote from: Bigguy on August 22, 2019, 05:00:24 PM
I think I fixed it. When I installed php 7.2 and 7.3 on the server I didn't install a few extensions, namely:

php73-php-mysqlnd
php73-php-pdo

Once those were installed the site started to work.

Nice.  Glad you got I sorted BG, I'll go check it out.   ;) ;)
Title: Re: php 7.3
Post by: Bigguy on August 22, 2019, 05:10:30 PM
SMF Helper is running 7.3.8 now I think it is. ;)