1
Hello everybody. Im in a critical situation.
I tried to install smartsection in my Xoops, but the sistem remind me with an error messagge that firstly I must install SmartObject.
When I proceeded to install this module (SmartObject) I just got a whitepage as answer , and now I cant access the admin area.
I activated the debug_mode through phpMyAdmin and this is the error report:
Notice: Undefined index: tag in file /modules/xlanguage/include/functions.php line 258
The code of this file is as follows:
le="color: #000000"><?php function xlanguage_select_show($options = null) { include_once XOOPS_ROOT_PATH."/modules/xlanguage/blocks/xlanguage_blocks.php"; if(empty($options)){ $options[0] = "images"; // display style: image, text, select $options[1] = " "; // delimitor $options[2] = 5; // items per line } $block = b_xlanguage_select_show($options); $content = ""; $i = 1; if(in_array($block["display"], array("images", "text"))){ foreach($block["languages"] as $name => $lang){ $content .= "<a href="".$block["url"].$lang["name"]."" title="".$lang["desc"]."">"; if($block["display"] == "images"){ $content .= "<img src="".$lang["image"]."" alt="".$lang["desc"]."""; if($block["selected"] != $lang["name"]){ $content .= " style="MozOpacity: .8; opacity: .8; filter:Alpha(opacity=80);""; } $content .= "/>"; }else{ $content .= $lang["desc"]; } $content .= "</a>"; if( ( $i++ % $block["number"] ) == 0){ $content .= "<br />"; } } }else{ /** THIS IS THE LINE 258 $content .= "<select name="".$block["tag"]."" THIS IS THE LINE 258*/ onChange="if(this.options[this.selectedIndex].value.length >0 ) { window.document.location=this.options[this.selectedIndex].value;}" >"; foreach($block["languages"] as $name => $lang){ $content .= "<option value="".$block["url"].$lang["name"]."""; if($block["selected"] == $lang["name"]){ $content .= " selected "; } $content .= "/>".$lang["desc"]."</option>"; } $content .= "</select>"; } define("XLANGUAGE_SWITCH_CODE", $content); return true; }
Thanks for your help.