View Full Version : Geting a syntax error after replacing some code!
Dark Lycan
03-26-2012, 09:41 PM
I didn't know I wasn't supposed to replace the code I had replaced and now I'm getting a syntax error, this is the error,
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home3/khmediaf/public_html/includes/class_bootstrap.php(569) : eval()'d code on line 66
the code I tried replacing was with some code from this mod, https://vborg.vbsupport.ru/showthread.php?t=240677 can someone give me the code to replace the code
I replaced to get rid of the syntax error? plz?^ ^
TY!^ ^
Pandemikk
03-26-2012, 11:17 PM
It would help if you showed us the code that's causing this. We're not exactly mind readers.
Dark Lycan
03-27-2012, 03:23 AM
It would help if you showed us the code that's causing this. We're not exactly mind readers.
oh sorry will do that.^ ^
$perms['rate'] = true;
$perms['comment'] = true;
$perms['submit'] = true;
$perms['playlist'] = true;
if (is_member_of($vbulletin->userinfo, explode(',','5,6')))
{
$perms['modtags'] = true;
$perms['modcategory'] = true;
$perms['modservice'] = true;
}
that's the code that caused the syntax error. it was in the thread I link to but I guess you either didn't notice it or didn't see it.=/ the area in which I replaced the code was in admincp/plugin manager/MEDIA NAVTAB TY Pandem.^ ^
edit: also before the syntax error was caused when I tried to replaced the codebefore I replaced it a 2nd time that caused the syntax error I tried to click the media tab for the media library and for some odd freakin reason I got a message that told me I did not have the necessary permissions to access that page which is total bs because I'm the head admin of my site and SHOULD be able to access the damn page so I dunno wtf was goin on there.=/
Pandemikk
03-27-2012, 03:32 AM
At first glance it looks okay. Are you sure that's the specific code that's giving you the error?
It's tough to tell without having a look at the file or at least knowing the line numbers.
that's the code that caused the syntax error.
I don't see anything wrong with that either. It seems more likely that you made a mistake pasting it in there. Maybe reinstall the original and try again.
...and for some odd freakin reason I got a message that told me I did not have the necessary permissions to access that page which is total bs because I'm the head admin of my site and SHOULD be able to access the damn page so I dunno wtf was goin on there.=/
There's a "generic" message that says something like you might not have permission, but it's really a catch-all for a number of different errors. So don't worry too much about the permissions.
Amaury
03-27-2012, 09:22 PM
Just for reference, I fixed the issue by disabling the 8WR Media Library plugins.
Dark Lycan
03-28-2012, 09:17 PM
Just for reference, I fixed the issue by disabling the 8WR Media Library plugins.
yes but the thing is amaury I don't want it disabled forever, I wanna be able to fix the code I replaced so that I can re-enable it so that I can use the media library without the syntax error appearing,=/
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.