Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4257
Latest: Alex998.
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43295
Total Topics: 7523
Most Online Today: 230
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 210
Total: 210

Author Topic: Unidentified Index Error  (Read 13336 times)

0 Members and 1 Guest are viewing this topic.

Offline FrizzleFried

  • Full Member
  • ***
  • Posts: 120
    • View Profile
Unidentified Index Error
« on: June 04, 2012, 10:28:27 am »
I am getting an Unidentified index error from multiple triggers but all pointing to the same line in badgeawards2.php ...

8: Undefined index: browse

Line 1832 which reads:

Code: [Select]
if ($context['browser']['is_ie6'] && !in_array($badgeAction,$currentBadges))
I've disabled the OLD BROWSER badge in an effort to stop the flow of errors with no luck.

Suggestions?

Offline FrizzleFried

  • Full Member
  • ***
  • Posts: 120
    • View Profile
Re: Unidentified Index Error
« Reply #1 on: June 04, 2012, 11:48:03 am »
My users...being the pain in the asses that users are (like me!)... have begun testing and PMing me every single thing they come acrosss.

Here is one:


Quote
Test post from android (kindle fire)
Quote


Weird that I got an Apple User badge after that post...

Evidently an Apply badge appears for Adnroid (kindle fire) users.  I know NOTHING about mobile phones so I have no answer.

;)


Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Unidentified Index Error
« Reply #2 on: June 04, 2012, 11:56:06 am »
Working on an update for the undefined fixed

Apple detection is based on user agent
Code: [Select]
if (substr_count($_SERVER['HTTP_USER_AGENT'],"Macintosh") != 0 || substr_count($_SERVER['HTTP_USER_AGENT'],"iPad") != 0 || substr_count($_SERVER['HTTP_USER_AGENT'],"iPhone") != 0 || substr_count($_SERVER['HTTP_USER_AGENT'],"Mac OS X")
Looks for iPad,Iphone,Mac OS X,Macintosh
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 FrizzleFried

  • Full Member
  • ***
  • Posts: 120
    • View Profile
Re: Unidentified Index Error
« Reply #3 on: June 04, 2012, 12:02:46 pm »
Again... forgive me for the ignorance... does a kindle fire count as one of those?  (Apple OS perhaps)?


Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Unidentified Index Error
« Reply #4 on: June 04, 2012, 12:05:32 pm »
Kindle shouldn't it is an ebook reader not made by apple but by amazon
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 FrizzleFried

  • Full Member
  • ***
  • Posts: 120
    • View Profile
Re: Unidentified Index Error
« Reply #5 on: June 04, 2012, 12:11:45 pm »
Kindle shouldn't it is an ebook reader not made by apple but by amazon

Welp... evidently ... it did (or at least my one user thinks it did).

I dunno.

:)


Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Unidentified Index Error
« Reply #6 on: June 04, 2012, 03:25:32 pm »
Posted update that should help.
1.0.5
!Fixed undefined errors SMF 2.0 for browser
+Added support for webmaster award and poll vote award
!Quicker detection of avatar/signature changes
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 FrizzleFried

  • Full Member
  • ***
  • Posts: 120
    • View Profile
Re: Unidentified Index Error
« Reply #7 on: June 04, 2012, 03:28:58 pm »
I'm guessing you don't want to post the changes made... being that i modified the code to fit in the the Statistics in Jquery mod right I'd rather edit the current code than uninstall (manual edits included I'd imagine) and re-installing. 


Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Unidentified Index Error
« Reply #8 on: June 04, 2012, 03:34:46 pm »
Changes were made to sources/badgeawards.php
And added another edit to Sources/Profile.php for faster detection.
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 FrizzleFried

  • Full Member
  • ***
  • Posts: 120
    • View Profile
Re: Unidentified Index Error
« Reply #9 on: June 04, 2012, 03:42:40 pm »
I simply copied my boardindex.template.php... uninstalled... re-installed new version and then copied the boardindex.template.php file back.

Worked... and my error log thanks you.

Offline FrizzleFried

  • Full Member
  • ***
  • Posts: 120
    • View Profile
