api error on get template

franco

New Member
Hi
when calling API getTemplate('template-id') I get this error request.php (api)
"{\"status\":\"error\",\"error\":\"CHttpSession and its behaviors do not have a method or closure named "setCacheLimiter".\"}"
dont know to to fix it...
search around without success.
Anyone get same issue and fix it?

thank
 
Hi thank Laurentiu
I follow exactly the api.docs guide and was able to use api for subscriber, ect.
but fail with getTemplate (as reported before...)
curl http method post and get work, so dont know where to find solution
thank
 
@franco - the CHttpSession class is defined in /apps/common/framework/web/CHttpSession.php and in the file, last method is
setCacheLimiter so the method exists.

What version of the app are you using? if not latest, can you upgrade?
 
Hi just upgrade from 1.7.5 to 1.8.1 but error still remain
I did already check on class CHttpSession.php for setCacheLimiter and found it...
 
I did already check on class CHttpSession.php for setCacheLimiter and found it...
Okay, try to also restart PHP. Sometimes if you are using PHP under FPM with opcode enabled, it will cache your code and would result in issues like this, so a PHP Restart or Web Server restart might fix it.
 
Try to restart but no way!
please find attach screenshot (i'm using phpEd for debugging)
 

Attachments

  • Cattura.JPG
    Cattura.JPG
    72.7 KB · Views: 11
I think you're doing the changes in a place then checking them in another one...
Can you open a support ticket with backend url and login to your app and also ftp access so that we can check this?
 
Back
Top