The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Trying to use Access hash Authentication to start a script

Discussion in 'cPanel Developers' started by domeneas, Jul 9, 2014.

  1. domeneas

    domeneas Active Member

    Joined:
    Sep 20, 2013
    Messages:
    27
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    So I would like to start scripting a little bit and thought I'd get the log inn out of the way first. I have never gone down this scripting path before, so bear with me.

    When I use the example code here:Authentication Function Call Methods

    Adding my own server name and access hash, on a site hosted by the server itself (but with a different domain name) I get this result when i examine the page with Firebug. I get the same both of my servers that I tested:
    Code:
    <script src="/cPanel_magic_revision_1394017727/yui-gen/utilities_json/utilities_json.js">
    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    <html><head>
    <title>404 Not Found</title>
    </head><body>
    <h1>Not Found</h1>
    <p>The requested URL /cPanel_magic_revision_1394017727/yui-gen/utilities_json/utilities_json.js was not found on this server.</p>
    <p>Additionally, a 404 Not Found
    error was encountered while trying to use an ErrorDocument to handle the request.</p>
    <hr>
    <address>Apache/2.4.7 (Unix) OpenSSL/1.0.1e-fips mod_bwlimited/1.4 Server at xxxxx.xxxxx.xxx Port 80</address>
    </body></html> 
    
    I am having a real hard time finding anything about this on the internets.

    Any one of you know what is going in?

    CURLSSL is installed. I have forced an update of Cpanel.

    EDIT: I have also verified JSON install by: php -m|grep json It returned "Json"

    Thank you.
     
    #1 domeneas, Jul 9, 2014
    Last edited: Jul 9, 2014
  2. iakela

    iakela Member

    Joined:
    Oct 18, 2009
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Check if /usr/local/cpanel/base/yui-gen/utilities_json/utilities_json.js file exists. If not do forceful update:
    /usr/local/cpanel/scripts/upcp --force
     
  3. domeneas

    domeneas Active Member

    Joined:
    Sep 20, 2013
    Messages:
    27
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    Hi,

    so that the URL hiding behind the magic.

    Yes it exists. There is a navigation_support.js in the same directory.
     
Loading...

Share This Page