- Posts: 5
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
PDF Export PHP Warning
- joshmerriam
- Topic Author
- Offline
- New Member
Less
More
8 years 6 months ago - 8 years 6 months ago #126449
by joshmerriam
PDF Export PHP Warning was created by joshmerriam
I keep getting a PHP warning message when I try to export results as a PDF. The error is specifically on line 65 of the PdfWriter.php file. Here's the error:
Missing argument 2 for pdf::addGidAnswer(), called in /*********/application/helpers/admin/export/PdfWriter.php on line 65 and defined
The argument is $sGroupDescription. Any ideas?
If I turn off debug errors in the config.php file (set to 0), it will work but then I can't access any other page on the site because it will throw a 500 error.
I'm running Version 2.06+ Build 150930 on PHP 5.2.
I'd appreciate any insight anyone has with this error. I can post a screenshot of the error and stack trace if needed.
Missing argument 2 for pdf::addGidAnswer(), called in /*********/application/helpers/admin/export/PdfWriter.php on line 65 and defined
The argument is $sGroupDescription. Any ideas?
If I turn off debug errors in the config.php file (set to 0), it will work but then I can't access any other page on the site because it will throw a 500 error.
I'm running Version 2.06+ Build 150930 on PHP 5.2.
I'd appreciate any insight anyone has with this error. I can post a screenshot of the error and stack trace if needed.
Last edit: 8 years 6 months ago by joshmerriam. Reason: typo
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11639
- Thank you received: 2737
8 years 6 months ago #126468
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic PDF Export PHP Warning
You should first look into the problem that requires you to keep debug mode on.
The problem is probably LS 2.06+ with PHP 5.2. It requires 5.3 or later:
manual.limesurvey.org/Installation#Make_...rvey_on_your_website
The problem is probably LS 2.06+ with PHP 5.2. It requires 5.3 or later:
manual.limesurvey.org/Installation#Make_...rvey_on_your_website
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The topic has been locked.
- Mazi
- Offline
- Official LimeSurvey Partner
8 years 6 months ago #126532
by Mazi
Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
Replied by Mazi on topic PDF Export PHP Warning
Please update your PHP version. If the problem still persists, please file a bug report at our bugtracker.
Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
The topic has been locked.
- joshmerriam
- Topic Author
- Offline
- New Member
Less
More
- Posts: 5
- Thank you received: 0
8 years 6 months ago #126579
by joshmerriam
Replied by joshmerriam on topic PDF Export PHP Warning
Thanks for the help. I checked and my server is actually running 5.3 already as opposed to 5.2.
Not really sure what to do at this point. Like I mentioned before when I turn off debugging I can generate a PDF fine but can't access any other pages in the site. Then if I turn debugging back on I can access the pages but not generate the PDF.
I might start fresh and do a clean install and create a new database to see if that helps.
Not really sure what to do at this point. Like I mentioned before when I turn off debugging I can generate a PDF fine but can't access any other pages in the site. Then if I turn debugging back on I can access the pages but not generate the PDF.
I might start fresh and do a clean install and create a new database to see if that helps.
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13597
- Thank you received: 2487
8 years 6 months ago - 8 years 6 months ago #126580
by DenisChenu
This seems really strange : do you have the access of the server error log ?
If yes : can you look the apache/ngynx/php error log to see what happen when you have the white page.
Denis
PS: have an idea .....
Set debug off and add this to your application/config/config.php:
At the same level tha 'urlManager' (just after).
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic PDF Export PHP Warning
Hi,joshmerriam wrote: [...] when I turn off debugging I [...] can't access any other pages in the site. Then if I turn debugging back on I can access the pages [...]
This seems really strange : do you have the access of the server error log ?
If yes : can you look the apache/ngynx/php error log to see what happen when you have the white page.
Denis
PS: have an idea .....
Set debug off and add this to your application/config/config.php:
Code:
'clientScript'=>array( 'combineJs'=>false, 'compressJs'=>false, ),
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Last edit: 8 years 6 months ago by DenisChenu. Reason: PS
The topic has been locked.
- Mazi
- Offline
- Official LimeSurvey Partner
8 years 6 months ago #126585
by Mazi
Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
Replied by Mazi on topic PDF Export PHP Warning
Which exact PHP version do you use?
I think LS 2.06 does not only require PHP 5.3 but 5.3.3 to be more precise.
I think LS 2.06 does not only require PHP 5.3 but 5.3.3 to be more precise.
Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
The topic has been locked.
- joshmerriam
- Topic Author
- Offline
- New Member
Less
More
- Posts: 5
- Thank you received: 0
8 years 6 months ago #126588
by joshmerriam
Replied by joshmerriam on topic PDF Export PHP Warning
Interesting. Here's what that returned:
Internal Server Error
Property "LSYii_Application.clientScript" is read only.
An internal error occurred while the Web server was processing your request. Please contact the webmaster to report this problem.
Thank you.
2015-10-06 08:26:45
Internal Server Error
Property "LSYii_Application.clientScript" is read only.
An internal error occurred while the Web server was processing your request. Please contact the webmaster to report this problem.
Thank you.
2015-10-06 08:26:45
The topic has been locked.
- joshmerriam
- Topic Author
- Offline
- New Member
Less
More
- Posts: 5
- Thank you received: 0
8 years 6 months ago #126590
by joshmerriam
Replied by joshmerriam on topic PDF Export PHP Warning
Ok, so the server is running PHP 5.3.24. Will try updating to 5.4 to see if that helps.
The topic has been locked.
- joshmerriam
- Topic Author
- Offline
- New Member
Less
More
- Posts: 5
- Thank you received: 0
8 years 6 months ago - 8 years 6 months ago #126624
by joshmerriam
Replied by joshmerriam on topic PDF Export PHP Warning
Well, I updated to 5.4 and re-uploaded all the software and I'm still getting the error on PDF export.
On the server logs I'm getting this:
[Tue Oct 06 20:22:32 2015] [4978273] [core:error] [client xxx.xx.xxx.xx:49484] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer example.com/index.php?r=admin/export&sa=...d=667831&statfilter=
On the server logs I'm getting this:
[Tue Oct 06 20:22:32 2015] [4978273] [core:error] [client xxx.xx.xxx.xx:49484] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer example.com/index.php?r=admin/export&sa=...d=667831&statfilter=
Last edit: 8 years 6 months ago by DenisChenu. Reason: example.com is done for this
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13597
- Thank you received: 2487
8 years 6 months ago #126630
by DenisChenu
But here is the log for export, can you look at the error log for other part with debug at 0.
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic PDF Export PHP Warning
I don't think it's LS related ... more a vhost related.joshmerriam wrote: [Tue Oct 06 20:22:32 2015] [4978273] [core:error] [client xxx.xx.xxx.xx:49484] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary.
But here is the log for export, can you look at the error log for other part with debug at 0.
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
- titanio256
- Offline
- New Member
Less
More
- Posts: 1
- Thank you received: 0
8 years 4 months ago #129171
by titanio256
Replied by titanio256 on topic PDF Export PHP Warning
Hi,
Maybe you already solved this but I got across this problem today and I solved it.
The solution is to set the group description parameter as optional in file /application/libraries/admin/pdf.php in line 726
function addGidAnswer($sGroupName, $sGroupDescription="", $bAllowBreakPage=false)
Maybe you already solved this but I got across this problem today and I solved it.
The solution is to set the group description parameter as optional in file /application/libraries/admin/pdf.php in line 726
function addGidAnswer($sGroupName, $sGroupDescription="", $bAllowBreakPage=false)
The topic has been locked.