Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-05-2016, 05:46 AM
Dantro Dantro is offline
 
Join Date: Sep 2016
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Locked out of CP

Hi all, I've managed to get myself locked out of my admin CP after installing a modification. Is there anyway i can get back in?
Reply With Quote
  #2  
Old 10-05-2016, 06:04 AM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try adding the line:

PHP Code:
define('DISABLE_HOOKS'true); 
to the top of the file "/includes/config.php" on your server and this will disable your plugins, and perhaps this will allow you back in. Once you fix the issue, then comment out the line you added as follows:

PHP Code:
//define('DISABLE_HOOKS', true); 
This way the line of code will be there if you need it in the future.
Reply With Quote
  #3  
Old 10-05-2016, 06:19 AM
Dantro Dantro is offline
 
Join Date: Sep 2016
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Mark, excuse my ignorance but where would I find that file?
Reply With Quote
  #4  
Old 10-05-2016, 06:29 AM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Go to your forum's root directory, and look for the directory "includes" and in that directory you should find the file "config.php". Download that file to your hard drive, and use an editor such as Notepad++ to add the line of code I posted to the top of the file, just below the opening PHP tag, so that the beginning to the file looks like:

PHP Code:
<?php
define
('DISABLE_HOOKS'true);
Once you are finished making the edit, then rename the existing file "config.php" on your server to "config_original.php" so in case you messed up editing the file, you rename this back to "config.php" to restore things back to the starting point.

Next, upload the edited file to your server (in the "includes" folder), and you should then be able to get into your AdminCP to fix whatever issue there is. Once done, comment out the line you added to "config.php" and upload the file again to your server.
Reply With Quote
  #5  
Old 10-05-2016, 06:51 AM
Dantro Dantro is offline
 
Join Date: Sep 2016
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok thanks Mark, very easy to understand but unfortunately it wont let me rename or upload
Reply With Quote
  #6  
Old 10-05-2016, 07:19 AM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What FTP program are you using? I use FileZilla. You should see permissions of 0755 on the folder "inlcudes" and 0644 on the file "config.php".
Reply With Quote
  #7  
Old 10-05-2016, 07:22 AM
Dantro Dantro is offline
 
Join Date: Sep 2016
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarkFL View Post
What FTP program are you using? I use FileZilla. You should see permissions of 0755 on the folder "inlcudes" and 0644 on the file "config.php".
Ah ok, that could be why as i'm trying to do it direct in the server. I'm new to all this and having to learn as I go along so I apologise for my lack of understanding
Reply With Quote
Благодарность от:
RichieBoy67
  #8  
Old 10-08-2016, 09:06 AM
Dantro Dantro is offline
 
Join Date: Sep 2016
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've now got access through filezilla, permissions are as you say but still wont let me change name or upload.

--------------- Added [DATE]1475944850[/DATE] at [TIME]1475944850[/TIME] ---------------

Anyone else assist with this?
Reply With Quote
  #9  
Old 10-08-2016, 02:59 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you are unable to change file names of files on your server, or upload files to your server, then you really need to talk to your host about the problem so they may fix it.
Reply With Quote
  #10  
Old 10-08-2016, 03:03 PM
Dantro Dantro is offline
 
Join Date: Sep 2016
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is where the issue is Lynne, I am unable to too due to a business disagreement. Trying to sort this so I can transfer all info over to another server. Just to point out I can add files and rename them normally just not the config one for some reason. This has all happened since installing VBSocial.

--------------- Added [DATE]1475947264[/DATE] at [TIME]1475947264[/TIME] ---------------

The just-t4s.co.uk page isn?t working

just-t4s.co.uk is currently unable to handle this request.
HTTP ERROR 500

This is what I'm getting.
Reply With Quote
Reply


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: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.04402 seconds
  • Memory Usage 2,258KB
  • Queries Executed 11 (?)
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
  • (3)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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_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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete