Notifications
Clear all

[Sticky] Installer won't create admin/user created is no admin

6 Posts
4 Users
0 Reactions
4,264 Views
(@sheepcontrol)
Posts: 332
Reputable Member
Topic starter
 

This is a known issue, working on fixing the installer.

In the meantime, there is a quick fix available:

<?php
/* Quick fix for missing admin

1) upload to main directory
2) run
3) delete

*/
define("_BASEDIR", "./");
include('config.php');
include("includes/dbfunctions.php");
list($tableprefix) = dbrow(dbquery("SELECT tableprefix FROM ".$settingsprefix."fanfiction_settings WHERE sitekey = '$sitekey'"));
define("TABLEPREFIX", $tableprefix);

dbquery("UPDATE ".TABLEPREFIX."fanfiction_authorprefs SET `level` = '1' WHERE `uid` = 1;");
dbclose();
?>

File is attached for download


 
Posted : 20/06/2015 5:51 pm
(@guest7516)
Posts: 0
 

I did this exact thing manually and it never EVER worked, took me two weeks to find this quickfix! THANK YOU! Probably should make this a sticky or something.


 
Posted : 20/08/2015 4:25 pm
(@rabbitgurl83)
Posts: 5
Active Member
 

since you said to upload it to the main directory and i uploaded eFiction to my htdocs folder, do i have to upload it to that folder as well? i tried to upload to my Up folder, which is the main, one but it wouldnt do it it wont do anything i dont understand how to do it


 
Posted : 11/05/2016 12:10 am
(@guest15281)
Posts: 0
 

since you said to upload it to the main directory and i uploaded eFiction to my htdocs folder, do i have to upload it to that folder as well? i tried to upload to my Up folder, which is the main, one but it wouldnt do it it wont do anything i dont understand how to do it

when you upload quickfix.php to your main eFiction folder and run from a web browser, yoursite.com/quickfix.php
,it would show admin tab when you will login using your admin at yoursite.com


 
Posted : 14/05/2016 8:11 am
Nadia
(@nadia)
Posts: 255
Reputable Member
 

Just used the quickfix.php myself and it worked just fine. Don't forget to reload after using it. There is no message that tells you to do so. After the reload you should be admin.


My Hub TrekNation | World of X | Arda Fanfiction

 
Posted : 18/05/2016 9:26 am
(@rabbitgurl83)
Posts: 5
Active Member
 

since you said to upload it to the main directory and i uploaded eFiction to my htdocs folder, do i have to upload it to that folder as well? i tried to upload to my Up folder, which is the main, one but it wouldnt do it it wont do anything i dont understand how to do it

when you upload quickfix.php to your main eFiction folder and run from a web browser, yoursite.com/quickfix.php
,it would show admin tab when you will login using your admin at yoursite.com

i moved the file from my efiction folder because it wont open as alfredofloresfanfiction.epizy.com/htdocs/eFiction355/quickfix.php to my htdocs folder so it will open as alfredofloresfanfiction.epizy.cm/htdocs/quickfix.php but it still wont open it. the '404 page not found" web page keeps comin up. what am i doin wrong? should i change the chmod? i dont get why it wont open it in my web browser


 
Posted : 19/05/2016 6:42 pm
Share: