Jump to content

case 5077 fix does not work


dacstyle

Recommended Posts

Warning: main(../init.php): failed to open stream: No such file or directory in /home/****/public_html/clients/dologin.php on line 0

 

Warning: main(../init.php): failed to open stream: No such file or directory in /home/****/public_html/clients/dologin.php on line 0

 

Fatal error: main(): Failed opening required '../init.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/****/public_html/clients/dologin.php on line 0

Link to comment
Share on other sites

  • WHMCS Developer

This means you have uploaded the patch file to your WHMCS root rather than the admin folder as detailed in the patch notes.

 

You will need to restore your dologin.php file in the WHMCS root (you can obtain this from the full version download) and place the patched file in your admin directory.

Link to comment
Share on other sites

That's because install/install.php is wrong.

 

it should be

 

$hasher = new WHMCS_Security_Hash_Password();

$passwordHash = $hasher->hash($_REQUEST['password']);

$apiPasswordHash = $hasher->hash(md5($_REQUEST['password']));

mysql_query(sprintf("UPDATE `tbladmins` set `password`='%s', `passwordhash`='%s' where `username`='%s'", $apiPasswordHash, $passwordHash, $_REQUEST['username'] ));

 

$_REQUEST['password'] not $password, they are different. Hope they can fix it.

Link to comment
Share on other sites

I had same issue with Yubico TFA after applying the update and hot fix. All I did to get it working is edited - tbladmins - for the admin user logging in - removed the authmodule field (in my case - yubico ).

 

Then attempted a login - I got an alert saying admin tfa is required bla bla bla - entered the yubico key data - got the backup key and everything is working fine..checked the db and the authdata is where it should be

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated