You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Getting this error "There has been an error with your request" while ruining php script

Received Response
18
Views
4
Comments
edited Aug 27, 2019 7:21AM in UI Extensibility 4 comments

Summary

php

Content

Hi Everyone,

i am getting the following error "There has been an error with your request" while updating the Service Product through custom script PHP.

Although , i am able to create the service product but unable to update the same.

Note*: Code executes fine untill the this line "$ServiceProduct->save(RNCPHP\RNObject::SuppressAll);" , after this simple echo is also not getting executed

Thanks!

Code Snippet

function updateProduct($PrdName,$PrdDesc,$Display_value,$Dispo_value,$catID,$EndVisible,$Admin,$parentProductID)
{
    try{
        $ServiceProduct = RNCPHP\ServiceProduct::fetch($PrdName);
        // echo "<pre>";
        // print_r($ServiceProduct);
        // echo "<br>";
        //echo "<br> Line no 316 ";

        echo "<br> Update Details ";
        echo "<br> PrdName ".$PrdName;
        echo "<br>PrdDesc ".$PrdDesc;
        echo "<br>Display_value

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!