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 09-02-2012, 11:50 AM
Dave234 Dave234 is offline
 
Join Date: Mar 2012
Posts: 256
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default "You are not authorized to execute SQL queries"

When I click AdminCP > Maintenance > Execute SQL Query, I can't get in, and I receive the following pop-up message:

Quote:
You are not authorized to execute SQL queries
I am the Administrator on my website. Why can't I get in? I can get in on my other website.
Reply With Quote
  #2  
Old 09-02-2012, 12:05 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In your config.php file is this line:

Code:
$config['SpecialUsers']['canrunqueries'] = '';

you need to add your userid there.
Reply With Quote
  #3  
Old 09-02-2012, 12:14 PM
Dave234 Dave234 is offline
 
Join Date: Mar 2012
Posts: 256
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Where can I find the config.php file?
Reply With Quote
  #4  
Old 09-02-2012, 02:19 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sorry - that's in the includes subdirectory.
Reply With Quote
  #5  
Old 09-03-2012, 04:26 AM
Dave234 Dave234 is offline
 
Join Date: Mar 2012
Posts: 256
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not sure exactly where the includes subdirectory is.....

Can you please help me by letting me know exactly where I can find it? For example, AdminCP > _______ > __________

I really appreciate it.
Reply With Quote
  #6  
Old 09-03-2012, 04:30 AM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No problem. But it's not a setting in the adminCP, you need to edit the includes/config.php file. Download your current config.php file via ftp, edit it to make the change (use a programming editor or notepad), then upload it, overwriting the current file. This is the same file that has your database connection information that was set up when the forum was installed.

If you're unsure about doing this, you might want to edit a copy of the file (or save it to a different place after editing). That way if something goes wrong you can upload the original file again and you should be back where you were.
Reply With Quote
  #7  
Old 09-03-2012, 05:26 AM
Dave234 Dave234 is offline
 
Join Date: Mar 2012
Posts: 256
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I honestly have no idea how to do this. I have ftp, but how would I download the current config.php file?
Reply With Quote
  #8  
Old 09-03-2012, 05:28 AM
John Lester John Lester is offline
 
Join Date: Nov 2004
Posts: 543
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Start your FTP program. Then (assuming your forums are in a "forums" folder) open the forums folder, then open the includes folder, then download the file config.php

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

If you do not know what your userid is, go to your ACP and then click on users then click on search for users, enter your name and at the very top you will see your userid (above the drop down box above your name).
Reply With Quote
  #9  
Old 09-03-2012, 10:56 AM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dave234 View Post
I honestly have no idea how to do this. I have ftp, but how would I download the current config.php file?
Navigate to the folder mentioned above and then download the file in question to your pc and after entering your user id at the place mentioned above, save the changes and then re-upload the file back overwriting the old one and you should be all done.

Alternatively you can do that through the file manager section in your cpanel, provided it has it.
Reply With Quote
  #10  
Old 09-03-2012, 02:01 PM
Dave234 Dave234 is offline
 
Join Date: Mar 2012
Posts: 256
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm very nervous about messing with the config.php file from the ftp. I right-clicked and chose "View/Edit", and it opened it automatically in WordPad. I found the part of the code you were talking about, and I see that my userid is not there.

Regarding what my userid is, I did what you said, John Lester, in AdminCP, and above my name it says: "User: El Luchador Rubio (id: 1)". Does this mean I would enter "1" in the config.php?

I am very nervous about messing with the config.php file through ftp. Borbole, you say that I could access it through the file manager section in my cpanel? Can you please tell me where I can find that? For example, AdminCP > _______ > __________ ? I looked all through it and I can't see anything that says "File Manager".....
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 09:50 AM.


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.07634 seconds
  • Memory Usage 2,252KB
  • 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
  • (1)bbcode_code
  • (2)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
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (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
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete