Fekra IT Posted October 17, 2016 Share Posted October 17, 2016 After the last update for version 7 Show me a problem in the admin area when the pressure profile for a client I have shows me this message The file /home/client/includes/clientfunctions.php is corrupted. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted October 17, 2016 Share Posted October 17, 2016 one solution might be to get hold of the full download for your version (v7.0.1 I assume) and upload the corrupted file again manually - it's not in the incremental patch, so you'll need to get the full version. 0 Quote Link to comment Share on other sites More sharing options...
ehm Posted October 24, 2016 Share Posted October 24, 2016 I'm having the same issue. Upload again from the original file and still. Any other ideas on how to debug it? 0 Quote Link to comment Share on other sites More sharing options...
first88 Posted October 24, 2016 Share Posted October 24, 2016 I am having same exact issue...started today. I upgraded to version 7 earlier in the month and had the WHMCS admins fix a few issues and I thought everything was fine again until now. I am waiting on them to review my ticket. Would love to figure this out.. I am not able to edit credit card details for my clients. I tried to upload the original files but still not working. - - - Updated - - - Also... mind is showing these errors : ccfunctions.php is corrupted TwoFactorAuthentication.php is corrupted And probably more errors... - - - Updated - - - Also... mind is showing these errors : ccfunctions.php is corrupted TwoFactorAuthentication.php is corrupted And probably more errors... 0 Quote Link to comment Share on other sites More sharing options...
WHMCS NickH Posted October 29, 2016 Share Posted October 29, 2016 Hi everyone, I am sorry to hear that you are having an issue with file corruption. This is a known issue that is happening exclusively on HostGator servers. Unfortunately, WHMCS does not have any information on what is causing this problem or how to fix it at this time. We would recommend that you try to upload a fresh copy of all the WHMCS files to see if that resolves the issue. If that does not resolve the issue, we would recommend that you reach out to HostGator Support @ http://support.hostgator.com/ with this issue, as the corruption appears to be happening due to issues with their servers. If you are NOT a HostGator customer and are having this issue, please open a support ticket with us and we will investigate the issue for you. Thanks. 0 Quote Link to comment Share on other sites More sharing options...
anwaalam Posted October 29, 2016 Share Posted October 29, 2016 SOLVED FOR ME, I contacted hostgator live chat support and they fixed it, i asked them about reason why this happened, they said it was from imagick. It is actually the imagick, I had to comment it out in your php.ini file and add some text to your .htaccess. 0 Quote Link to comment Share on other sites More sharing options...
jopaulmj Posted October 31, 2016 Share Posted October 31, 2016 what you added in .htacess ? 0 Quote Link to comment Share on other sites More sharing options...
ojmolina Posted November 28, 2016 Share Posted November 28, 2016 Is being like 8 hours since i post this situation to hostgator and they haven't solved it yet. The imagick thing works. Now i can access the admin login page but after I input my login info, the next page is /includes/clientfunctions.php is corrupted. Can someone tell me what .htaccess changes were made so I can try them. Thank you!! 0 Quote Link to comment Share on other sites More sharing options...
helixseo Posted November 28, 2016 Share Posted November 28, 2016 I am currently on hold with HostGator level 3. I noticed my cron jobs stopped auto processing cards after 7.0.1 upgrade. QUESTION for WHMCS Staff, could this corruption be related to needed to update that cron (I did not). I uploaded 7.0.1 on Nov 21st, and just this morning I got the same issues of various corrupted files. I commented out imagick and can login but get various other corrupted messages. At main WHMCS Admin screen (uploaded same copy I used to install, no change): The file /home/helixseo/public_html/billing/includes/clientfunctions.php is corrupted. Setup > Staff Management > Administrative Users: The file /home/helixseo/public_html/billing/vendor/whmcs/whmcs-foundation/lib/Validate.php is corrupted. Opening a clients invoice tab The file /home/helixseo/public_html/billing/includes/gatewayfunctions.php is corrupted. When I click HOME in the upper left of WHMCS admin area (this issue existed right after install, clicking WHMCS logo worked after install, however now it gives same result as the Home text link): The file /home/helixseo/public_html/billing/includes/clientfunctions.php is corrupted. I am sure there are others, and I see other files being reported above. Hope this helps, I will provide any more info should anything useful come from Level 3 support. 0 Quote Link to comment Share on other sites More sharing options...
helixseo Posted November 28, 2016 Share Posted November 28, 2016 (edited) My system is now fixed. Seems to be related to the new version of PHP and the php.ini file not being in the newer format required by the newer version of PHP. Last week when I updated to WHMCS to v 7.0.1, I had to call HostGator to update to PHP 5.6 to install WHMCS 7.0.1 (I think I was on PHP 5.3.x prior to that) and apparently the level 1 tech used a php.ini file from an older version of PHP that is not 100% compatible with the version of PHP they upgraded me to. In addition to that imagick needed to be commented out, BUT until the php.ini file is correct, commenting it out is not going to actually work, so essentially if commenting out imagick didn't work for you, chances are good the php.ini file needs to be updated to work with the newer version of PHP. Lastly, HostGator suggested I modify the cron to include the version of PHP to use (because they allow multiple version of PHP to run on their servers, they also do not allow it to run every 5 mins, so that is changed to 15 mins) here is the cron (replace with your USERNAME with your username - I suggest lowercase I used uppercase so it would stand out): MIN HOUR DAY MONTH WEEKEND */15 * * * * /opt/php56/bin/php -c /home/USERNAME/php.ini -q /home/USERNAME/public_html/billing/crons/cron.php Here is the code in my .htaccess file (on the line with suPHP_ConfigPath you will need to change USERNAME to your username further unless you have been updated to php 5.6 by HostGator - pasting this in alone will not work): # Use PHP56 as default AddHandler application/x-httpd-php56 .php <IfModule mod_suphp.c> suPHP_ConfigPath /opt/php56/lib </IfModule> <IfModule mod_suphp.c> suPHP_ConfigPath /home/USERNAME/php.ini <Files php.ini> order allow,deny deny from all </Files> </IfModule> After all of this errors went away (I did not re-upload the corrupted files, I don't think they were actually corrupted) on the main screen of WHMCS billing admin, I clicked on the "Generate Due Invoices" link on the left shortcut section, my system had a lot of catching up to do from the crons not running. Looks like all is well now. AND JUST FYI: I also learned that have had daily errors in my cron log since updating to 7.0.1 stating: [28-Nov-2016 00:00:03 America/Chicago] PHP Fatal error: The file /home/USERNAME/public_html/billing/crons/cron.php cannot be decoded by this version of the ionCube Loader. If you are the administrator of this site then please install the latest version of the ionCube Loader. in Unknown on line 0 also in my root dir error log: $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php://input stream instead. in Unknown on line 0 Hope this helps, Jim Edited November 29, 2016 by WHMCS ChrisD Made easier to read 0 Quote Link to comment Share on other sites More sharing options...
dlee7664 Posted December 1, 2016 Share Posted December 1, 2016 Can someone tell me how to comment out Imagick in a php.ini file... Thanks 0 Quote Link to comment Share on other sites More sharing options...
dlee7664 Posted December 3, 2016 Share Posted December 3, 2016 I just got off a 2 hour chat with HostGator. Here is the command to comment out Imagick in your php.ini file. ;extension=imagick.so ;extension="ixed.5.6.lin" Very important you have the correct version of the php.ini file for your version of PHP. I am using 5.6. Everything is working fine for me now. 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.