1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Plesk Billing intergration

Discussion in 'Plesk 9.x for Linux Issues, Fixes, How-To' started by 2dareis2do, Feb 10, 2009.

  1. 2dareis2do

    2dareis2do Guest

    I am trying to reactivate my standalone version of Plesk Billing. Everything seesms to be working correctly, except that the Plesk Panel does not seem to be able to be able to retrieve clients balances and I get the error message in Plesk at the top of the page in red:

    Error: Unable to fetch customers' balances: Unable to connect to Plesk-Billing.

    I have also looked at the error logs in /var/log/sw-cp-server/error_log and notice the following message on numerous occasions:

    2009-02-10 18:25:17: (mod_fastcgi.c.2589) FastCGI-stderr: PHP Warning: file_get_contents(http://www.mydomain.co.uk/pleskbilling/action-api/api.php) [<a href='function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
    in /usr/local/psa/admin/plib/billing/BillingAPI.php on line 135

    When I look at /usr/local/psa/admin/plib/billing/BillingAPI.php it appears to be encrypted.

    When I look at http://www.mydomain.co.uk/pleskbilling/action-api/api.php, it is not there!

    Any suggestions?

  2. superbock

    superbock Guest

    exact same problem here.

    This happened after I added the servers to PB 6 (standalone, upgraded from MB 5.x)
  3. superbock

    superbock Guest

    cd to your pb httpdocs folder, then:

    mkdir action-api/ && cp -a app-modernbill-admin/api.php action-api/

    Worked for me to remove the error from the control panel.
  4. dams

    dams Guest

    Thanks superbock !

    It's okay for me
  5. ZopfWare

    ZopfWare Regular Pleskian

    May 30, 2004
    Likes Received:
    Upgrade to latest PPB 6.0.1

    I found your above mentioned fix to have solved the problem, but today I installed (despite the absolutely wrong and poor documentation) v 6.0.1 and it has fixed a number of issues.

    1) The client integration appears to now work without the 'fix' from above.
    2) The SSO features work properly, so that I can click on the balance link and am automatically logged in to PPB and taken to the correct clients account.
    3) The repair SSO options described in the documentation are now there.

    I still havent figured out how to sync old accounts that are on the server so that they appear, but it's a step in the right direction.