SpamExperts / cpanel-addon

WHM/cPanel add-on for providing integration with SpamExperts services

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

'Unable to communicate with the controlpanel API' error shown

SebaDA opened this issue · comments

Version information

Controlpanel: Cpanel v66.0
PHP version: 5.6.30
Addon version: 3.0.96549

Steps to replicate

  1. Install the latest version of the addon
  2. Go to the Support page and show the Diagnostics.

Actual result

Version shows: Controlpanel: Cpanel v66.0
Error: Unable to communicate with the controlpanel API

Expected result

No error should be returned.
Version should show: Controlpanel: Cpanel v11.66.0.26

Other notes

#420032

seems that this was caused by the fact that the addon update was made via:

rm -f /root/.accesstoken; wget -N https://download.seinternal.com/integration/installers/cpanel/installer.sh && bash installer.sh

This removed the /root/,accesstoken file. The installer then failed to create it again, as the Token was still present in the GUI.

The normal update command should be:

wget -N https://download.seinternal.com/integration/installers/cpanel/installer.sh && bash installer.sh