Error Dashboard
Hello,
I have an error in my dashboard.
Could you help me because I don't understand what's going on
Thanks
51 Replies
It looks like
bot
is undefined. Can you show where you are using this view in the javascript?![](https://utfs.io/f/8eddff2a-961e-4a87-9821-d688ea9521dc-1nq2cb.png)
I looked in the code & bot is not declared
I meant where you were using
ejs.renderFile
Well, that's your problem
Did you copy and paste the code from somewhere else? If so, always try to understand what it's doing first so errors like these don't ariseThat's what I'm trying to understand but personally I find my code correct & I don't understand why I have this error
Because you're not passing in a bot variable
Can you show where you are using this view in the javascript?
Yes, Here is the code : https://pastecord.com/utywamelaq
I meant where you were using ejs.renderFileIn
src\views\index.ejs
you are rendering the head.ejs, and injecting the bot
, user
, and path
variable for use in that file. However, bot
is undefined
That's the only info I can really give you with this contextHow can I define it if it is already defined?
I need to see your code lol
src\views\index.ejs and the javascript where that's rendered
Head.ejs : https://pastecord.com/utywamelaq
You already sent me that, that's not the code I need
Index.ejs : https://pastecord.com/cetufugolu.phptemp
and the javascript where that's rendered
On the code Javascript & notified with this
Here