Page 1 of 1

Debug from AUtoMOD 1.0.2?

Posted: Tue Dec 25, 2012 8:45 am
by Shorty1968
Hello I get the following debug message:

Code: Select all

[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_mods.php on line 103: Undefined index: LANG
The line to be bleated:

Code: Select all

$return [$row['attrs']['LANG']] = trim($row['data']);
All the code in which the error pulls in this way:

Code: Select all

function get_title($header)
{
    if (is_string($header['TITLE']))
    {
        return($header['TITLE']);
    }
 
    $return = array();
    foreach ($header['TITLE'] as $row)
    {
        if (!is_array($row))
        {
            continue;
        }
 
        $return [$row['attrs']['LANG']] = trim($row['data']);
    }
 
    return($return);
}
How can i fix this?

Re: Debug from AUtoMOD 1.0.2?

Posted: Tue Dec 25, 2012 12:42 pm
by tumba25
What MOD are you trying to install?

Re: Debug from AUtoMOD 1.0.2?

Posted: Tue Dec 25, 2012 12:46 pm
by Shorty1968
MOD does not install that was phpbb instaled brand new.

Re: Debug from AUtoMOD 1.0.2?

Posted: Tue Dec 25, 2012 7:20 pm
by tumba25
So you have no installed MODs and you do not try to install any either? I don't think you should be able to get that error, I could not reproduce it.

If you can reproduce the error, please report it in our tracker.

Re: Debug from AUtoMOD 1.0.2?

Posted: Tue Dec 25, 2012 9:19 pm
by Lumpy Burgertushie
exactly what are you doing when you get that error?

robert

Re: Debug from AUtoMOD 1.0.2?

Posted: Fri Apr 12, 2013 11:34 pm
by RCG Blaze cV
i have a similiar error ... i was trying to install vbulletin mods and not sure what mods was bout a week ago... but this is the message i have

[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_mods.php on line 96: Invalid argument supplied for foreach()


----------------



how to i fix this?

Re: Debug from AUtoMOD 1.0.2?

Posted: Sat Apr 13, 2013 3:09 am
by Lumpy Burgertushie
what are "v bulletin mods"?

if you are talking about some MOD that is designed for vb then it will not work in phpbb at all.

please explain exactly what you are doing.


robert

Re: Debug from AUtoMOD 1.0.2?

Posted: Sat Apr 13, 2013 11:26 pm
by RCG Blaze cV
V BULLETIN MODS are mods on phpbb to make ur forum have some of the features that Vbulletin has


i am just trying to get rid of this message


[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_mods.php on line 96: Invalid argument supplied for foreach()




and make automod work agian

Re: Debug from AUtoMOD 1.0.2?

Posted: Sun Apr 14, 2013 12:44 am
by Lumpy Burgertushie
since that file the error relates to is not part of phpbb but is part of automod, I would say to upload that file again and/or all of the automod files again.

how are you uploading the files?



as far as I know there are no MOD in the database that are specifically called vb MODs so if you have a question about a particular MOD you would need to ask in that MOD's discussion topic.

luck,
robert