Author Topic: Error Log  (Read 496 times)

0 Members and 1 Guest are viewing this topic.

Offline ~Alex

  • Hero Member
  • *
  • Posts: 399
  • Karma: 10
  • Gender: Male
    • The ThirdEye Concept
  • SMF Version: 1.1.4
Error Log
« on: January 30, 2010, 04:38:03 PM »
hey guys. i'll admit i don't normally look at my error log, because it's confusing.  :doh

i know i probably shouldn't have any errors, but i get them all the time, and since i don't normally have a lot of time to look, i just skip it. today however, i'm curious if you can help me resolve some of these little issues that my site apparently experiences in the background.

to start with, i have a custom menu set up and i guess that has affected one of the templates. see below for examples.

:
8: Use of undefined constant Video - assumed 'Video'
File:   /home/xxxxx/public_html/xxxxx/Themes/default/SendTopic.template.php   (main_above sub template - eval?)
Line: 521

:
8: Use of undefined constant Talk - assumed 'Talk'
File:   /home/xxxxx/public_html/xxxxx/Themes/default/SendTopic.template.php   (main_above sub template - eval?)
Line: 512

:
8: Use of undefined constant Downloads - assumed 'Downloads'
  File:   /home/xxxxx/public_html/xxxxx/Themes/default/SendTopic.template.php   (main_above sub template - eval?)
  Line: 524

as stated, this is just the beginning, but any and all help is very appreciated. if you've got suggestions, please post them.

thank you.
« Last Edit: February 01, 2010, 07:01:40 AM by bigguy »

Offline ccbtimewiz

  • Dreamer
  • Guru
  • *
  • Posts: 1304
  • Karma: 2100
  • Gender: Male
  • $info->close();
    • Dream Portal
  • SMF Version: SMF 2.0 RC4
Re: Error Log
« Reply #1 on: January 30, 2010, 06:53:18 PM »
Show me the code for your custom menu

Offline ~Alex

  • Hero Member
  • *
  • Posts: 399
  • Karma: 10
  • Gender: Male
    • The ThirdEye Concept
  • SMF Version: 1.1.4
Re: Error Log
« Reply #2 on: January 30, 2010, 07:49:58 PM »
hi ccbtimewiz. it's right off the index.template file.

:
                               // Show the [forum] button.
                                    echo '<li><a' , $current_action=='forum' ? ' class="current"' : '' , ' href="http://www.urlhere/index.php?board=1.0"><span>' , Talk , '</span></a></li>';

                                // Show the [gallery] button.
                                        echo '<li><a' , $current_action=='gallery' ? ' class="current"' : '' , ' href="', $scripturl, '?action=mgallery"><span>' , 'Gallery' , '</span></a></li>';

                                // Show the [video] button.
                                        echo ' <li><a href="http://www.urlhere/index.php?board=3.0"><span>' , Video , '</span></a></li>';

                                // Show the [downloads] button.
                                        echo ' <li><a href="http://www.urlhere/index.php?page=140"><span>' , Downloads , '</span></a></li>';

                                // Show the [radio] button.
                                        echo '<li><a' , $current_action=='radio' ? ' class="current"' : '' , ' href="', $scripturl, '?action=radio" target="_blank"><span>' , 'Radio' , '</span></a></li>';

                              // The [calendar]!
                    if ($context['allow_calendar'])
                        echo '<li><a' , $current_action=='calendar' ? ' class="current"' : '' , ' href="', $scripturl, '?action=calendar"><span>' , $txt['calendar24'] , '</span></a></li>';

                              // Show the [help] button.
                                        echo '<li><a' , $current_action=='help' ? ' class="current"' : '' , ' href="', $scripturl, '?action=help"><span>' , $txt[119] , '</span></a></li>';

i did this some time ago, some without guidance, so have mercy on me for any coding faults you may see.  :zip

Offline ccbtimewiz

  • Dreamer
  • Guru
  • *
  • Posts: 1304
  • Karma: 2100
  • Gender: Male
  • $info->close();
    • Dream Portal
  • SMF Version: SMF 2.0 RC4
Re: Error Log
« Reply #3 on: January 30, 2010, 09:12:10 PM »
I thought so. You're defining constants when you shouldn't be. Replace it with this:

:
                               // Show the [forum] button.
                                    echo '<li><a' , $current_action=='forum' ? ' class="current"' : '' , ' href="http://www.urlhere/index.php?board=1.0"><span>Talk</span></a></li>';

                                // Show the [gallery] button.
                                        echo '<li><a' , $current_action=='gallery' ? ' class="current"' : '' , ' href="', $scripturl, '?action=mgallery"><span>Gallery</span></a></li>';

                                // Show the [video] button.
                                        echo ' <li><a href="http://www.urlhere/index.php?board=3.0"><span>Video</span></a></li>';

                                // Show the [downloads] button.
                                        echo ' <li><a href="' . $scripturl . '?page=140"><span>Downloads</span></a></li>';

                                // Show the [radio] button.
                                        echo '<li><a' , $current_action=='radio' ? ' class="current"' : '' , ' href="', $scripturl, '?action=radio" target="_blank"><span>Radio</span></a></li>';

                              // The [calendar]!
                    if ($context['allow_calendar'])
                        echo '<li><a' , $current_action=='calendar' ? ' class="current"' : '' , ' href="', $scripturl, '?action=calendar"><span>' , $txt['calendar24'] , '</span></a></li>';

                              // Show the [help] button.
                                        echo '<li><a' , $current_action=='help' ? ' class="current"' : '' , ' href="', $scripturl, '?action=help"><span>' , $txt[119] , '</span></a></li>';

Offline ~Alex

  • Hero Member
  • *
  • Posts: 399
  • Karma: 10
  • Gender: Male
    • The ThirdEye Concept
  • SMF Version: 1.1.4
Re: Error Log
« Reply #4 on: January 31, 2010, 03:07:42 PM »
that, totally fixed it.  :righton

thank you!