Jump to content

shows me this message clientfunctions.php is corrupted


Fekra IT

Recommended Posts

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... :(

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 4 weeks later...

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!!

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 by WHMCS ChrisD
Made easier to read
Link to comment
Share on other sites

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.

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