I am using this module to export invoices as pdf.
I have created the view with all fields and then created the PDF Page display.
Then, suddenly, when trying to configure the display further (ie. accessing the row style options) I get a popup saying: An error occurred at /admin/build/views/ajax/display/PDF_Facturas/pdf_1/row_options. Error Description: 500: Internal server error.
And if I come back to edit the View from the views list I get a Error 500 Internal System Error.
Still the PDF is created without error messages, but I cannot configure the layout.
Only if I delete the views_pdf module I can access the edit view, but of course then I lose the PDF Display.
I have run out of options to check. Any idea?
I have installed fpdi (including fpdf_tpl.php), tcpdf and jquery.ui in the sites/all/libraries folder. Views_pdf in the sites/all/modules folder
Versions: Drupal 6.22, Views 6.x-2.12, JQuery UI 6.x-1.5, JQuery Update 6.x-2.0-alpha1, tcpdf 5.9.129
Apache, PHP 5.2.14
Comments
Comment #1
Enrique.Ruiz commentedFixed by increasing PHP memory limit from 64M.
Thanks for the fantastic module.
Comment #2
soumn commentedI got the same error. I changed php memory limit to 512mb but didnt fix.
Comment #3
nicolasM commentedSame for me. 512mb dont fix the problem.
I'm trying to fix it.
Nicolas.
Comment #4
dawe commentedHi guys,
Did you have any luck with it? I'm experiencing the same thing...
Thanks,
Dave
Comment #5
salva.conesa commentedChange the php limit in php.ini and of course in /sites/default/settings.
The line: "ini_set('memory_limit', '56M');"
Comment #6
bigcrunch commentedI have the same problem, a error 500 when generating the pdf, but until recently worked smoothly and I have not changed anything..
I tried to increase the PHP memory without success. Any idea?
Comment #7
simon georges commentedbigcrunch, could you try the -dev version and give feedback, as some bugfixes have been committed?
Comment #8
bigcrunch commentedHello Simon, I've installed the dev version, but my problem persists. I set the PHP memory limit in 256MB, but made no difference either.
Thanks!
Comment #9
simon georges commentedHi,
Do you have access to the logs of your server?
Comment #10
bigcrunch commentedNo, but I can try to ask for something specific to the hosting service. What would you need to know?
Comment #11
simon georges commentedWell, Error 500 is often a PHP error, so having the error message from the error.log of your server would go a long way towards debugging the error.
Comment #12
bigcrunch commentedThis is the error:
Call to undefined function php_eval() in /home/aopamu/www/sites/all/modules/views_pdf/views_pdf_template.php on line 476Comment #13
simon georges commentedThen this peculiar bug is currently discussed in #1513490: Fatal error: Call to undefined function php_eval(). There are several ways to fix it, the easier is to enable "PHP" module.
I consider the original issue as fixed.
Comment #14
bigcrunch commentedEnable the php_filter module worked for me.
Thanks a lot!
Comment #15
simon georges commentedI'm glad it worked. Thanks for giving feedback!