Advertisement:

Author Topic: php 7.3  (Read 3531 times)

Offline Bigguy

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 13,007
  • 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: 72,782
    • 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?
Please don’t PM me for paid work, I’m not for hire, and even if I was, I doubt you could afford me.
USD$150 per hour. Typical waiting list 3 months.

Online d3vcho

  • Sempiterno
  • Lead Localizer
  • SMF Hero
  • *
  • Posts: 4,376
  • 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: 13,007
  • 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: 52,499
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: 13,007
  • 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: 13,007
  • 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: 72,782
    • 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?
Please don’t PM me for paid work, I’m not for hire, and even if I was, I doubt you could afford me.
USD$150 per hour. Typical waiting list 3 months.

Offline Bigguy

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 13,007
  • 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: 13,007
  • 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: 52,499
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: 13,007
  • 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: 52,499
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: 13,007
  • 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: 13,007
  • 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: 52,499
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: 13,007
  • 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: 13,007
  • 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: 52,499
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: 13,007
  • 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.