vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Forum and Server Management (https://vborg.vbsupport.ru/forumdisplay.php?f=232)
-   -   Geting a syntax error after replacing some code! (https://vborg.vbsupport.ru/showthread.php?t=280697)

Dark Lycan 03-26-2012 09:41 PM

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!^ ^

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

Quote:

Originally Posted by Pandemikk (Post 2313647)
It would help if you showed us the code that's causing this. We're not exactly mind readers.

oh sorry will do that.^ ^

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;
}

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.

kh99 03-27-2012 12:26 PM

Quote:

Originally Posted by Dark Lycan (Post 2313707)
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.

Quote:

...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

Quote:

Originally Posted by Amaury25 (Post 2314014)
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,=/


All times are GMT. The time now is 06:43 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01462 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete