News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Error problem

Started by foempspeedy, September 14, 2010, 01:54:15 PM

Previous topic - Next topic

foempspeedy

Hi fellow smf'ers

I have this current error:

http://graphicsrequests.net/index.php?8: Undefined index: imageFile: /home/graphics/public_html/Themes/default/BoardIndex.template.php (body_above sub template - eval?)
Line: 184

http://graphicsrequests.net/index.php?action=moderate8: Undefined index: imageFile: /home/graphics/public_html/Themes/default/ModerationCenter.template.php (body_above sub template - eval?)
Line: 184

LIke you see i get the same error line every time on all actions. I remember myself trying to find a logo png from a theme to replace my own, what failed at the end and since then this happens, aswell the main logo on the forum not displaying..

Can someone tell me what i did wrong ? THanks!

// The main sub template - for theme administration.
function template_main()
{
   global $context, $settings, $options, $scripturl, $txt, $modSettings;

   echo '
   <div id="admincenter">
      <form action="', $scripturl, '?action=admin;area=theme;sa=admin" method="post" accept-charset="', $context['character_set'], '">
         <input type="hidden" value="0" name="options[theme_allow]" />
         <div class="cat_bar">
            <h3 class="catbg">
               <span class="ie6_header floatleft"><a href="', $scripturl, '?action=helpadmin;help=themes" onclick="return reqWin(this.href);" class="help"><img src="', $settings['images_url'], '/helptopics.gif" class="icon" alt="', $txt['help'], '" align="top" /></a>
               ', $txt['themeadmin_title'], '
               </span>
            </h3>
         </div>
         <div class="information">
            ', $txt['themeadmin_explain'], '
         </div>
         <div class="windowbg2">
            <span class="topslice"><span></span></span>
            <div class="content">
               <dl class="settings">
                  <dt>
                     <label for="options-theme_allow"> ', $txt['theme_allow'], '</label>
                  </dt>
                  <dd>
                     <input type="checkbox" name="options[theme_allow]" id="options-theme_allow" value="1"', !empty($modSettings['theme_allow']) ? ' checked="checked"' : '', ' class="input_check" />
                  </dd>
                  <dt>
                     <label for="known_themes_list">', $txt['themeadmin_selectable'], '</label>:
                  </dt>
                  <dd>
                     <div id="known_themes_list">';
   foreach ($context['themes'] as $theme)
      echo '
                        <label for="options-known_themes_', $theme['id'], '"><input type="checkbox" name="options[known_themes][]" id="options-known_themes_', $theme['id'], '" value="', $theme['id'], '"', $theme['known'] ? ' checked="checked"' : '', ' class="input_check" /> ', $theme['name'], '</label><br />';

      echo '
                     </div>
                     <a href="javascript:void(0);" onclick="document.getElementById(\'known_themes_list\').style.display=\'block\'; document.getElementById(\'known_themes_link\').style.display = \'none\'; return false; " id="known_themes_link" style="display: none;">[ ', $txt['themeadmin_themelist_link'], ' ]</a>
                     <script type="text/javascript"><!-- // --><![CDATA[
                        document.getElementById("known_themes_list").style.display = "none";
                        document.getElementById("known_themes_link").style.display = "";
                     // ]]></script>
                  </dd>
                  <dt>
                     <label for="theme_guests">', $txt['theme_guests'], ':</label>
                  </dt>
                  <dd>
                     <select name="options[theme_guests]" id="theme_guests">';

   // Put an option for each theme in the select box.
   foreach ($context['themes'] as $theme)
      echo '
                        <option value="', $theme['id'], '"', $modSettings['theme_guests'] == $theme['id'] ? ' selected="selected"' : '', '>', $theme['name'], '</option>';

   echo '
                     </select>
                     <span class="smalltext pick_theme"><a href="', $scripturl, '?action=theme;sa=pick;u=-1;', $context['session_var'], '=', $context['session_id'], '">', $txt['theme_select'], '</a></span>
                  </dd>
                  <dt>
                     <label for="theme_reset">', $txt['theme_reset'], '</label>:
                  </dt>
                  <dd>
                     <select name="theme_reset" id="theme_reset">
                        <option value="-1" selected="selected">', $txt['theme_nochange'], '</option>
                        <option value="0">', $txt['theme_forum_default'], '</option>';

   // Same thing, this time for changing the theme of everyone.
   foreach ($context['themes'] as $theme)
      echo '
                        <option value="', $theme['id'], '">', $theme['name'], '</option>';

   echo '
                     </select>
                     <span class="smalltext pick_theme"><a href="', $scripturl, '?action=theme;sa=pick;u=0;', $context['session_var'], '=', $context['session_id'], '">', $txt['theme_select'], '</a></span>
                  </dd>
               </dl>
               <div class="righttext">
                  <input type="submit" name="submit" value="' . $txt['save'] . '" class="button_submit" />
               </div>
            </div>
            <span class="botslice"><span></span></span>
         </div>
         <input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
      </form>';

   // Link to simplemachines.org for latest themes and info!
   echo '
      <br />
      <div class="cat_bar">
         <h3 class="catbg">
            <span class="ie6_header floatleft"><a href="', $scripturl, '?action=helpadmin;help=latest_themes" onclick="return reqWin(this.href);" class="help"><img src="', $settings['images_url'], '/helptopics.gif" alt="', $txt['help'], '" /></a> ', $txt['theme_latest'], '</span>
         </h3>
      </div>
      <div class="windowbg">
         <span class="topslice"><span></span></span>
         <div class="content">
            <div id="themeLatest">
               ', $txt['theme_latest_fetch'], '
            </div>
         </div>
         <span class="botslice"><span></span></span>
      </div>
      <br />';

   // Warn them if theme creation isn't possible!
   if (!$context['can_create_new'])
      echo '
      <div class="errorbox">', $txt['theme_install_writable'], '</div>';

      echo '
      <form action="', $scripturl, '?action=admin;area=theme;sa=install" method="post" accept-charset="', $context['character_set'], '" enctype="multipart/form-data" onsubmit="return confirm(\'', $txt['theme_install_new_confirm'], '\');">
         <div class="cat_bar">
            <h3 class="catbg">
               <span class="ie6_header floatleft"><a href="', $scripturl, '?action=helpadmin;help=theme_install" onclick="return reqWin(this.href);" class="help"><img src="', $settings['images_url'], '/helptopics.gif" alt="', $txt['help'], '" /></a> ', $txt['theme_install'], '</span>
            </h3>
         </div>
         <div class="windowbg">
            <span class="topslice"><span></span></span>
            <div class="content">
               <dl class="settings">';

   // Here's a little box for installing a new theme.
   // !!! Should the value="theme_gz" be there?!
   if ($context['can_create_new'])
      echo '
                  <dt>
                     <label for="theme_gz">', $txt['theme_install_file'], '</label>:
                  </dt>
                  <dd>
                     <input type="file" name="theme_gz" id="theme_gz" value="theme_gz" size="40" onchange="this.form.copy.disabled = this.value != \'\'; this.form.theme_dir.disabled = this.value != \'\';" class="input_file" />
                  </dd>';

   echo '
                  <dt>
                     <label for="theme_dir">', $txt['theme_install_dir'], '</label>:
                  </dt>
                  <dd>
                     <input type="text" name="theme_dir" id="theme_dir" value="', $context['new_theme_dir'], '" size="40" style="width: 70%;" class="input_text" />
                  </dd>';

   if ($context['can_create_new'])
      echo '
                  <dt>
                     <label for="copy">', $txt['theme_install_new'], ':</label>
                  </dt>
                  <dd>
                     <input type="text" name="copy" id="copy" value="', $context['new_theme_name'], '" size="40" class="input_text" />
                  </dd>';

   echo '
               </dl>
               <div class="righttext">
                  <input type="submit" name="submit" value="', $txt['theme_install_go'], '" class="button_submit" />
               </div>
            </div>
            <span class="botslice"><span></span></span>
         </div>
         <input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
      </form>
   </div>
   <br class="clear" />

      <script type="text/javascript"><!-- // --><![CDATA[
         window.smfForum_scripturl = "', $scripturl, '";
         window.smfForum_sessionid = "', $context['session_id'], '";
         window.smfForum_sessionvar = "', $context['session_var'], '";
         window.smfThemes_writable = ', $context['can_create_new'] ? 'true' : 'false', ';
      // ]]></script>';

   if (empty($modSettings['disable_smf_js']))
      echo '
      <script type="text/javascript" src="', $scripturl, '?action=viewsmfile;filename=latest-themes.js"></script>';

   echo '
      <script type="text/javascript"><!-- // --><![CDATA[
         var tempOldOnload;

         function smfSetLatestThemes()
         {
            if (typeof(window.smfLatestThemes) != "undefined")
               setInnerHTML(document.getElementById("themeLatest"), window.smfLatestThemes);

            if (tempOldOnload)
               tempOldOnload();
         }
      // ]]></script>';

   // Gotta love IE4, and its hatefulness...
   if ($context['browser']['is_ie4'])
      echo '
      <script type="text/javascript"><!-- // --><![CDATA[
         addLoadEvent(smfSetLatestThemes);
      // ]]></script>';
   else
      echo '
      <script type="text/javascript"><!-- // --><![CDATA[
         smfSetLatestThemes();
      // ]]></script>';
}

xenovanis

Please attach the file index.template.php of the theme you modified.
"Insanity: doing the same thing over and over again and expecting different results."

foempspeedy

#2
added 2
dunno witch one it was for sure

xenovanis

"Insanity: doing the same thing over and over again and expecting different results."

Alex' Manson

umm, side nother next time please post the error as a code ( error here
so we can read it fatser :)
and we reply faster

foempspeedy

Nope sorry, only SMF Gallery Lite . Could it be possible that i accidently deleted the main logo from default or core and that it affects all themes then , just a guess.

xenovanis

Not very likely. Almost every theme uses it own index.template.php, where the logo is defined. This happens on other themes as well? Besides that 'imageFile' is not used in vanilla SMF, so it has to come from some modification.

Did you uninstall any mods recently?

Quote from: skander1345 on September 14, 2010, 04:35:37 PM
umm, side nother next time please post the error as a code ( error here
so we can read it fatser :)
and we reply faster

skander1345, please stop making useless comments in random topics. If you have nothing to contribute, there's no need to post at all. Unless you found a solution, then post it. Otherwise not. Thank you.
"Insanity: doing the same thing over and over again and expecting different results."

Advertisement: