This is a public Forum  publicRSS

Topic

    Sasi Kiran Allada
    Call to undefined functions
    Topic posted December 6, 2017 by Sasi Kiran AlladaRegular 
    20 Views, 3 Comments
    Title:
    Call to undefined functions
    Content:

    Hi All,

    I am getting below error when i use the session_start() and load_curl

    Fatal error: Call to undefined function session_start() in /cgi-bin/<instance-name>/scripts/custom/<script-name>

    Fatal error: Call to undefined function load_curl() in /cgi-bin/<instance-name>/scripts/custom/<script-name>

    Actually I was trying to do a cURL request for the salesforce integration where I get the access_token , instance_url details.. however I am not sure how to avoid the above errors. 

    From my understanding, we will have to do modify the php.ini file but unfortunately this can't be done in  RightNow

    PLEASE SUGGEST...

    Version:
    May 2016

    Answer

     

    • Suresh Thirukoti

      Do you have Social Monitor enabled for your site? Also try with \load_curl() .. also try the below

      if (!function_exists("\curl_init"))
      {
      \load_curl();
      $handle = curl_init(); 
      }
      If issue persists, then you can paste code here after removing sensitive info
      ~Suresh
    • Sasi Kiran Allada

      Thanks Suresh for the response, however the issue is solved by referring this post.

      http://communities.rightnow.com/posts/9efa24a59b?commentId=41463#41463

       

      Thanks again.

    • Suresh Thirukoti

      Thanks Sasi for sharing the solution!! Glad that your issue is resolved!!