The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Geting a syntax error after replacing some code!
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!^ ^ |
#2
|
|||
|
|||
It would help if you showed us the code that's causing this. We're not exactly mind readers.
|
#3
|
||||
|
||||
Quote:
Code:
$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; } 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.=/ |
#4
|
|||
|
|||
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. |
#5
|
|||
|
|||
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.
Quote:
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. |
#6
|
|||
|
|||
Just for reference, I fixed the issue by disabling the 8WR Media Library plugins.
|
#7
|
||||
|
||||
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,=/
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|