Guides & Tutorials
Browse our easy to follow guides and tutorials that demonstrate how to use WHMCS and resolve common problems.
Guides & Tutorials Troubleshooting Common Errors Troubleshooting ionCube Errors
Troubleshooting ionCube Errors
To help protect the WHMCS software code, we obfuscate it using a system called ionCube®. Misconfiguration of ionCube Loader® can cause errors.
Site error: the ionCube PHP Loader needs to be installed.
You may see an error that resembles the following example:
Site error: the ionCube PHP Loader needs to be installed. This is a widely used PHP extension for running ionCube protected PHP code, website security and malware blocking. Please visit get-loader.ioncube.com for install assistance.
ionCube Required errors are due to a configuration problem with ionCube Loader on your server. It might be outdated or missing entirely.
To resolve this issue:
1. Contact your hosting provider or system administrator to ensure that the appropriate version of ionCube Loader is installed. For more information, see System Requirements.
2. SSH in to your server as the same user under which cron jobs run.
3. Run the following command:
php -v
If your server operates multiple versions of PHP, replace php with the path of the PHP version that WHMCS currently runs on.
For example, on a cPanel & WHM server that uses PHP 8.1, run:
/opt/cpanel/ea-php81/root/usr/bin/php -v
On a Plesk server that uses PHP 8.1, run:
/opt/plesk/php/8.1/bin/php -v
This will return output that resembles the following example:
WHMCS does not support PHP 8.0. If you see this PHP version, you must move to PHP 7.4 or 8.1 in order to use WHMCS.
- If the with the ionCube PHP Loader line is missing, this indicates that ionCube Loader is not available for this user.
- If the with the ionCube PHP Loader line reports an old version of ionCube Loader, your configuration does not comply with WHMCS's system requirements.
4. Work with your hosting provider or system administrator to ensure that the required version of ionCube Loader is installed and available to the cron job user.
The file /path/filename.php encoded as type [1/71] cannot be decoded.
You may see an error that resembles the following example:
The file /home/username/public_html/whmcs/modules/gateways/paypalexpress.php encoded as type [1/71] cannot be decoded by this version of the ionCube Loader. in Unknown on line 0
To resolve this issue:
1. In your preferred FTP client, go to the location that appears in the error message. In the above example, this is /public_html/whmcs/modules/gateways/ .
2. Delete the file that appears in the error message. In this example, this is paypalexpress.php .
3. In WHMCS, reload the affected page again.
4. If you see another error for a different file, repeat the process for each file until the page loads correctly.
For more information, see PHP Migration Guide.
Site error: the file /path/cron.php requires the ionCube PHP Loader _loader_ to be installed.
This error indicates a configuration issue in ionCube Loader. It might be outdated or missing entirely.
To resolve this issue:
1. Contact your hosting provider or system administrator to ensure that the appropriate version of ionCube Loader is installed. For more information, see System Requirements.
2. SSH in to your server as the same user under which cron jobs run.
3. Run the following command:
php -v
If your server operates multiple versions of PHP, replace php with the path of the PHP version that WHMCS currently runs on.
For example, on a cPanel & WHM server that uses PHP 8.1, run:
/opt/cpanel/ea-php81/root/usr/bin/php -v
On a Plesk server that uses PHP 8.1, run:
/opt/plesk/php/8.1/bin/php -v
This will return output that resembles the following example:
- If the with the ionCube PHP Loader line is missing, this indicates that ionCube Loader is not available for this user.
- If the with the ionCube PHP Loader line reports an old version of ionCube Loader, your configuration does not comply with WHMCS's system requirements.
4. Work with your hosting provider or system administrator to ensure that the required version of ionCube Loader is installed and available to the cron job user.
Some hosting providers do not use the same PHP configuration for cron jobs and web applications. In order to meet WHMCS's system requirements, you may need to specify the PHP binary in the cron command. For example:
/opt/php56/bin/php -q /home/username/public_html/whmcs/crons/cron.php
Replace /home/username/public_html/whmcs/ with the path to your WHMCS installation.
Fatal error: The file /path/filename.php was encoded by the ionCube Encoder for PHP x.
You may see an error that resembles the following example:
Fatal error: The file /home/username/public_html/whmcs/modules/gateways/ewayuk.php was encoded by the ionCube Encoder for PHP 5.3 and cannot run under PHP 7.0. Please ask the provider of the script to provide a version encoded with the ionCube Encoder for PHP 5.6. in Unknown on line 0
This error indicates a PHP version encoding error due to outdated file for a previous WHMCS version (prior to WHMCS 7.0).
This issue may initially display as a blank or partially-formatted page.
Enabling Display Errors in the Other tab at Configuration > System Settings > General Settings and reloading the page will reveal the error message.
To resolve this error:
1. In your preferred FTP client, go to the location that displays in the error message (in this example, /home/username/public_html/whmcs/modules/gateways/ ).
2. Delete the file that displays in the error message (in this example, ewayuk.php ).
3. Reload the page.
4. If reloading displays the same error for a different file, repeat this process for each file until the page loads correctly.
- Prev:Troubleshooting CURL Error: 56 - OpenSSL SSL_read: Success error
- Next:Troubleshooting Question Marks in PDF Invoices and Quotes
Topics
- Common Errors 24
- Troubleshooting CURL Error: 56 - OpenSSL SSL_read: Success error
- Troubleshooting ionCube Errors
- Troubleshooting Question Marks in PDF Invoices and Quotes
- Troubleshooting an "Allowed memory size exhausted" Error
- Troubleshooting Impossible to create the root directory Errors
- Troubleshooting a 404 Page Not Found Error
- Troubleshooting reCAPTCHA Invalid Domain for Site Key
- Troubleshooting CURL Error: 56 - OpenSSL SSL_read unexpected eof while reading
- Troubleshooting an InvalidArgumentException: Data missing in Carbon.php:425 Error
- An error occurred while communicating with the server. Please try again
- Troubleshooting a Critical Error - Could not connect to the database Error
- Troubleshooting an Argument 1 passed . must be an instance of PDOStatement Error
- Troubleshooting a Failed Opening Required file Error
- Troubleshooting a Duplicate entry '0' for key 'PRIMARY' Error
- Troubleshooting an Access Denied - Forbidden Error
- Troubleshooting an TypeError: Argument 1 passed to Carbon\CarbonInterval::setLocalTranslator() Error
- Troubleshooting a The template could not be found Error
- Troubleshooting a You are currently accessing the admin area using an insecure connection Notice
- Troubleshooting an InvalidArgumentException: Query string must not include a URI fragment Error
- Troubleshooting Backup Errors
- Troubleshooting a The file /path/to/whmcs/index.php is corrupted. Error
- Time-Based Tokens QR Code Image is Broken
- Troubleshooting Dataset must be an array in /vendor/whmcs/whmcs-foundation/lib/TableQuery.php
- Troubleshoot Duo Security Login Failures
- How to Resolve A Certificate Authority Verified SSL Certificate Was Not Detected on example.com
- Troubleshooting Unsupported Protocol Errors (TLS Support)
- Troubleshooting an Order Not Found. Exiting. Error
- Troubleshooting Server IP Address Appearing in Client Logs
- Resolving a Base table or view not found Error
- Troubleshooting Frequent Logouts
- Sending Failed. Please see documentation SendEmail API response
- Troubleshooting Admin Directory Errors
- TypeError: Return value of WHMCS\File::guessFileExtension() must be of the type string
- Troubleshooting Domain Invoice Generation
- Integrity constraint violation: 1062 Duplicate entry '2147483647' for key 'tblinvoices.PRIMARY' Errors
- Troubleshooting Service Invoice Generation
- Troubleshooting Unexpected Service Suspensions
- Troubleshooting Unexpected Service Terminations
- Troubleshooting Domain Invoice Cancellation
- Troubleshooting Email Sending Problems for WHMCS 7.x
- Troubleshooting Welcome Email Sending Issues
- Troubleshooting Email Sending Problems
- Troubleshooting Administrators Not Receiving Support Ticket Notification Emails
- Connection unsuccessful. Please close this window and try again with Microsoft
- URL may not contain a query string with Microsoft
- SMTP connect() failed Error with External SMTP Mail Providers
- Troubleshooting a Cannot connect to host (php_network_getaddresses: getaddrinfo failed: Name or service not known) Error
- Call to undefined function PHPMailer\PHPMailer\escapeshellarg() Errors
- Troubleshooting Invalid License on HostGator Servers
- Troubleshooting Your License Key is Invalid API Errors
- Troubleshooting Licence Connection Error
- Troubleshooting a Blank Page/Oops Error Message
- Troubleshooting Login Problems
- Troubleshooting Warning Messages
- How to refresh admin dashboard widgets
- Resolving Attention Items on the System Health Status Page
- Resolving Warnings on the System Health Status Page
- Troubleshooting a Redirect Loop
- Troubleshooting Twitter Sign-In Integrations
- Troubleshooting Facebook App Review Requests
- Is WHMCS Compatible with ionCube Loader® 13?
- Restoring Default Email Templates
- Troubleshooting TCPDF ERROR: [Image] Unable to get the size of the image
- Troubleshooting Empty Page Contents
- Replacing Legacy Smarty Tags with Hooks
- Eliminating Legacy Smarty Tags in WHMCS 8.7+
- Troubleshooting and Debugging WHMCS API Calls
- Troubleshooting & Debugging Hooks
- The reset link you have followed is invalid. Please try again. Errors
- Troubleshooting Clients Unable to Login
- Troubleshooting Domain Availability Check Problems
- Troubleshooting Domain Pricing Changes Not Saving
- WHMCS\Exception\InvalidDomain: The domain is invalid
- Validation.com Discontinued Service
- Verify Whether Your System Cron is Completing Successfully
- Verify That Your System Cron is Being Invoked
- Troubleshooting the Cron Not Completing
- Advanced Cron Troubleshooting
- Advanced Cron Troubleshooting - Intermittent Issues
- Resolve cron has run within the last 24 hours message
- Resolving a Cron Invocation Frequency Warning
- Resolving a Daily Cron Run Warning
- Identifying the php.ini used for in command line/cron engine
- Identifying the timezone used in command line/cron engine
- Cron stuck on Executing System Queue step
- Maximum execution time of 300 seconds exceeded in /path/to/whmcs/vendor/tecnickcom/tcpdf/tcpdf.php
- Cron Halts on Tenant Usage Metrics
- No input file specified
- A license key is required. If you don't have one, please visit www.whmcs.com to purchase one Errors
- Integrity constraint violation: 1062 Duplicate entry '1' for key 'tblconfiguration.PRIMARY' Errors
- Troubleshooting Installation Issues
- Troubleshooting Accented Character Display in CSV Reports
- Client Area Navigation and Sidebar do not display titles
- Troubleshooting a 404 Error or Unexpected Page
- Shopping Cart Promotions Do Not Display
- Unable to communicate with the Symantec Service. Please try again later
- Troubleshooting Free Domains
- Troubleshooting Domain Availability Problems
- Troubleshooting Problems Adding Products to Cart
- Unable to Add Products to Cart
- Cross-selling Recommendations Do Not Display on Order Form
- Troubleshooting Order Form Issues
- Troubleshooting Client Details Display Issues on Invoices
- Troubleshooting sslv3 alert handshake failure and tlsv1 alert protocol version Errors
- Why did a service Next Due Date move forward several billing cycles?
- Troubleshooting users logged out when downloading invoices
- Troubleshooting a This Payment Solution module could not be loaded Error
- Troubleshooting a Remote Transaction Failure Please Contact Support Error
- PayPal Checkout SSL Requirement
- Troubleshooting a Module Not Found Error
- Understanding PayPal Checkout Subscription Log Entries
- Troubleshooting Empty Invoices and Duplicated Reminder Emails
- Troubleshooting Chrome Browser Crashes with 2CheckOut Inline Checkout
- Stripe and Reserve Bank of India (RBI) Regulation Warnings
- Product attribute Package Name XXX Not Found on Server
- Troubleshooting An Unknown Error Occurred
- Troubleshooting a No nameservers are defined for the server this domain is assigned to Error
- Troubleshooting Status Monitoring
- Troubleshooting at Module Command Error Failed to load module "WpToolkitCli" Error
- TypeError: Argument 3 passed to WHMCS\Domains\AdditionalFields::processFieldOverrides() must be of the type array
- Invalid value "paper_lantern" for the "cpmod" setting
- Troubleshooting a _getSSORedirectUrl() must be of the type string, null given Error
- Troubleshooting Module Command Errors
- Troubleshooting Product Provisioning Problems
- Troubleshooting Domain Provisioning Problems
- Troubleshooting Domain Renewal Problems
- Migrating to PayPal Payments
- Troubleshooting Email Piping Problems
- Troubleshooting Email Piping Problems - Advanced
- WHMCS Pop Cron Did Not Run Email
- Troubleshooting an Argument 7 passed to processPoppedTicket() Error
- Troubleshooting a cannot select INBOX, is this a valid transport? Error
- Troubleshooting a Logon failure: unknown user name or bad password Error
- Troubleshooting a Cannot connect to host (php_network_getaddresses: getaddrinfo failed: Name or service not known) Error
- Troubleshooting a TypeError: Return value of convertIniSize() must be of the type int Error
- Bad Request Error Importing Microsoft® Email
- POP3 read failed - connection closed? Errors
- the single id was not found in response Errors
- Troubleshooting a General error: 3988 Conversion from collation utf8mb3_unicode_ci into latin1_swedish_ci impossible for parameter Error
- Inconsistent Timestamps in Support Ticket Messages
- Ticket Creation Failed: The system could not generate a ticket number because it reached the maximum number of attempts.
- Automatic Update Failed: Identifying the problem
- Troubleshooting a Check for Updates Failed Error
- Troubleshooting an Update Message Validation Issue Error
- Troubleshooting a File could not be downloaded error
- Troubleshooting a Blank Admin Dashboard After Updating
- Resolving a Down for Maintenance Message
- Troubleshooting A "PHP Fatal error: Class not found" Error
- Resolving MySQL Error Code 1146 - Base table or view not found
- Troubleshooting A Failed to remove legacy modules Error
- Troubleshooting A fatal error occurred while fetching the update Error
- Troubleshooting a Down for Maintenance Error while Updating WHMCS
- Troubleshooting an Apply update dry-run permission issues Error
- Resolving MySQL Error Code 1142 - Command denied to user
- Troubleshooting a cURL error 28: Operation timed out Error
- Troubleshooting Failed Communication with Update Server Error
- How to Resolve Unable to Perform Automatic Updates
- Troubleshooting Problems Accepting EULA After Update