Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 12356
Latest: how to logo design
New This Month: 7
New This Week: 0
New Today: 0
Stats
Total Posts: 40076
Total Topics: 7055
Most Online Today: 30
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 22
Total: 22

Author Topic: Undefined Index  (Read 10057 times)

0 Members and 1 Guest are viewing this topic.

Offline assemblytube

  • Newbie
  • *
  • Posts: 24
    • View Profile
    • AssemblyTube
Undefined Index
« on: November 30, 2012, 08:05:28 am »
I have just installed Badge Awards and like it a lot. Thank you.

Since the installation I have started getting lots of "Undefined Index" errors in the Error log of my forum.

A lot are like this and refer to Subs-Post.php

8: Undefined index: utf8
/forum/Sources/Subs-Post.php

But some refer to other files e.g.
8: Undefined index:
/forum/Themes/default/languages/PersonalMessage.english.php

I am relatively new to working with SMF and php files.

I cannot create the errors myself when I log in and use the forum as a regular member, but when some members log in they create up to 30 errors.
Is it likely that the installation of Badge Awards is linked to these new errors?
Any thoughts on where I should start looking to resolve the errors?
Thank you for any advice.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15040
    • View Profile
Re: Undefined Index
« Reply #1 on: November 30, 2012, 10:30:16 am »
First thing we need to figure out is what line the error is on

Check out this topic on how to enable finding the correct line numbers
http://www.simplemachines.org/community/index.php?topic=290186.0
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline assemblytube

  • Newbie
  • *
  • Posts: 24
    • View Profile
    • AssemblyTube
Re: Undefined Index
« Reply #2 on: November 30, 2012, 11:14:50 am »
Thanks for the link to the post on Disabling Eval.

Just wondering.
I am using SMF 2.02. Does this set of instructions in the post you linked to, do the same as the following?

SMF Admin Server settings "Disable evaluation of templates" where there is a tick box.

I had this box ticked, and I get the errors stated on the original post.


Do I still need to use phpmyadmin and run a query on the database, or is ticking this box sufficient?
Thanks for your help.


Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15040
    • View Profile
Re: Undefined Index
« Reply #3 on: November 30, 2012, 11:22:24 am »
Not sure.

What I am looking for is the line number and filename so we can track where the exact errors are from.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline assemblytube

  • Newbie
  • *
  • Posts: 24
    • View Profile
    • AssemblyTube
Re: Undefined Index
« Reply #4 on: November 30, 2012, 11:57:56 am »
The error messages in detail are like this:

http://assemblytube.com/forum/index.php?action=forum
8: Undefined index: forum_name
File: /public_html/assemblytube.com/forum/Themes/default/languages/PersonalMessage.english.php
Line: 25

http://assemblytube.com/forum/index.php?action=forum
8: Undefined index: utf8
File: /public_html/assemblytube.com/forum/Sources/Subs-Post.php
Line: 217

http://assemblytube.com/forum/index.php?action=forum
8: Undefined index: utf8
File: /public_html/assemblytube.com/forum/Sources/Subs-Post.php
Line: 265

http://assemblytube.com/forum/index.php?action=forum
8: Undefined index: utf8
File: /public_html/assemblytube.com/forum/Sources/Subs-Post.php
Line: 267

Then another 13 similar to these

Next comes
http://assemblytube.com/forum/index.php?action=forum
8: Undefined index: forum_name
File: /public_html/assemblytube.com/forum/Themes/default/languages/index.english.php
Line: 113

and lots more.


Is this the sort of information you needed to advise me?

Thank you.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15040
    • View Profile
Re: Undefined Index
« Reply #5 on: November 30, 2012, 12:03:33 pm »
Could you attach those two files. I want to see what it is from
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline assemblytube

  • Newbie
  • *
  • Posts: 24
    • View Profile
    • AssemblyTube
Re: Undefined Index
« Reply #6 on: November 30, 2012, 12:16:32 pm »
Here are the 3 files referred to in my previous posting.
Thanks.

Offline assemblytube

  • Newbie
  • *
  • Posts: 24
    • View Profile
    • AssemblyTube
Re: Undefined Index
« Reply #7 on: December 04, 2012, 03:11:24 am »
Any more thoughts on these errors?

This might help narrow it down.
I registered a new dummy member and they got 37 unidentified index error messages once they log in.
When they log in a second time they don't generate error messages.

By logging in the first time they receive badges and personal messages telling them this.
When they log back in they obviously don't get badges nor personal messages.

If they just send a personal message this does not generate errors.

I logged them back in using an Ipad which gives them an Apple User badge. Immediately get 37 error messages.
So the errors are being generated in some way by the Award System mod. Possibly when it generates the personal message.

This error is repeatable if I set up a user.
Also exactly the same if a member who has previously joined logs in. 37 unidentifed index error messages.

Any ideas on where I might look to try to fix this?

Thanks for your help.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15040
    • View Profile
Re: Undefined Index
« Reply #8 on: December 04, 2012, 08:45:52 pm »
I did look at the files not sure what is causing it yet looks like $context is not being called yet so far.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
4369 Views
Last post October 10, 2006, 08:03:25 pm
by SMFHacks
2 Replies
4497 Views
Last post January 16, 2007, 08:34:00 pm
by DawnsWebDesigns
0 Replies
2725 Views
Last post March 27, 2009, 02:52:42 pm
by dry3210
4 Replies
2968 Views
Last post February 15, 2013, 01:06:23 pm
by CWVRV
2 Replies
3075 Views
Last post June 03, 2014, 12:11:06 pm
by spikeweb

+- Recent Topics

Cannot install Gallery Pro on SMF 2.1 RC2 by Hatshepsut
March 19, 2020, 12:55:00 am

Newbie questions by SMFHacks
March 08, 2020, 09:28:17 am

Update detect mobile mode PHP5 to PHP7 by Plus
March 05, 2020, 11:19:05 am

Just a hello by Plus
March 05, 2020, 11:05:56 am

Enotify Copyright Problem by SMFHacks
March 04, 2020, 09:21:09 pm

Cannot import by shawnb
March 02, 2020, 12:17:00 pm

Error message with latest SMF 2.1 Github build by Hatshepsut
March 01, 2020, 10:06:10 am

[Mod]Avatars Display Integration by SMFHacks
February 15, 2020, 07:30:47 pm

[Mod]BBC Message Boxes 1.0 by SMFHacks
February 15, 2020, 07:26:46 pm

[Mod]Stack Trace by live627 by SMFHacks
February 15, 2020, 07:21:33 pm

Powered by EzPortal