Fern
New Member
Posts: 51
inherit
189788
0
Jul 14, 2023 12:38:27 GMT -8
Fern
51
February 2013
frostkit
|
Post by Fern on Aug 9, 2017 3:54:48 GMT -8
No one on my forum can load this thread. It is a character application and thus a member filled out out entirely, is there anyway to access it, and could someone tell me what happened? Thanks.
|
|
HARP
New Member
Site in progress of being built!
Posts: 19
inherit
247830
0
Aug 12, 2017 10:21:21 GMT -8
HARP
Site in progress of being built!
19
August 2017
harp
|
Post by HARP on Aug 9, 2017 7:23:31 GMT -8
I am not sure if it is the problem you are referring to, but I got this error when I opened the page.
|
|
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 Aug 9, 2017 7:47:05 GMT -8
Go into your admin panel and disable your STYLE TAGS PLUGIN and the thread should load.
|
|
Fern
New Member
Posts: 51
inherit
189788
0
Jul 14, 2023 12:38:27 GMT -8
Fern
51
February 2013
frostkit
|
Post by Fern on Aug 9, 2017 9:29:34 GMT -8
Will I have to keep that disabled for it to load permanently? A lot of my members currently use it...
|
|
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 Aug 9, 2017 11:07:25 GMT -8
Once disabled you can then edit the post and try to fix the problem. The post itself cannot be quoted by guests so I cannot really see the BBCODE that was used but the section in that post that starts with "0 Moons:" contains 21 DIVs and 17 of those are nested (meaning one DIV inside of another DIV inside that inner DIV and so on with that going 17 levels deep). It is generally nestings that goes too many levels deep that causes that plugin to choke, since it uses the memory expensive recursion technique to walk the DOM tree so at some point the stack runs out of memory. Usually when you see nestings like that it is because the post author opened a div ( [div]) but neglected to close them with a corresponding div closer ( [/div]) so the browser automatically closes it for them all at the end of the post resulting in multiple levels of nested DIVs. Instead of: [div] This is DIV #1[/div] [div] This is DIV #2[/div] [div] This is DIV #3[/div]
This is DIV #1 This is DIV #2 This is DIV #3 You get (when [/div] is left off): [div] This is DIV #1 [div] This is DIV #2 [div] This is DIV #3
This is DIV #1 This is DIV #2 This is DIV #3
the javascript engine saves the entire execution context unto the stack each time another recursion function is called and the stack eventually runs out of memory space once it gets too deep. My advice to Bennett 🚀 some time ago was to process the node list from the tail end thus taking advantage of the fact that nodes are returned in document order and you would be working from inner to outer which is obviously the intent of using that recursion but without the expensive memory consumption.
|
|
inherit
97216
0
Nov 26, 2024 13:53:14 GMT -8
Bennett 🚀
Formerly iPokemon.
3,622
January 2007
catattack
iPokemon's Mini-Profile
|
Post by Bennett 🚀 on Dec 11, 2017 20:04:24 GMT -8
Once disabled you can then edit the post and try to fix the problem. The post itself cannot be quoted by guests so I cannot really see the BBCODE that was used but the section in that post that starts with "0 Moons:" contains 21 DIVs and 17 of those are nested (meaning one DIV inside of another DIV inside that inner DIV and so on with that going 17 levels deep). It is generally nestings that goes too many levels deep that causes that plugin to choke, since it uses the memory expensive recursion technique to walk the DOM tree so at some point the stack runs out of memory. Usually when you see nestings like that it is because the post author opened a div ( [div]) but neglected to close them with a corresponding div closer ( [/div]) so the browser automatically closes it for them all at the end of the post resulting in multiple levels of nested DIVs. Instead of: [div] This is DIV #1[/div] [div] This is DIV #2[/div] [div] This is DIV #3[/div]
This is DIV #1 This is DIV #2 This is DIV #3 You get (when [/div] is left off): [div] This is DIV #1 [div] This is DIV #2 [div] This is DIV #3
This is DIV #1 This is DIV #2 This is DIV #3
the javascript engine saves the entire execution context unto the stack each time another recursion function is called and the stack eventually runs out of memory space once it gets too deep. My advice to Bennett 🚀 some time ago was to process the node list from the tail end thus taking advantage of the fact that nodes are returned in document order and you would be working from inner to outer which is obviously the intent of using that recursion but without the expensive memory consumption. I do not ever recall getting this suggestion, but did just do a rewrite of the plugin because I was bored and procrastinating other things. Benchmarks of the new plugin are in the 4-6 ms processing time for each post using style tags, rather than something like a total of 1-2s for all posts on the page with the old plugin. So Fern , look for the updated Style Tag plugin to be available in the plugin library later this week when the PB staff approves the new v2.2.0. EDIT: I posted the downloadable plugin file on the support page.
|
|
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 Dec 11, 2017 20:24:35 GMT -8
|
|