News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Undefined index error

Started by 3mrhythm, December 19, 2010, 10:28:38 PM

Previous topic - Next topic

3mrhythm


Apply Filter: Only show the error messages of this URL
http://www.nhfragswap.com/forum/index.php?topic=16.msg18
Apply Filter: Only show the errors with the same message
8: Undefined index: share_diggbutton_enable
Apply Filter: Only show the errors from this file
File: /home/content/t/i/n/tinygiants/html/forum/Sources/ShareThis.php
Line: 56


http://www.nhfragswap.com/forum/index.php?topic=16.msg18
Apply Filter: Only show the errors with the same message
8: Undefined index: share_buzzbutton_enable
Apply Filter: Only show the errors from this file
File: /home/content/t/i/n/tinygiants/html/forum/Sources/ShareThis.php
Line: 57


all the shar buttons work just fine .. whats an undefined index error? I looked on the lines it mentions on sharethis.php

I will attach it
www.nhfragswap.com
www.yariscentral.com

Kays

Hi, this is part of a mod. Have you enabled either button?

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

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

Have a check through the edits for the mod: http://custom.simplemachines.org/mods/index.php?action=parse;mod=2111;attach=160478;smf_version=2.0_RC4

Additionally, it is best to ask the mod author about it as they know the best about the mod they make. :)

3mrhythm

yeah both buttons are enabled and work fine.  i just get these errors..

i was hoping there was a definition to this type of error so i could fix it..  i will post in the mod thread .. someone mentioned something in the thread but it seems it was in spanish :(
www.nhfragswap.com
www.yariscentral.com

Kays

It looks like the settings in the database didn't get updated on install. If there is a script to do so to start with.


$show_digg = !empty($parameters['digg_button']) ? $parameters['digg_button'] : $modSettings['share_diggbutton_enable'];
$show_buzz = !empty($parameters['buzz_button']) ? $parameters['buzz_button'] : $modSettings['share_buzzbutton_enable'];


Enabling these settings should clear the error. Try disabling and then re-enabling them again.

Which mod is this?

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

3mrhythm

i thought i had them enabled.. but i had the smaller share ones enabled not the ones mentioned i guess. i just enabled them and the error stopped showing :)

Thanks! ..lol it usually is something dumb like that. just takes an outsider to point it out lol thanks!
www.nhfragswap.com
www.yariscentral.com

3mrhythm

www.nhfragswap.com
www.yariscentral.com

Kays

Is this error only happening with these two buttons or with the other ones also. share_likebutton_enable and share_twibutton_enable

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

3mrhythm

just those two buttons. those are the only errors i get on the forum.

when i click to enable them in the mod the error stops showing
www.nhfragswap.com
www.yariscentral.com

Kays

So the error re-appears if you disable them again?

If so and you don't wish for them to be enabled, change those two lines (56 & 57) to the following


$show_digg = !empty($parameters['digg_button']) ? $parameters['digg_button'] : !empty($modSettings['share_diggbutton_enable']);
$show_buzz = !empty($parameters['buzz_button']) ? $parameters['buzz_button'] : !empty($modSettings['share_buzzbutton_enable']);

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

3mrhythm

k thanks i will try that in the morning.

www.nhfragswap.com
www.yariscentral.com

Baby Daisy

あなたは私のお尻にキスするとき、私はそれを愛する

Advertisement: