What would be a reason why SMF 2.1 would not run on php 7.3 ???
Likely it just hasn't been tested.
Are you having a specific error we can look at?
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.
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.
ask your host if they know why it is not working.
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.
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.
Shouldn't be, 10.1 is more compatible as far as we know.
Are the DB settings definitely correct?
Yes, I can switch between 7.1 and 7.2 and 3 and the only version that works is 7.1 for some reason.
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.
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?
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.
does your phpmyadmin tell you which MariaDB version it is connected to?
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
This is the database info from phpmyadmin:
- Server: Localhost via UNIX socket
- Server type: MariaDB
- Server connection: SSL is not being used (https://192.64.116.8:2083/cpsess0522073569/3rdparty/phpMyAdmin/themes/dot.gif) (https://192.64.116.8:2083/cpsess0522073569/3rdparty/phpMyAdmin/doc/html/setup.html#ssl)
- Server version: 10.2.23-MariaDB - MariaDB Server
- Protocol version: 10
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.
Ok, now I'm lost, lol.
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)
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.
I have to go to work but will check on this later when I get home.
And there's nothing in the error logs on the host?
This is the only error in the error logs in cpanel:
https://www.simplemachines.org/community/index.php?topic=569300.msg4028673#msg4028673
I can check WHM if you need me to
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
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
that is why I suggested you contact your host. you pay them for a reason.
I guess I will have to. I'm at a loss here.
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.
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. ;) ;)
SMF Helper is running 7.3.8 now I think it is. ;)