News:

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

Main Menu

8: Undefined index: curr_time Error

Started by meemzo, September 16, 2014, 12:42:37 PM

Previous topic - Next topic

meemzo

8: Undefined index: curr_time

Getting this error in the IP error logs with every visitor, guest and members, and every page load.  Does anyone know what this means?

Arantor

Any other information on the error? You should get more information in the error log than that.

meemzo

It gives the error and the page visited, which is every page they visit.

8: Undefined index: curr_time
?action=post;quote=101557;topic=362.0    Today at 11:29 AM

8: Undefined index: curr_time
?action=post;quote=101557;topic=362.0    Today at 11:28 AM

8: Undefined index: curr_time
?action=post;quote=101557;topic=362.0    Today at 11:28 AM

8: Undefined index: curr_time
?/topic,362.msg101557.html          Today at 11:25 AM

8: Undefined index: curr_time
?/topic,362.msg101551.html          Today at 11:25 AM

I left off the member name and IP.

Ninja ZX-10RR

And also the file, that was the information needed -_-
Quote from: BeastMode topic=525177.msg3720020#msg3720020
It's so powerful that on this post and even in the two PMs you sent me,you still answered my question very quickly and you're apologizing for the delay. You're the #1 support I've probably ever encountered man, so much respect for that. Thank you, and get better soon.

I'll keep this in my siggy for a while just to remind me that someone appreciated what I did while others didn't.

♥ Jess ♥

STOP EDITING MY PROFILE

Kindred

... The file...    AND the line number of the error.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Ninja ZX-10RR

Yeah I thought it was obvious along with the file xD
Quote from: BeastMode topic=525177.msg3720020#msg3720020
It's so powerful that on this post and even in the two PMs you sent me,you still answered my question very quickly and you're apologizing for the delay. You're the #1 support I've probably ever encountered man, so much respect for that. Thank you, and get better soon.

I'll keep this in my siggy for a while just to remind me that someone appreciated what I did while others didn't.

♥ Jess ♥

STOP EDITING MY PROFILE

meemzo


Arantor

The one listed in the error log as being the cause of the error...

meemzo

Ok, it took a minute to sink in that there was an error "log".  I was seeing it in the who's online, ip log. Duh.  Anyway here is what it says:

http://thewalkingrebels.com/index.php?action=admin;area=logs;sa=errorlog;desc;filter=error_type;value=undefined_vars

8: Undefined index: curr_time

File: /home4/rebels/public_html/Themes/default/Alerts.template.php (body_above sub template - eval?)
Line: 226

Ninja ZX-10RR

Go to Forum » Administration Center » Server Settings » General and check "Disable evaluation of templates" and then post the error again, it will be different ;)
I suspect that it's a bug in a mod anyway...
Quote from: BeastMode topic=525177.msg3720020#msg3720020
It's so powerful that on this post and even in the two PMs you sent me,you still answered my question very quickly and you're apologizing for the delay. You're the #1 support I've probably ever encountered man, so much respect for that. Thank you, and get better soon.

I'll keep this in my siggy for a while just to remind me that someone appreciated what I did while others didn't.

♥ Jess ♥

STOP EDITING MY PROFILE

meemzo

Newest error after disabling template errors.

http://thewalkingrebels.com/index.php?action=search
8: Undefined index: curr_time
File: /home4/rebels/public_html/Themes/blackrain_202/index.template.php
Line: 226

Ninja ZX-10RR

That's an error related to a theme, you should request support for that in the theme support topic. Unfortunately in this case the author passed away... (http://www.simplemachines.org/community/index.php?topic=516486.0 R.I.P. Crip :'() Please attach the file so that someone might have a look...
Quote from: BeastMode topic=525177.msg3720020#msg3720020
It's so powerful that on this post and even in the two PMs you sent me,you still answered my question very quickly and you're apologizing for the delay. You're the #1 support I've probably ever encountered man, so much respect for that. Thank you, and get better soon.

I'll keep this in my siggy for a while just to remind me that someone appreciated what I did while others didn't.

♥ Jess ♥

STOP EDITING MY PROFILE

Deaks

More importantly what mods do you have installed??
~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

Ninja ZX-10RR

If the error comes from a mod when he attaches the file and you see those strings you should be able to determine if those strings are part of a mod or not ;)
Quote from: BeastMode topic=525177.msg3720020#msg3720020
It's so powerful that on this post and even in the two PMs you sent me,you still answered my question very quickly and you're apologizing for the delay. You're the #1 support I've probably ever encountered man, so much respect for that. Thank you, and get better soon.

I'll keep this in my siggy for a while just to remind me that someone appreciated what I did while others didn't.

♥ Jess ♥

STOP EDITING MY PROFILE

Deaks

the fact of matter the mod is effecting more than the theme ... for example its showing also in a non default file ... helpin fix the issue overall will stop any issues in future as in the long term not just the short!
~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

Ninja ZX-10RR

I don't see any difference between what I said and what you said in the end :)
Quote from: BeastMode topic=525177.msg3720020#msg3720020
It's so powerful that on this post and even in the two PMs you sent me,you still answered my question very quickly and you're apologizing for the delay. You're the #1 support I've probably ever encountered man, so much respect for that. Thank you, and get better soon.

I'll keep this in my siggy for a while just to remind me that someone appreciated what I did while others didn't.

