vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Locked out of CP (https://vborg.vbsupport.ru/showthread.php?t=323574)

Dantro 10-05-2016 05:46 AM

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?

MarkFL 10-05-2016 06:04 AM

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

Dantro 10-05-2016 06:19 AM

Thanks Mark, excuse my ignorance but where would I find that file?

MarkFL 10-05-2016 06:29 AM

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

Dantro 10-05-2016 06:51 AM

Ok thanks Mark, very easy to understand but unfortunately it wont let me rename or upload :mad:

MarkFL 10-05-2016 07:19 AM

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

Dantro 10-05-2016 07:22 AM

Quote:

Originally Posted by MarkFL (Post 2576611)
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 :D

Dantro 10-08-2016 09:06 AM

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?

Lynne 10-08-2016 02:59 PM

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.

Dantro 10-08-2016 03:03 PM

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.


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

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.01185 seconds
  • Memory Usage 1,738KB
  • 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
  • (3)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete