WBCE CMS Forum

WBCE CMS – Way Better Content Editing.

Du bist nicht angemeldet.

#1 28.03.2018 02:52:04

losttrip
Mitglied

Notice: Undefined variable: mod_name in languages

Was a solution for this issue found yet:
https://forum.wbce.org/viewtopic.php?pid=4586#p4586

OneForAll
Additionally, it makes throws in the Addon Monitor for many lines in the DE.php for which reasons ever the following

    Notice: Undefined variable: mod_name in /.../modules/oneforall/languages/DE.php on line x

x = 37..130

My notices run from 37-151:

Notice: Undefined variable: mod_name in /home/myserver/public_html/mysite/modules/myofa/languages/EN.php on line 151

Online

#2 28.03.2018 07:32:40

florian
Administrator

Re: Notice: Undefined variable: mod_name in languages

mod_name is set in the info.php, which is not loaded by the language files.
To fix this, add the following lines above the line 37:

// Get module name and config
$inc_path_helper = dirname(__FILE__);
$inc_path_helper = substr($inc_path_helper, 0, strpos($inc_path_helper,'/languages'));
require_once($inc_path_helper.'/info.php');

Code allein macht nicht glücklich. Jetzt spenden!

Online

Fußzeile des Forums

up