Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Aiheen aloitti: waste2 - tammikuu 25, 2020, 10:11:18 AP

Otsikko: Upgrade to PHP7 complete but can't post - error
Kirjoitti: waste2 - tammikuu 25, 2020, 10:11:18 AP
I've tried to move forum to a different server. Old server with PHP 5.2 running SMF 2.0.12 to new setup with PHP 7.3. I have upgraded SMF to 2.0.17 as this should support PHP 7 and new MySQL API. Surprisingly though, when I try to post something after move - I have error message:

Call to undefined function mysql_free_result()

Everything else looks fine, but can't post new messages.

I have temporarily commented out offending line (Sources/Post.php:1558) and it works fine. Not sure what are the effects of this.
Otsikko: Re: Upgrade to PHP7 complete but can't post - error
Kirjoitti: vbgamer45 - tammikuu 25, 2020, 03:18:49 IP
That line shouldn't be there. Came from a modification to SMF.
Otsikko: Re: Upgrade to PHP7 complete but can't post - error
Kirjoitti: waste2 - tammikuu 25, 2020, 03:22:17 IP
Oh... How does it work then that version check didn't report anything unusual? Is it smart enough to take modifications into account?
Otsikko: Re: Upgrade to PHP7 complete but can't post - error
Kirjoitti: vbgamer45 - tammikuu 25, 2020, 03:39:11 IP
It does not take modifications in account.
That modification needed to be updated shouldn't be using the mysql_ functions
Otsikko: Re: Upgrade to PHP7 complete but can't post - error
Kirjoitti: waste2 - tammikuu 25, 2020, 03:45:22 IP
Thanks!