Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
javascript error
jackmaessen
✭✭✭
When trying to set some badges, i got an error like image below.
it appears when pressing of of the options in the selectbox under Rule
In the console i can see it says: Error200
How can i find where the error is situated?
0
Comments
Error code 200 is not an error it is an ok. It means the server was able to process the http request. You should look at your error logs at your host to see what happens when you click options.
http://webdesign.about.com/cs/http/p/http2xx.htm
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
This cause of this error must be in the DB. I made an identical copy of all the root files on a subdomain but with a fresh new DB. And on that subdomain, everything works perfect. So i think i am going to drop the tables from YAGA and enable YAGA again.
Probably a different issue, but looks like the localized text isn't showing up, so you should clear the Vanilla cache by deleting any .ini files in the
/cache
directory.Add Pages to Vanilla with the Basic Pages app
Problem found! It was caused by javascript of Google analytics which i included in index.php. I now load the script in default.master.tpl . When choosing from the selectbox, the choosen option appears immediately under the selectbox and not anymore in a popup left bottom corner.
This is really frustrating when trying to find something like this. Who would think that a google snippet can causes such a trouble when it is placed in the wrong place in the DOM tree?
why on earth would you place it in index.php?
grep is your friend.
Well, in my index.php i saw this line:
So i thought: easy enough, i do the same with google analytics js and put the js in analytics.php en include it on the same way:
Did not think about the consequences that the js was above the DOM tree....and all the trouble started...
I agree, it was not very wise to do that
General rule of thumb: Never echo out anything unless it's in a view or a hook called from a view.
(And don't edit core files.)
My themes: pure | minusbaseline - My plugins: CSSedit | HTMLedit | InfiniteScroll | BirthdayModule | [all] - PM me about customizations
VanillaSkins.com - Plugins, Themes and Graphics for Vanillaforums OS
jackmaessen read up up on MVC frameworks. Just becuase something says index or php doesn't mean you using for output.
grep is your friend.