Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: Decent_946 on May 05, 2019, 08:04:13 AM

Title: Fatal Error: Call to undefined function smf_db_initiate() - install.php line 810
Post by: Decent_946 on May 05, 2019, 08:04:13 AM
Hello SMF Community,

I've been facing one more unusual issue. I tried to search it around the forum but the same issue was not reported (or maybe I couldn't find it ?). Possible solutions that resembled to that issue were applied but none helps.

I've been trying to install a SMF 2.0.15 at http://www.rlpvcmp.cf/ (its a free host by 000webhost.com). Files are uploaded properly. I'm able to catch up SMF Installer when loading the URL. But as soon as I enter the Database details and continue to next step, it pops up an error saying:
Fatal error: Call to undefined function smf_db_initiate() in /storage/ssd1/832/9514832/public_html/install.php on line 810

Line 810 in install.php
$db_connection = smf_db_initiate($db_server, $db_name, $db_user, $db_passwd, $db_prefix, array('non_fatal' => true, 'dont_select_db' => !$needsDB));

the install.php file is attached. The whole of the issue seems to be because of the function smf_db_initiate(.

I've already tried changing PHP version from 7.1 to 5.6 and 5.4 as I'm installing 2.0.15. Currently, its set up to 5.4 as it is mentioned in install.php

Little help is appreciated !
Thank You.:)
Title: Re: Fatal Error: Call to undefined function smf_db_initiate() - install.php line 810
Post by: Arantor on May 05, 2019, 08:41:22 AM
What database type do you tell it to use?
Title: Re: Fatal Error: Call to undefined function smf_db_initiate() - install.php line 810
Post by: Decent_946 on May 05, 2019, 09:36:20 AM
Quote from: Arantor on May 05, 2019, 08:41:22 AM
What database type do you tell it to use?
MySQL
Title: Re: Fatal Error: Call to undefined function smf_db_initiate() - install.php line 810
Post by: br360 on May 06, 2019, 01:58:06 AM
Clicking that link in your first post gives me this error message on line 69

Call to undefined function loadDatabase() in /storage/ssd1/832/9514832/public_html/index.php on line 69

I'm not sure if the issue is a storage limitation from the free webhosting site, but have you tried reaching out to them to see if your host can help?

Can you confirm your php version is actually now 5.4? Can you also confirm both that you have set up the database correctly and that the database user has all the correct permissions? Also confirm that all of this information is correctly added: (the name of the database server name, database name and user name, db password, and db prefixes)

$db_server, $db_name, $db_user, $db_passwd, $db_prefix
Title: Re: Fatal Error: Call to undefined function smf_db_initiate() - install.php line 810
Post by: Decent_946 on May 07, 2019, 02:37:58 PM
Quote from: br360 on May 06, 2019, 01:58:06 AM
Clicking that link in your first post gives me this error message on line 69

Call to undefined function loadDatabase() in /storage/ssd1/832/9514832/public_html/index.php on line 69

I'm not sure if the issue is a storage limitation from the free webhosting site, but have you tried reaching out to them to see if your host can help?

Can you confirm your php version is actually now 5.4? Can you also confirm both that you have set up the database correctly and that the database user has all the correct permissions? Also confirm that all of this information is correctly added: (the name of the database server name, database name and user name, db password, and db prefixes)

$db_server, $db_name, $db_user, $db_passwd, $db_prefix
That actually has just appeared. It wasn't there before. When I first clicked at the link it always redirected me to http://www.rlpvcmp.cf/install.php ( if you click, its still working ). As soon as I complete step 2, that is entering database details I just get stuck on the above told issue.

Yes My PHP Version is 5.4. The details I'm entering are valid. confirmed.

I try to contact the hosting providers if they can help. I'll also try changing webhost.

Thank you for your support.
Title: Re: Fatal Error: Call to undefined function smf_db_initiate() - install.php line 810
Post by: Decent_946 on May 15, 2019, 01:14:20 PM
Just to inform you guys that Issue was not fixed even after contacting the host. I just moved to the new host. Its all fine there.
Thanks all for your support! :)