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.
Debugger syntax error Vanilla 2.1.b1
vrijvlinder
MVP
Parse error: syntax error, unexpected T_FUNCTION in /fumamx/foro/plugins/Debugger/views/debug.php on line 28
Am I blind ?
uasort(Gdn_Cache::$trackGet, function($a, $b){ return $b['hits'] - $a['hits']; });
Tagged:
0
Comments
It's probably happening up above line 28 - you probably modified the file and left out a brace or bracket.
You would be blind if you just look at line 28
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
no I did not touch it at all that is what is so odd , here is the whole code . This version has a views folder with debug.php
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
no need to post the code (the way you posted it . Is the debugger plugin from the 2.1b1 source? Try downloading that part again and see if you have errors.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
yea the one that came with the package, ok will do
Edit: Nope it is the same , getting the same error.
this is the function singled out
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
I don't know it works for me.
you could always comment out the
//uasort(Gdn_Cache::$trackGet, function($a, $b){
//return $b['hits'] - $a['hits'];
//});
what kind of caching are you using.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
I am now having another error. I disabled debugger and now getting these only after log out
Notice: Undefined offset: 0 in fumamx/foro/library/core/functions.general.php on line 146
/fumamx/foro/applications/dashboard/modules/class.menumodule.php line 164.
fumamx/foro/themes/Glass/views/default.master.php line 42.
fumamx/foro/library/core/class.controller.php line 1841.
deleted the config line Todd recommended $Configuration['Debug'] and it got fixed.
Debugger won't work unless that line is in. But if Debugger is disabled that line does not get removed .
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
Sound like you should re-install completely and test with default theme and no plugins enabled and work stepwise through it.
you'll be chasing errors forever otherwise.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
No I think there is something going on with the config , bugsssss but will try it all to see what works....
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
@vrijvlinder the code you posted doesn't match with the whole file you posted. In the large post you are missing
);
at the end of the callback.Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
Yes true, I was trying to see what would work, I tried with , without, adding an extra parenthesis . That is the line that says it has an unexpected T function , I can't figure it out.
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