♥ Jess ♥

STOP EDITING MY PROFILE

Arantor

All we know is that it is a file from the theme, it could be a rogue mod, it could be the theme. Getting the user's actual file is by far the best way to investigate...

Deaks

Well if we know the mod the support topic may already have the answer ..
~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

Arantor

Eh, this is why I asked for the code itself because if I can see the code, I can give you a good idea of what mod it probably is just from the code.

If in doubt the code will always show you what's going on ;)

Ninja ZX-10RR

That's what I said in reply #11 and #13, basically. Lol :) I'll wait for the file despite I know that the big guy above me will handle it way better >_<
Quote from: BeastMode topic=525177.msg3720020#msg3720020
It's so powerful that on this post and even in the two PMs you sent me,you still answered my question very quickly and you're apologizing for the delay. You're the #1 support I've probably ever encountered man, so much respect for that. Thank you, and get better soon.

I'll keep this in my siggy for a while just to remind me that someone appreciated what I did while others didn't.

♥ Jess ♥

STOP EDITING MY PROFILE

meemzo

Where do I find the file that needs to be uploaded here?

Ninja ZX-10RR

On the server that is hosting you, access it via cPanel or either FTP, doesn't matter as long as you access it :P
Quote from: BeastMode topic=525177.msg3720020#msg3720020
It's so powerful that on this post and even in the two PMs you sent me,you still answered my question very quickly and you're apologizing for the delay. You're the #1 support I've probably ever encountered man, so much respect for that. Thank you, and get better soon.

I'll keep this in my siggy for a while just to remind me that someone appreciated what I did while others didn't.

♥ Jess ♥

STOP EDITING MY PROFILE

meemzo


Ninja ZX-10RR

Now it's up to some coder since I can't fix it. It will be fixed anyway :)
Quote from: BeastMode topic=525177.msg3720020#msg3720020
It's so powerful that on this post and even in the two PMs you sent me,you still answered my question very quickly and you're apologizing for the delay. You're the #1 support I've probably ever encountered man, so much respect for that. Thank you, and get better soon.

I'll keep this in my siggy for a while just to remind me that someone appreciated what I did while others didn't.

♥ Jess ♥

STOP EDITING MY PROFILE

meemzo

Looks like the bug is in the display user name and time current time line:

// Display user name and time.
   echo '
      <ul id="greeting_section" class="reset titlebg2">
         <li id="time" class="smalltext floatright">
            ', $context['curr_time'], '
            <img id="upshrink" src="', $settings['images_url'], '/upshrink.gif" alt="*" title="', $txt['upshrink_description'], '" align="bottom" style="display: none;" />
         </li>';

   if ($context['user']['is_logged'])
      echo '
         <li id="name">', $txt['hello_member_ndt'], ' <em>', $context['user']['name'], '</em></li>';
   else
      echo '
         <li id="name">', $txt['hello_guest'], ' <em>', $txt['guest'], '</em></li>';

   echo '
      </ul>';

   if ($context['user']['is_logged'] || !empty($context['show_login_bar']))
      echo '
      <div id="user_section" class="bordercolor"', empty($options['collapse_header']) ? '' : ' style="display: none;"', '>
         <div class="windowbg2 clearfix">';

   if (!empty($context['user']['avatar']))
      echo '
            <div id="myavatar">', $context['user']['avatar']['image'], '</div>';


Found it but I have no idea what it means.  :P

Ninja ZX-10RR

I have an idea but I can't code a fix for it :/
Quote from: BeastMode topic=525177.msg3720020#msg3720020
It's so powerful that on this post and even in the two PMs you sent me,you still answered my question very quickly and you're apologizing for the delay. You're the #1 support I've probably ever encountered man, so much respect for that. Thank you, and get better soon.

I'll keep this in my siggy for a while just to remind me that someone appreciated what I did while others didn't.

♥ Jess ♥

STOP EDITING MY PROFILE

Night09

Not 100% sure but Edit:

', $context['curr_time'], '

to say

', $context['current_time'], '

Illori

Quote from: Night09 on September 19, 2014, 05:14:03 PM
Not 100% sure but Edit:

', $context['curr_time'], '

to say

', $context['current_time'], '

according to my files that should fix it.

meemzo

Thank you Ninja ZX-10RR for lighting the fire under my butt to get this fixed.  And also just the overall support the last few days.  My offer for a box of chocolates still stand.  ;)

And thank you Night09 that did the trick.  ;D

Ninja ZX-10RR

Go on with the other problems as there are many others, the database collation will be particularly annoying to explain you how to get rid of that... But it can be done :) and also the other errors, even if I didn't have a look at all of them, I was never asked to do it so I couldn't do it since it is your stuff and I have no rights to touch it unless you say so.

And by the way you're welcome :D how could you send me a box of chocolate anyway? :P Well I would eat that with my gf ^^
Quote from: BeastMode topic=525177.msg3720020#msg3720020
It's so powerful that on this post and even in the two PMs you sent me,you still answered my question very quickly and you're apologizing for the delay. You're the #1 support I've probably ever encountered man, so much respect for that. Thank you, and get better soon.

I'll keep this in my siggy for a while just to remind me that someone appreciated what I did while others didn't.

♥ Jess ♥

STOP EDITING MY PROFILE

Advertisement: