inherit
203080
0
Mar 17, 2014 14:50:56 GMT -8
baratheon
43
December 2013
baratheon
|
Post by baratheon on Dec 29, 2013 11:09:23 GMT -8
A raffle plugin I am currently developing works fine on my test forum, but once transferred to a client's forum, it begins to act quirky. For instance, a prompt which displays the raffle winner and the prize (that works fine on my site), shows the prize as "NaN". Or, certain elements do not update when they should. I suspect it might have something to do with the configuration, or other plugins interfering perhaps, but I'm not sure.
Any ideas what might be causing this?
Thanks.
|
|
inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Dec 29, 2013 14:38:58 GMT -8
typically it means that site has made a modification either through templates or other plugins to cause your plugin to not find something it needed.
you can rule out plugins by having your plugin moved to the top of the manage list.
if it still doesnt work, then inspect the parts of their site that arent the same as your test site to see whats missing. things like post count can trip up a code if its not displayed in the mini-profile
|
|
inherit
203080
0
Mar 17, 2014 14:50:56 GMT -8
baratheon
43
December 2013
baratheon
|
Post by baratheon on Dec 29, 2013 22:39:56 GMT -8
The plugin I am currently working on works in conjunction with the Monetary System plugin, that has to remain on top of the plugin list. Moving the current plugin up, right below Monetary System fixed SOME of the issues. I am now sure that the problems are due to to other plugins or templates interfering. Unfortunately, I do not have direct access to the client's admin panel, so I can't closely examine his website setup. Where do I go from here?
|
|
inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Dec 29, 2013 23:04:22 GMT -8
if you have a debugger, you can step through your code one line at a time to see why its getting values it shouldnt be.
if you use firefox, I highly recommend firebug.
|
|
inherit
201984
0
Sept 11, 2023 1:23:07 GMT -8
P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓
Using My Talents Elsewhere
3,314
November 2013
pastuleo23
|
Post by P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓ on Dec 29, 2013 23:39:10 GMT -8
I remember getting a NaN in one of my keys while working. It ended up being a corruption of the way I was manipulating the data. The quickest way to diagnose if it's the plugins or the theme, You would temporarily uncheck the other plugins and see if it works fine. I recommend firebug, however I use chrome's built in debugger.
|
|
inherit
203080
0
Mar 17, 2014 14:50:56 GMT -8
baratheon
43
December 2013
baratheon
|
Post by baratheon on Jan 3, 2014 16:33:07 GMT -8
I looked at chrome's debugger, and received 3 errors and a couple warnings. The warnings were 2 TypeErrors (cannot read property length of undefined, and cannot read property 'popped' of undefined), and one internal server error from some Google API. The warnings related to the MIME type. Here's a link: www.friendsofgaming.com/page/Raffle although you probably won't receive the same errors if you are not logged in.
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,018
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Jan 3, 2014 19:03:10 GMT -8
I looked at chrome's debugger, and received 3 errors and a couple warnings. The warnings were 2 TypeErrors (cannot read property length of undefined, and cannot read property 'popped' of undefined), and one internal server error from some Google API. The warnings related to the MIME type. Here's a link: www.friendsofgaming.com/page/Raffle although you probably won't receive the same errors if you are not logged in. The " length of undefined" error is coming from Todge Slot Machine code, specifically the following line else if(conKey != undefined || conKey.length > 3) That should in fact be an "&&" not an "||" so that it bypasses evaluating the second condition if the first is in fact false (i.e.conKey === undefined) The " property 'popped' of undefined" is coming from Wormopolis Quote Remodel code, specifically because it uses an outdated method that doesn't do too well on custom pages since they lack the Proboards autosearch element
|
|
inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Jan 3, 2014 19:37:09 GMT -8
the version in the library doesnt use popped. that code just needs to be updated on that forum.
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Jan 19, 2014 14:03:06 GMT -8
The " length of undefined" error is coming from Todge Slot Machine code, specifically the following line else if(conKey != undefined || conKey.length > 3) That should in fact be an "&&" not an "||" so that it bypasses evaluating the second condition if the first is in fact false (i.e.conKey === undefined) Fixed.. Thanks EB
|
|