Advertisement:

Author Topic: Fatal Error: Call to undefined function smf_db_initiate() - install.php line 810  (Read 363 times)

Offline Asadullah

  • Semi-Newbie
  • *
  • Posts: 33
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:
Code: [Select]
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
Code: [Select]
$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.:)

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 70,939
    • StoryBB/StoryBB on GitHub
What database type do you tell it to use?
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 Asadullah

  • Semi-Newbie
  • *
  • Posts: 33
What database type do you tell it to use?
MySQL

Offline br360

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 2,351
    • GenXcommunity
Clicking that link in your first post gives me this error message on line 69

Code: [Select]
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

Offline Asadullah

  • Semi-Newbie
  • *
  • Posts: 33
Clicking that link in your first post gives me this error message on line 69

Code: [Select]
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.

Offline Asadullah

  • Semi-Newbie
  • *
  • Posts: 33
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! :)