Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

PHP Fatal error: Uncaught Exception: Incorrect response id: (request id: 1)

  • AritzP
  • AritzP's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 1 month ago #220395 by AritzP
Hi everyone,

When a user finishes the survey, we have a pdf export button, where it downloads the pdf.

When that buttons is pressed the following error appear:
 

I founded that the solution was to enable the JSON-RPC option on global configuration, but it didn't work.

Thanks for your time

Using Limesurvey version: 3.27.19+210928
 
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 1 month ago #220412 by holch
This "pdf export button" comes from where? Limesurvey? A plugin? Own script?

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The following user(s) said Thank You: DenisChenu, AritzP
The topic has been locked.
  • AritzP
  • AritzP's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 1 month ago #220413 by AritzP
Hi holch,

The pdf export button its an own script that uses the get_access_key function, but this function drops the error from the jsonrpcclient
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 1 month ago #220414 by holch
But if it is your own script that triggers the error, how can we help?

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The following user(s) said Thank You: DenisChenu, AritzP
The topic has been locked.
  • AritzP
  • AritzP's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 1 month ago #220415 by AritzP
I mean, the error comes from the jsonrpcclient which we use on our script.

And as I saw that this error was fixed by enabling the JSON-RPC on global configuration, I thought someone could help me.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
3 years 1 month ago #220440 by DenisChenu
We don't have any information here.

But more : we all answer in spare time on forum.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The following user(s) said Thank You: AritzP
The topic has been locked.
  • AritzP
  • AritzP's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 1 month ago - 3 years 1 month ago #220446 by AritzP
Hi Denis,

I understand and I really appreciate it.

I will give you more information:
 

On line 4 comes the error, when we try to get_session_key.
Last edit: 3 years 1 month ago by AritzP. Reason: Wrong error line
The topic has been locked.
  • AritzP
  • AritzP's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 1 month ago #220644 by AritzP
Hi everyone,

We finally fixed the issue, if someone has the same problem as me, the solution was to take care on the url that is created on the interface part:

 
 

As you can see in the same image that I posted before, the remotecontrol link wasn't in the appropiate way.
 
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
3 years 1 month ago #220656 by DenisChenu

The LSRC2 URL are shown on global settings, it was adapted to your current configuration.


Source : www.limesurvey.org/manual/RemoteControl_2_API#How_to_use_LSRC2

Maybe need a warning box here …

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose