News:

Join the Facebook Fan Page.

Main Menu

Error log 'problem' ??

Started by Gambo916, February 09, 2012, 01:15:59 PM

Previous topic - Next topic

Gambo916

Hi Guys, I hope you can offer me some advice.

I am about a month into having my first every forum, so I am VERY inexperienced with regard to the techy side of things, so please bear this in mind if you are able to offer advice......PLEASE keep it simple, Thanks.

My 'problem' is this....

Whenever I or one of my forum members or guests does ANY action on the forum, it gets recorded in the error log.

Now forgive me for being so dull, but I thought the error log was only supposed to log anything that was deemed to be an actual 'error'.

I have only noticed this happening today, and have not been aware of it happening like that in the past.


Is what is happening correct, or is something wrong?

If so, what, and how do I go about fixing it?

Please remember that I'm a complete idiot when it comes to computers, so please keep any replies as basic as you can please, Thanks.

atb, Gambo

Eudemon

error log is suppose to hold errors
please post the error you're getting so we can help you
another good practice is to include an url to your forum

kat

Hi, Gambo and welcome to the forum!

Gambo916

My forum is http://planetairgun.com/index.php [nofollow]


This is what appears under everybody's 'error' >>>

Apply Filter: Only show the errors with the same message
8: Undefined index: canonical_url
Apply Filter: Only show the errors from this file
File: /home/planetai/public_html/Themes/default/Recent.template.php (html_above sub template - eval?)
Line: 132


Is that of any help??  ???

Thanks.

Illori

Admin -> Server Settings -> Disable evaluation of templates
Then post any new error messages without eval in them

Gambo916

Ok, done that, now this is what it says >>>

Apply Filter: Only show the error messages of this URL
http://planetairgun.com/index.php?action=admin [nofollow]
Apply Filter: Only show the errors with the same message
8: Undefined index: canonical_url
Apply Filter: Only show the errors from this file
File: /home/planetai/public_html/Themes/CoalBlack_20/index.template.php
Line: 132

Is that any more help?

Eudemon

can you post the code of that and previous/next line in your custom theme's index.template.php

Gambo916

Quote from: Eudemon on February 09, 2012, 01:45:01 PM
can you post the code of that and previous/next line in your custom theme's index.template.php
Sorry, you've lost me there...I don't know what you mean!

I said I was a numpty, didn't I??  :-[ :-[

Eudemon

there should an icon right next to
QuoteFile: /home/planetai/public_html/Themes/CoalBlack_20/index.template.php
click that it will show the codes

Gambo916

#9
Is this what you mean? >> 

Apply Filter: Only show the error messages of this URL
http://planetairgun.com/index.php?action=admin;area=logs;sa=errorlog;desc;filter=file;value=L2hvbWUvcGxhbmV0YWkvcHVibGljX2h0bWwvVGhlbWVzL0NvYWxCbGFja18yMC9pbmRleC50ZW1wbGF0ZS5waHA= [nofollow]


Or maybe this >>>

==>132:    

   

<title>', $context['page_title_html_safe'], '</title> <meta name="robots" content="index, follow" />

   

<link rel="canonical" href="', $context['canonical_url'], '" />';

Eudemon

no, not the icon that filters the error
there is another one right next to the file path, click it it will pop up a window that contains the codes of the file that produces the error
im using my college's computer so i can't make a screenshot to demonstrate

Gambo916

The pop-up window showed the codes that I put at the bottom of my last post.

Line 132 the error codes were saying, so I copy and pasted line 132 of that pop-up window.

Eudemon

is there
if (!empty($context['canonical_url']))
echo '

before
<link rel="canonical" href="', $context['canonical_url'], '" />';
?

NanoSector

Quote from: Eudemon on February 09, 2012, 02:18:03 PM
is there
if (!empty($context['canonical_url']))
echo '

before
<link rel="canonical" href="', $context['canonical_url'], '" />';
?
Do you see any? ;)
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Eudemon

normally it looks like this yeah?
// Please don't index these Mr Robot.
if (!empty($context['robot_no_index']))
echo '
<meta name="robots" content="noindex" />';

// Present a canonical url for search engines to prevent duplicate content in their indices.
if (!empty($context['canonical_url']))
echo '
<link rel="canonical" href="', $context['canonical_url'], '" />';


anyways, it could be something else causing the problem
apparently the script can't define $context['canonical_url']
just trying to find out the possibilities

Gambo916

Not that I can see.

What I get is this >

==>132:    

   

<title>', $context['page_title_html_safe'], '</title> <meta name="robots" content="index, follow" />

   

<link rel="canonical" href="', $context['canonical_url'], '" />';

Does that make any sense to you guys?  ???



Thanks for you patience!!!  ;)

NanoSector

It's fine that you want to find the possibilities, just pointing out that the code Gambo posted didn't have the If in it.

Anyway, could you please attach your "index.template.php" from your Glacier theme, here, in your next post? Thanks.
You can do this by:
1. Go in your FTP client,
2. Go into the "Themes" folder,
3. Go into a folder with "glacier" in it,
4. Copy over the index.template.php to your computer (drag'n'drop),
5. Attach it to your post here.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Gambo916

Soz guys, all this is over my head.  :-[

I've attempted to sort it myself, but feel I must admit defeat, and resign myself to getting the people who set my site up, to look into it for me.


So thanks for all Your help and patience Guys....I'll try to post back about what the problem was once it's sorted (if I understand it).

atvb, Gambo.  ;)

Ieazo

// The main sub template above the content.
function template_html_above()
{
   global $context, $settings, $options, $scripturl, $txt, $modSettings;

   // Show right to left and the character set for ease of translating.
   echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "hxxp:www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd [nonactive]">
<html xmlns="hxxp:www.w3.org/1999/xhtml"' [nonactive];, $context['right_to_left'] ? ' dir="rtl"' : '', '>
<head>';

   // The ?fin20 part of this link is just here to make sure browsers don't cache it wrongly.
   echo '
   <link rel="Shortcut Icon" href="favicon.ico">
   <link rel="icon" href="favicon.png" type="image/png">
        <link rel="icon" href="favicon.gif" type="image/gif">
   <link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/css/index', $context['theme_variant'], '.css?fin20" />';

   // Some browsers need an extra stylesheet due to bugs/compatibility issues.
   foreach (array('ie7', 'ie6', 'webkit') as $cssfix)
      if ($context['browser']['is_' . $cssfix])
         echo '
   <link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/css/', $cssfix, '.css" />';

   // RTL languages require an additional stylesheet.
   if ($context['right_to_left'])
      echo '
   <link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/css/rtl.css" />';

   // Here comes the JavaScript bits!
   echo '
   <script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/script.js?fin20"></script>
   <script type="text/javascript" src="', $settings['theme_url'], '/scripts/theme.js?fin20"></script>
   <script type="text/javascript"><!-- // --><![CDATA[
      var smf_theme_url = "', $settings['theme_url'], '";
      var smf_default_theme_url = "', $settings['default_theme_url'], '";
      var smf_images_url = "', $settings['images_url'], '";
      var smf_scripturl = "', $scripturl, '";
      var smf_iso_case_folding = ', $context['server']['iso_case_folding'] ? 'true' : 'false', ';
      var smf_charset = "', $context['character_set'], '";', $context['show_pm_popup'] ? '
      var fPmPopup = function ()
      {
         if (confirm("' . $txt['show_personal_messages'] . '"))
            hxxp:window.open [nonactive](smf_prepareScriptUrl(smf_scripturl) + "action=pm");
      }
      addLoadEvent(fPmPopup);' : '', '
      var ajax_notification_text = "', $txt['ajax_in_progress'], '";
      var ajax_notification_cancel_text = "', $txt['modify_cancel'], '";
   // ]]></script>';

   echo '
   <meta http-equiv="Content-Type" content="text/html; charset=', $context['character_set'], '" />
   <meta name="description" content="A World Dedicated to airguns for airgunners" />', !empty($context['meta_keywords']) ? '
   <meta name="keywords" content=" airgun forum, shooting, airgun, air gun, hunting, hunter, target, country, sport, sports, country sports,
        game fair, rifle, pistol, pellet, magazine, multi-shot, scope, mounts, night vision, lamping, ammunition, pigeon shooting, rabbit shooting,
        rat shooting, squirrel shooting, target shooting, Airgun, Targets, Shooting, Hunting, Scopes, Sights, Pellets, Optics, Barrels" />' : '', '
   <title>', $context['page_title_html_safe'], '</title> <meta name="robots" content="index, follow" />   <link rel="canonical" href="', $context['canonical_url'], '" />';




   // Show all the relative links, such as help, search, contents, and the like.
   echo '
   <link rel="help" href="', $scripturl, '?action=help" />
   <link rel="search" href="', $scripturl, '?action=search" />
   <link rel="contents" href="', $scripturl, '" />';

   // If RSS feeds are enabled, advertise the presence of one.
   if (!empty($modSettings['xmlnews_enable']) && (!empty($modSettings['allow_guestAccess']) || $context['user']['is_logged']))
      echo '
   <link rel="alternate" type="application/rss+xml" title="', $context['forum_name_html_safe'], ' - ', $txt['rss'], '" href="', $scripturl, '?type=rss;action=.xml" />';

   // If we're viewing a topic, these should be the previous and next topics, respectively.
   if (!empty($context['current_topic']))
      echo '
   <link rel="prev" href="', $scripturl, '?topic=', $context['current_topic'], '.0;prev_next=prev" />
   <link rel="next" href="', $scripturl, '?topic=', $context['current_topic'], '.0;prev_next=next" />';

   // If we're in a board, or a topic for that matter, the index will be the board's index.
   if (!empty($context['current_board']))
      echo '
   <link rel="index" href="', $scripturl, '?board=', $context['current_board'], '.0" />';

   // Output any remaining HTML headers. (from mods, maybe?)
   echo $context['html_headers'];

   echo '
</head>
<body>';
}


Is this what you were looking for a copy of gents? any help....

Adish - (F.L.A.M.E.R)

^^ We need the file attached..

- Click "Reply" here and it will show you a proper page where you can attach the attachments.
- Click on "Additional Options..." there.
- Under the attach section, attach the file and post it here. :)

Advertisement: