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 10.3.1 with CBM - HSBC + SOAP error, corrupt file?

Discussion in 'Plesk 10.x for Linux Issues, Fixes, How-To' started by hardlink, Oct 22, 2011.

  1. hardlink

    hardlink New Pleskian

    13
    35%
    Joined:
    Oct 20, 2011
    Messages:
    21
    Likes Received:
    0
    Plesk 10.3.1 with CBM - HSPC + SOAP error, corrupt file?

    ---------------------------------------------------------------
    PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE
    Plesk 10.3.1 with CBM 10.3.0, Centos 5.5, X86?

    PROBLEM DESCRIPTION AND STEPS TO REPRODUCE
    I log into Plesk/CBM and when I go to either
    #All Settings->Payment Gateways->Add New Payment Gateway
    or
    #All Settings->Server Info
    I get a fatal error. Having opened the file in question I've lost the initial error, but basically the file is now really badly corrupted and that's causing the problem.

    ACTUAL RESULT
    The file...
    Now looks like this...
    [​IMG]
    Which, ironically is quite Abstract! Maybe that's why it's called that?

    And the error I now get when I try to add new payment gateway is direct from php engine...
    EXPECTED RESULT
    Obviously I would like to add a payment gateway, or view my server info.

    ANY ADDITIONAL INFORMATION
    Please could anyone supply contents of a not-corrupt copy of /opt/plesk-billing/lib/billing-libs/HSPC/SoapClient/Abstract.php??
    --------------------------------------------------------------
     
    Last edited: Oct 23, 2011
  2. hardlink

    hardlink New Pleskian

    13
    35%
    Joined:
    Oct 20, 2011
    Messages:
    21
    Likes Received:
    0
    Bump!

    Could any one offer me a file or advice how to repair it?

    Please?
     
  3. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,572
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
    Plesk is commercial product therefore all our php files are encrypted. That's why you see this abstract content of php file.
    You can try to find corresponding rpm package to which belongs this file with

    # rpm -qf /opt/plesk-billing/lib/billing-libs/HSPC/SoapClient/Abstract.php

    and try to reinstall this rpm package at least.
     
  4. hardlink

    hardlink New Pleskian

    13
    35%
    Joined:
    Oct 20, 2011
    Messages:
    21
    Likes Received:
    0
    To my knowledge, everything else on the server is working fine (Plesk Panel + CBM).
    If I reinstall plesk-billing rpm what problems might I face?

    Chris
     
  5. hardlink

    hardlink New Pleskian

    13
    35%
    Joined:
    Oct 20, 2011
    Messages:
    21
    Likes Received:
    0
    Thank you for your post IgorG!

    I have now found the rpm package file at
    /root/parallels/BILLING_10.3.0/dist-rpm-RedHat-all-all/packages/plesk-billing-10.3.0-20110630.04.noarch.rpm
    That the AutoInstaller had downloaded.

    I downloaded the rpm package and used 7Zip to extract the Abstract.php =)

    However, having saved myself a re-install nightmare, I still have my original fault which made me open Abstract.php and break it in the first!

    When I click into the Business Manger Panel and go to
    "All Settings -> Panel Gateways -> Add New Payment Gateway"
    It creates an error as below...
    The same thing happens when I click into "System Info" as well.

    Any idea what is going on with that please?
     
    Last edited: Oct 24, 2011
  6. hardlink

    hardlink New Pleskian

    13
    35%
    Joined:
    Oct 20, 2011
    Messages:
    21
    Likes Received:
    0
    This is what I get for the "System Info" page...
     
  7. hardlink

    hardlink New Pleskian

    13
    35%
    Joined:
    Oct 20, 2011
    Messages:
    21
    Likes Received:
    0
    I fixed the f***er! Yay me!

    Parallels: This may be of desire for your next micro updates?

    I couldn't load my System Info page because of this. After much hardcore reading into google results to do with my error, I came accross this website...
    http://www.electrictoolbox.com/php-soapclient-unable-parse-url/
    ...which explains two problems to do with this "unable to parse url" error when using Abstract.php.

    First I looked into wsdl cache and deleted the wsdl* files in /tmp. No joy with that.
    Then I thought about "specify the full the path" and started to look for the path within config files.

    Well peeps, it's specified in...
    /opt/plesk-billing/lib/lib-billing/include/config/hspc.ini.
    I spotted the problem after trying to connect to this url with wget at an ssh login. It is https, and delivers a certificate. The problem is that the certificate is based on a hostname (CN=localhost.localdomain) and if you haven't twigged it yet, the url above is an IP address.

    I simply changed the "127.0.0.1" to "localhost.localdomain" which matches the certificate, saved the file (forced with ! in vi as file is read only) and all is working again!
    Yay me =) As you can tell I am quite excited at my lucky success.

    Hope this post can help someone else.
     
    Last edited: Oct 24, 2011
Loading...