Why I am getting an error in PHP 8.0 or 8.1, I am unable to get to the addon module page Print

  • 0

HostX WHMCS :

Note: We are expecting that you have updated the WHMCS and Hostx version and just upgraded the PHP version to PHP 8 and later

Step 1: Go to your services and click on Hostx WHMCS Template Service

Step 2: Then click on, Download the patch file.

Step 3:Extract the downloaded zip file.

Step 4: Now, connect to your local FTP Client example: FileZilla, cPanel, etc using your credentials.

Step 5: Open the extracted folder in your FTP client and replace these root files with VPS-type pages. If you have created more VPS-type pages then after uploading these files follow these steps.

Step 6: Now this (cpanel-hosting.php) file in your editor.

Step 7: Copy this highlighted function as mentioned in the below screenshot and replace it with your custom-created page of VPS type. Please note that it will replace only for VPS type page.

Step 8: Now go to the end of the file and copy the marked line as mentioned in the below screenshot and copy the marked line from the downloaded file and paste the same line on the custom VPS type page over your server.

Step 9: Now upload these two folders hostx_includes and includes over the given path /template/hostx/ so that changes will be effected according to PHP 8.1

Step 10: If you have customized the menu then you can skip the whole file replacement procedure and edit the file with only the changed code needed to be replaced over your server-side file.

Step 11:  The mentioned line in the screenshot needs to be replaced over your server side of the same file.

Step 12: Edit these 2 files and copy the changes to your server-side files.

Step 13: If you have customized the cpanel_pricing.tpl file then you can skip the whole file replacement procedure and edit the file only with the changed marked lines mentioned in the screenshot that needed to be replaced over your server-side file.

Step 14: If you have customized the cpanel_pricing.tpl file then you can skip the whole file replacement procedure and edit the file only with the changed marked lines mentioned in the screenshot that needed to be replaced over your server-side file.

Step 15: At the end replace the addon module as it is.


Was this answer helpful?

« Back