Re: Unidentified Index Error
« Reply #10 on: June 04, 2012, 06:24:45 pm »
Since upgrading to 1.0.5....

I am now getting this error:


http://www.X.com/index.php?action=profile
8: Undefined index: url
File: /home/ahaforum/public_html/Sources/Profile-View.php
Line: 143

That is new... I wasn't getting that error before.   There aren't as many as the other one but I'm at 25 already.


EDIT:  This is the line that is bugging out...

Quote
$action = determineActions($user_profile[$memID]['url']);

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Unidentified Index Error
« Reply #11 on: June 04, 2012, 06:56:53 pm »
That line is not from Badge awards the last award that i added was webmaster which was this code
Code: [Select]
$badgeAction = 'webmaster';
if ($memberContext[$memberID]['website']['url'] != '' && !in_array($badgeAction,$currentBadges))
{
$badgeID = GetBadgeIDByAction($badgeAction);
$ret = AddBadgeToMember($memberID,$badgeID,false);
if ($ret == true)
{
$currentBadges[] = $badgeAction;
$newBadges[]  = $badgeAction;
}

}
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 FrizzleFried

  • Full Member
  • ***
  • Posts: 120
    • View Profile
Re: Unidentified Index Error
« Reply #12 on: June 04, 2012, 07:00:59 pm »
All I can tell you is that the ONLY thing I have done today is install your mod.  I've done nothing else.  I've never gotten that error until the time I upgraded to 1.0.5...

EDIT: Profile-view.php has not been touched since May 17th...

Something your mod added/removed elsewhere is causing this issue.  I am 100% sure of it.  Again.  I've done nothing other than install your 1.0.5 version and the errors started up immediately after that.

« Last Edit: June 04, 2012, 07:04:57 pm by FrizzleFried »

Offline FrizzleFried

  • Full Member
  • ***
  • Posts: 120
    • View Profile
Re: Unidentified Index Error
« Reply #13 on: June 04, 2012, 07:10:18 pm »
Low and behold... fresh SMF 2.0.2 install... test forum...

Quote
   
http://x.com/testforum/index.php?action=profile
8: Undefined index: url
File: /home/ahaforum/public_html/testforum/Sources/Profile-View.php
Line: 143


Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Unidentified Index Error
« Reply #14 on: June 04, 2012, 07:35:31 pm »
Fix included in 1.0.6 which can be downloaded.
But remember if you made some edits to those files they will be overwritten or you can check out a quick fix below


Hot fix
Moved the edit in Sources/Profile.php
After
Code: [Select]
/ Invalidate any cached data.
cache_put_data('member_data-profile-' . $memID, null, 0);

This code moved in that file after the spot above.
Code: [Select]
// Badge Awards
global $sourcedir, $modSettings;
if (!empty($modSettings['badgeawards_enable']))
{

global $sourcedir, $user_info;
require_once($sourcedir . '/badgeawards2.php');
Badges_CheckMember($memID);
}
// End Badge Awards

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
2 Replies
16571 Views
Last post May 09, 2008, 02:33:12 pm
by RoFus
2 Replies
7346 Views
Last post November 02, 2009, 07:56:57 am
by Vincent Volmer
6 Replies
6519 Views
Last post February 26, 2012, 01:44:52 pm
by SMFHacks
index error in gallery

Started by guest3817 Support

7 Replies
4967 Views
Last post September 11, 2011, 10:39:12 am
by SMFHacks
4 Replies
4171 Views
Last post August 26, 2012, 08:22:00 pm
by FrizzleFried

+- Recent Topics

Please Help! by SMFHacks
April 17, 2024, 08:04:55 am

Rate own images by fvlog19
April 11, 2024, 10:56:53 am

Tidy Child Boards on 2.1.4 by SMFHacks
April 04, 2024, 03:54:12 pm

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
March 30, 2024, 12:41:08 pm

Can't DROP 'id_member'; check that column/key exists Datei: by SMFHacks
March 30, 2024, 11:58:20 am

No thumbnails on new uploads by Tonyvic
March 29, 2024, 06:26:18 am

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

Powered by EzPortal