News:

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

Main Menu

ERROR Help Please "8: Undefined index: never_expire"

Started by tombstone66, April 25, 2011, 12:48:56 AM

Previous topic - Next topic

tombstone66

I'm using SMF V 1.1.13 and am receiving the following error in the Error Log:

8: Undefined index: never_expire
File: D:\Hosting\5006776\html\forum\Themes\default\Login.template.php (main_above sub template - eval?)
Line: 225



Here's the code.  I've also attached the file "Login.template.php"



LINE 218 -> // Activate your account manually?
function template_retry_activate()
{
   global $context, $settings, $options, $txt, $scripturl;

   // Just ask them for their code so they can try it again...
LINE 225->   echo '
      <br />
      <form action="', $scripturl, '?action=activate;u=', $context['member_id'], '" method="post" accept-charset="', $context['character_set'], '">
         <table border="0" width="600" cellpadding="4" cellspacing="0" class="tborder" align="center">
            <tr class="titlebg">
               <td colspan="2">', $context['page_title'], '</td>';




If anyone can help, I would appreciate it.

Illori

please install http://custom.simplemachines.org/mods/index.php?mod=2054 and enable it, then post your new error messages without eval in them.

tombstone66

#2
Thanks for your attention to this. 

I downloaded and installed the suggested mod and am receiving the following error now. 

Every time someone visits the site, the error is logged. 

I have attached "index.template.php" and "index.php"

Guest    Today at 07:45:47 pm
99.0.107.212       575ee4f13cd1cca130a7cde002674cc9
http://www.cvmaflorida.org/forum/index.php?www

8: Undefined index: never_expire
File: D:\Hosting\5006776\html\simplemachinesforum\Themes\black_n_red\index.template.php
Line: 225

Guest    Today at 07:45:31 pm
99.0.107.212      575ee4f13cd1cca130a7cde002674cc9
http://www.cvmaflorida.org/forum/index.php

8: Undefined index: never_expire
File: D:\Hosting\5006776\html\simplemachinesforum\Themes\black_n_red\index.template.php
Line: 225


Thanks for any assistance that you can offer.

Illori

can you provide a list of installed mods? looks like an issue with one of your mods, after we know which you can then go to the support thread for that mod and get better help in fixing the issue.

tombstone66

Sure, no problem

             Mod Name                          Version    
1.    AJAX Recent Topics                             1.1    
2.    Anti-Spam Verification Questions    1.02
3.    IP-Address Tracer                            1.0    
4.    SMF 1.0.19 / 1.1.11 Update            1.0
5.    SMF 1.0.20 / 1.1.12 Update            1.0
6.    SMF 1.0.21 / 1.1.13 Update            1.0
7.    Custom Tab                                    1.2    
8.    DisableTemplateEval                    1.2

Illori

have you recently tried to uninstall/remove any mods? I am not sure out of those which could be leading to this problem.

tombstone66

No, nothing.  I thought it may have to do with this Theme.  I really like it and hope I don't need to give it up.

Could I test it by changing the board theme or will that not make any difference?

I don't really see any problems with the way the board is running to be honest.  It's just the errors in the logs

Illori

looks like an issue with your theme, I have reported the issue to the customize team for them to review the issue.


Kays

Hi, try this file. It should take care of that error.

Have you got a link to that theme you are using?

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods


tombstone66

Quote from: Kays on May 04, 2011, 10:06:25 PM
Hi, try this file. It should take care of that error.

Unfortunately, that did not take care of the problem.  I've attached a screenshot of the error log

Kays

Hi, sorry for the slow response.

That code isn't part of the default theme and my fix should of cleared the error. The best thing to do is to post in the support thread for that theme and see if the author is able to help you.

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

teos55

For SMF 1.1.13

Can it be that you dont have modifications.english.php or modifications.english-utf8.php or your language

files that is not copied/modified in your

/themes/black_n_red/languages dir.

  Since you're not using default theme, you'd better look these files.  Most of the undefinex index issues are
solved checking those laaguage files for me, mostly the Mods create this files in /theme/default/languages
dir. You have to copy manualy or modify existing ones according to Mods parse statements.

Illori

we have looked into this issue and it is does not seem to be a language string issue i believe. it is an issue with how this theme was coded compared to other themes.

Kays

It's not a missing language string giving this error but rather the fact that $context['never_expire'] isn't set. It's only set if a user gets his login wrong and is taken to a login form.

The change I made in that file should of taken care of that error. Since it didn't and that code is not a part of the default theme. The theme author is the best person to contact concerning this problem.

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods


tombstone66

Yea, I tried contacting him regarding some other issue but never got anything from him.

I guess I could try with this issue but I'm not ooptomistic.

Thanks for trying

Kays

Try this file. I've removed that code altogether.

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

tombstone66

That seems to have taken care of it.

Thanks a million for your resolve and dedication Kays

Advertisement: