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.
certain javacript functionts stopped working, following error in debug.
My vanilla 2.1.6 installation was working fine until moments ago. None of the javascript functions are working anymore. After viewing in google debugger mode it gives me the following error:
My knowloedge in javascript is very minimal, could someone help me solve this ? Thanks in advance !
Tagged:
0
Comments
That error has been there in a previous 2.1.X version: http://vanillaforums.org/discussion/comment/215189/#Comment_215189
I would advice you to upgrade to 2.1.7 by copying all files (except .htaccess) from http://vanillaforums.org/get/vanilla-core-2.1.7 to your installation (read the update instructions in the ReadMe before doing so).
@R_J Thank you, i'll try that, and see if it works
@R_J I upgraded to 2.1.7, but the problem still persists. It seems like the error only occurs in the frontend. On the backend the same code seems to fucntion fine. Maybe becuase there are no javascripts running on the backend.
Basically the error is preventig any of my js scripts to function.
Any other suggestions maybe ?
Do you have a custom theme that has no div#Foot?
My question was sloppy: you do not only need to have a div#Foot, it also must include
{asset name="Foot"}
. See how it is done in the default theme: https://github.com/vanilla/vanilla/blob/master/applications/dashboard/views/default.master.tpl#L36Vanilla has a function AddDefinition that adds a JavaScript variable called
definitions
into the asset Foot. Some standard info is passed that way on every page.If there is no asset Foot, the sites script will throw the error that you showed in your screenshot.
This helped me solve my problem ! Im new to vanilla, and this goes to show how helpful this community is. @R_J took the time to look at my forum and give me a few pointers as wel. Thumbs up ! (*)