SMF 2.0.14 -> 2.0.15 Undefined index: db_get_engine in Subs-Admin

Started by Demidrin, November 21, 2017, 03:31:29 AM

Previous topic - Next topic

Demidrin

Hi everyone,

after the update from SMF 2.0.14 to 2.0.15 (via package manager) I can't access the admin welcome page anymore.

I get following error log entry:

8: Undefined index: db_get_engine
File: ...../Sources/Subs-Admin.php
Line: 80


This is the part from Subs-Admin.php:
function getServerVersions($checkFor)
{
global $txt, $db_connection, $_PHPA, $smcFunc, $memcached, $modSettings;

loadLanguage('Admin');

$versions = array();

// Is GD available?  If it is, we should show version information for it too.
if (in_array('gd', $checkFor) && function_exists('gd_info'))
{
$temp = gd_info();
$versions['gd'] = array('title' => $txt['support_versions_gd'], 'version' => $temp['GD Version']);
}

// Now lets check for the Database.
if (in_array('db_server', $checkFor))
{
db_extend();
if (!isset($db_connection) || $db_connection === false)
trigger_error('getServerVersions(): you need to be connected to the database in order to get its server version', E_USER_NOTICE);
else
{
$versions['db_engine'] = array('title' => sprintf($txt['database_server'], $smcFunc['db_title']), 'version' => '');
$versions['db_engine']['version'] = $smcFunc['db_get_engine']();

$versions['db_server'] = array('title' => sprintf($txt['support_versions_db'], $smcFunc['db_title']), 'version' => '');
$versions['db_server']['version'] = $smcFunc['db_get_version']();
}
}
[...]


Line 80 is this line:
$versions['db_engine']['version'] = $smcFunc['db_get_engine']();

Is this maybe a bug of the patch? The error wasn't there before.

Best regards,
Sebastian

Count


shawnb61

Could you both post your list of mods?   Maybe we can find something in common.
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

Demidrin

Ok, maybe this MySQLi fix mod is the culprit:

Forum #1
1. SMF 2.0.4 Update 1.0
2. SMF 1.1.19 / 2.0.6 Update 1.0
3. SMF 2.0.15 Update 1.0
4. SMF 2.0.14 Update 1.0
5. SMF 2.0.8 Update 1.0
6. SMF 2.0.13 Update 1.0
7. SMF 1.1.21 / 2.0.10 Update 1.0
8. SMF 2.0.11 Update 1.0
9. SMF 2.0.2 Update 1.0
10. SMF 2.0.12 Update 1.0
11. SMF 1.1.20 / 2.0.9 Update 1.0
12. SMF 2.0.7 Update 1.0
13. Fix Firefox 8.0 download problems 1.0.0
14. SMF 2.0.5 Update 1.0
15. SMF 2.0.3 Update 1.0
16. View Voters at Polls 1.0
17. MySQLi 1.0.2

Illori


Count


Demidrin

Alright, this fixed it for me too. Thank you!

Best regards,
Sebastian

P.S.: Why is this topic already marked as solved? I just gave my response. :)

Drunken Clam

Quote

P.S.: Why is this topic already marked as solved? I just gave my response. :)

Because Count, or someone else, marked it so after he said his problem was fixed.

This is why the Team prefers people to open their own topics, even if they are experiencing the same problem.  ;)

Count


Advertisement: