'enableChest' error

Started by Eva, February 06, 2006, 07:43:08 PM

Previous topic - Next topic

Eva

A few days ago I started having a bizzare error in my forum which I actually found out by accident...
Just to mention that I did not do any upgrades to the forum, neither have I installed any mods lately!

The error that is logged is the following:

8: Undefined index: enableChest
Αρχείο: /home/fhlinux199/m/motorwomen-gr.co.uk/user/htdocs/community/Themes/default/BoardIndex.template.php (eval?)
Line: 184

Sometimes Line 181 and Line 178 are mentioned...

Taking a look at the BoardIndex.template.php and the specific lines I found the following code:

<td align="right" class="smalltext">';
if ($modSettings['enableChest'])
echo '
<a href="', $scripturl, '?action=viewchest">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/view_chest.gif" alt="' . $txt[452] . '" border="0" />' : $txt['view_chest']), '</a>';
if ($modSettings['enableChest'])
echo '
<a href="', $scripturl, '?action=viewchest">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/view_chest.gif" alt="' . $txt[452] . '" border="0" />' : $txt['view_chest']), '</a>';
if ($modSettings['enableChest'])
echo '
<a href="', $scripturl, '?action=viewchest">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/view_chest.gif" alt="' . $txt[452] . '" border="0" />' : $txt['view_chest']), '</a>';


Looking more thoroughly in the template I found lines 70-78 that reffer to the same "chest"-thing...

  if (!empty($modSettings['enableChest']) && !empty($settings['show_category_chest']))
      echo '
      <a style="float:right" href="' , $scripturl , '?action=viewchest;c=', $category['id'], '">' , ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/view_chest.gif" alt="' . $txt[452] . '" border="0" />' : $txt['view_chest']) , '</a>';
    if (!empty($modSettings['enableChest']) && !empty($settings['show_category_chest']))
      echo '
      <a style="float:right" href="' , $scripturl , '?action=viewchest;c=', $category['id'], '">' , ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/view_chest.gif" alt="' . $txt[452] . '" border="0" />' : $txt['view_chest']) , '</a>';
    if (!empty($modSettings['enableChest']) && !empty($settings['show_category_chest']))
      echo '
      <a style="float:right" href="' , $scripturl , '?action=viewchest;c=', $category['id'], '">' , ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/view_chest.gif" alt="' . $txt[452] . '" border="0" />' : $txt['view_chest']) , '</a>';


Comparing the Board Index Template with the original one in the installation package I found that those lines do not exist...

I also found out that there are some gif images in the images (language specific) folder of the template view_chest.gif, admin_chest.gif, admin_unchest.gif and close_chest.gif.
Only close_chest seems to be really a viewable image and looks like this


Could someone tell me some more details about what this is and why has this problem appeared?
What is this "chest" thing anyway....  :-\
Can I just safely remove those lines from the board index template file?
Would that solve my problem?
I am using SMF 1.0.5. Version

Thanx for your help!  :)

Eva


DrDom

It looks like it may be from this mod,
http://mods.simplemachines.org/index.php?mod=222

it may be from a mod that you have forgot you added.


Eva

Thanx for the reply!

I had tried that mod in the test forum but obviously I mixed up some files with the real forum...  ::)

Thanx for the help and sorry for the bothering  :)

DrDom

just pleased you got it sorted.

Advertisement: