Advertisement:

Author Topic: php 7.3  (Read 1474 times)

Offline Bigguy

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,972
  • Gender: Male
  • Be nice, or else....
    • smfbigguy on GitHub
    • What's Ur Beef
php 7.3
« on: August 22, 2019, 08:38:27 AM »
What would be a reason why SMF 2.1 would not run on php 7.3  ???

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,621
    • StoryBB/StoryBB on GitHub
Re: php 7.3
« Reply #1 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?
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline d3vcho();

  • Sempiterno
  • Lead Localizer
  • SMF Hero
  • *
  • Posts: 3,859
  • Gender: Male
    • frandominguez03 on GitHub
Re: php 7.3
« Reply #2 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.

"Greeting Death as an old friend, they departed this life as equals."

Offline Bigguy

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,972
  • Gender: Male
  • Be nice, or else....
    • smfbigguy on GitHub
    • What's Ur Beef
Re: php 7.3
« Reply #3 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.

Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 51,270
Re: php 7.3
« Reply #4 on: August 22, 2019, 08:55:55 AM »
ask your host if they know why it is not working.

Offline Bigguy

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,972
  • Gender: Male
  • Be nice, or else....
    • smfbigguy on GitHub
    • What's Ur Beef
Re: php 7.3
« Reply #5 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.

Offline Bigguy

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,972
  • Gender: Male
  • Be nice, or else....
    • smfbigguy on GitHub
    • What's Ur Beef
Re: php 7.3
« Reply #6 on: August 22, 2019, 08:59:01 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.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,621
    • StoryBB/StoryBB on GitHub
Re: php 7.3
« Reply #7 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?
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline Bigguy

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,972
  • Gender: Male
  • Be nice, or else....
    • smfbigguy on GitHub
    • What's Ur Beef
Re: php 7.3
« Reply #8 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.

Offline Bigguy

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,972
  • Gender: Male
  • Be nice, or else....
    • smfbigguy on GitHub
    • What's Ur Beef
Re: php 7.3
« Reply #9 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.

Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 51,270
Re: php 7.3
« Reply #10 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?

Offline Bigguy

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,972
  • Gender: Male
  • Be nice, or else....
    • smfbigguy on GitHub
    • What's Ur Beef
Re: php 7.3
« Reply #11 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.

Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 51,270
Re: php 7.3
« Reply #12 on: August 22, 2019, 09:12:51 AM »
does your phpmyadmin tell you which MariaDB version it is connected to?

Offline Bigguy

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,972
  • Gender: Male
  • Be nice, or else....
    • smfbigguy on GitHub
    • What's Ur Beef
Re: php 7.3
« Reply #13 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

Offline Bigguy

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,972
  • Gender: Male
  • Be nice, or else....
    • smfbigguy on GitHub
    • What's Ur Beef
Re: php 7.3
« Reply #14 on: August 22, 2019, 09:15:43 AM »
This is the database info from phpmyadmin:
  • Server: Localhost via UNIX socket
  • Server type: MariaDB
  • Server connection: SSL is not being used Documentation
  • Server version: 10.2.23-MariaDB - MariaDB Server
  • Protocol version: 10

Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 51,270
Re: php 7.3
« Reply #15 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.

Offline Bigguy

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,972
  • Gender: Male
  • Be nice, or else....
    • smfbigguy on GitHub
    • What's Ur Beef
Re: php 7.3
« Reply #16 on: August 22, 2019, 09:18:44 AM »
Ok, now I'm lost, lol.

Offline Bigguy

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,972
  • Gender: Male
  • Be nice, or else....
    • smfbigguy on GitHub
    • What's Ur Beef
Re: php 7.3
« Reply #17 on: August 22, 2019, 09:33:15 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)

Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 51,270
Re: php 7.3
« Reply #18 on: August 22, 2019, 09:36:50 AM »
Quote
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

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.

Offline Bigguy

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,972
  • Gender: Male
  • Be nice, or else....
    • smfbigguy on GitHub
    • What's Ur Beef
Re: php 7.3
« Reply #19 on: August 22, 2019, 09:42:31 AM »
I have to go to work but will check on this later when I get home.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,621
    • StoryBB/StoryBB on GitHub
Re: php 7.3
« Reply #20 on: August 22, 2019, 09:52:41 AM »
And there’s nothing in the error logs on the host?
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline Bigguy

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,972
  • Gender: Male
  • Be nice, or else....
    • smfbigguy on GitHub
    • What's Ur Beef
Re: php 7.3
« Reply #21 on: August 22, 2019, 12:27:26 PM »

Offline Bigguy

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,972
  • Gender: Male
  • Be nice, or else....
    • smfbigguy on GitHub
    • What's Ur Beef
Re: php 7.3
« Reply #22 on: August 22, 2019, 12:27:41 PM »
I can check WHM if you need me to

Offline lurkalot

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 1,439
  • Gender: Male
  • Tinyportal Support
    • guitaristguild on Facebook
    • Tinyportal on GitHub
    • @GuitaristGuild on Twitter
    • Guitarist Guild
Re: php 7.3
« Reply #23 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

Offline Bigguy

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,972
  • Gender: Male
  • Be nice, or else....
    • smfbigguy on GitHub
    • What's Ur Beef
Re: php 7.3
« Reply #24 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

Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 51,270
Re: php 7.3
« Reply #25 on: August 22, 2019, 12:45:29 PM »
that is why I suggested you contact your host. you pay them for a reason.

Offline Bigguy

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,972
  • Gender: Male
  • Be nice, or else....
    • smfbigguy on GitHub
    • What's Ur Beef
Re: php 7.3
« Reply #26 on: August 22, 2019, 12:50:55 PM »
I guess I will have to. I'm at a loss here.

Offline Bigguy

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,972
  • Gender: Male
  • Be nice, or else....
    • smfbigguy on GitHub
    • What's Ur Beef
Re: php 7.3
« Reply #27 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.

Offline lurkalot

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 1,439
  • Gender: Male
  • Tinyportal Support
    • guitaristguild on Facebook
    • Tinyportal on GitHub
    • @GuitaristGuild on Twitter
    • Guitarist Guild
Re: php 7.3
« Reply #28 on: August 22, 2019, 05:09:37 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.   ;) ;)

Offline Bigguy

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,972
  • Gender: Male
  • Be nice, or else....
    • smfbigguy on GitHub
    • What's Ur Beef
Re: php 7.3
« Reply #29 on: August 22, 2019, 05:10:30 PM »
SMF Helper is running 7.3.8 now I think it is. ;)