bluesteam Posted November 20, 2019 Share Posted November 20, 2019 Hello, I am unable to use my WHMCS after I moved to a new server. Before moving to a new server, I forgot to disable the Two-Factor Authentication module. On the new server, it would not let me log in to WHMCS so I ran the following sql commands on the database: update tbladmins set authmodule = '' where username = 'admin'; update tbladmins set authdata = '' where username = 'admin'; update tbladmins set authmodule = '' where username = 'admin'; update tbladmins set authdata = '' where username = 'admin'; after this I could log in but now it wants me to re-configure the 2fa so after clicking "Get Started" I see the error: http://prntscr.com/pzhtv5 An error occurred while communicating with the server. Please try again. Now I cannot proceed past this point because it just fails over and over... Please can somene shed light on this?? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted November 20, 2019 Share Posted November 20, 2019 14 minutes ago, bluesteam said: Please can somene shed light on this?? maybe this link will help... 0 Quote Link to comment Share on other sites More sharing options...
bluesteam Posted November 20, 2019 Author Share Posted November 20, 2019 Thanks Brian I already saw that link and that link instructs me to execute the below sql command on the tblconfiguration: update tblconfiguration set value='a:3:{s:11:"forceclient";s:0:"";s:10:"forceadmin";s:0:"";s:7:"modules";a:1:{s:6:"yubico";a:2:{s:8:"clientid";s:0:"";s:9:"secretkey";s:0:"";}}}' where setting='2fasettings'; However, that breaks things COMPLETELY because that removed all settings for totp and other two factors platforms. I am using totp and the above sql statement sets ONLY yubico. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted November 20, 2019 Share Posted November 20, 2019 I had a sneaking feeling that query might have been specific to Tom's account rather than for general use - therefore, you might be better off contacting support directly, as they should have a fix for this. 0 Quote Link to comment Share on other sites More sharing options...
bluesteam Posted November 20, 2019 Author Share Posted November 20, 2019 Thanks Brian, I have opened a ticket but its a real pain now because I cannot work at all. Also, whats bugging me more is after disabling the totp in the admin table, it allows me in but won't connect to the two factor system as it says unable to connect. 0 Quote Link to comment Share on other sites More sharing options...
bluesteam Posted November 20, 2019 Author Share Posted November 20, 2019 So on the new server, the SOAP module wasn't enabled. This was preventing the communication between the server and the token servers. After I enabled the SOAP module I went through all the modules to make sure that the necessary ones were enabled. I retested and I was now able to get past the communication error. However, now the barcode is not rendering. it's simply not generation. Any idea?? 0 Quote Link to comment Share on other sites More sharing options...
bluesteam Posted November 20, 2019 Author Share Posted November 20, 2019 ok, so the problem was related to the .htaccess file containing the following PHP entries: Quote <IfModule php7_module> php_flag display_errors On php_value max_execution_time 300 php_value max_input_time 6300 php_value max_input_vars 5000 php_value memory_limit 512M php_value post_max_size 256M php_value session.gc_maxlifetime 1440 php_value session.save_path "/var/cpanel/php/sessions/ea-php73" php_value upload_max_filesize 128M php_flag zlib.output_compression Off </IfModule> <IfModule lsapi_module> php_flag display_errors On php_value max_execution_time 300 php_value max_input_time 6300 php_value max_input_vars 5000 php_value memory_limit 512M php_value post_max_size 256M php_value session.gc_maxlifetime 1440 php_value session.save_path "/var/cpanel/php/sessions/ea-php73" php_value upload_max_filesize 128M php_flag zlib.output_compression Off </IfModule> I removed these and everything worked. So it's clear the old host used a different PHP setup than the new host. 0 Quote Link to comment Share on other sites More sharing options...
kiopeeds6 Posted November 26, 2020 Share Posted November 26, 2020 An error occurred while communicating with the server. Please try again. إغلاق 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.