ElkArte Community

Project Support => Support => Topic started by: ahrasis on November 02, 2016, 09:59:18 pm

Title: Addon's Bug
Post by: ahrasis on November 02, 2016, 09:59:18 pm
I got this critical error message: The database value you're trying to insert does not exist: no_member while testing mesfa addon on 1.1 Beta 3. Based on the log it is coming from Load.php (along) line 1814 which I think is this:
Code: [Select]
function loadEssentialThemeData()
{
global $settings, $modSettings, $mbname, $context;

$db = database();

// Get all the default theme variables.
$db->fetchQueryCallback('
SELECT id_theme, variable, value
FROM {db_prefix}themes
WHERE id_member = {int:no_member}
AND id_theme IN (1, {int:theme_guests})',
array(
'no_member' => 0,
'theme_guests' => $modSettings['theme_guests'],
),
function($row)
{
global $settings;

$settings[$row['variable']] = $row['value'];

// Is this the default theme?
if (in_array($row['variable'], array('theme_dir', 'theme_url', 'images_url')) && $row['id_theme'] == '1')
$settings['default_' . $row['variable']] = $row['value'];
}
);

What should I look deeper into to fix this?
Title: Re: Addon's Bug
Post by: emanuele on November 03, 2016, 05:20:19 am
Does that have anything to do with the other topic about the db callback? (Just to be sure :) )
Title: Re: Addon's Bug
Post by: ahrasis on November 04, 2016, 12:58:49 am
I think they are due to the same addon. Do ignore this one.