Skip to main content
Topic: Addon's Bug (Read 1462 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Addon's Bug

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?

Re: Addon's Bug

Reply #1

Does that have anything to do with the other topic about the db callback? (Just to be sure :) )
Last Edit: November 05, 2016, 01:36:39 pm by emanuele
Bugs creator.
Features destroyer.
Template killer.

Re: Addon's Bug

Reply #2

I think they are due to the same addon. Do ignore this one.