Go Back   vb.org Archive > Community Discussions > Forum and Server Management
  #1  
Old 03-26-2012, 09:41 PM
Dark Lycan's Avatar
Dark Lycan Dark Lycan is offline
 
Join Date: Mar 2011
Location: WA State
Posts: 212
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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!^ ^
Reply With Quote
  #2  
Old 03-26-2012, 11:17 PM
Pandemikk Pandemikk is offline
 
Join Date: Jul 2009
Posts: 292
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It would help if you showed us the code that's causing this. We're not exactly mind readers.
Reply With Quote
  #3  
Old 03-27-2012, 03:23 AM
Dark Lycan's Avatar
Dark Lycan Dark Lycan is offline
 
Join Date: Mar 2011
Location: WA State
Posts: 212
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Pandemikk View Post
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.=/
Reply With Quote
  #4  
Old 03-27-2012, 03:32 AM
Pandemikk Pandemikk is offline
 
Join Date: Jul 2009
Posts: 292
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 03-27-2012, 12:26 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dark Lycan View Post
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.
Reply With Quote
  #6  
Old 03-27-2012, 09:22 PM
Amaury Amaury is offline
 
Join Date: Nov 2011
Location: Ellensburg, WA
Posts: 1,075
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just for reference, I fixed the issue by disabling the 8WR Media Library plugins.
Reply With Quote
  #7  
Old 03-28-2012, 09:17 PM
Dark Lycan's Avatar
Dark Lycan Dark Lycan is offline
 
Join Date: Mar 2011
Location: WA State
Posts: 212
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Amaury25 View Post
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,=/
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:04 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04213 seconds
  • Memory Usage 2,217KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete