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

Enrique.Ruiz’s picture

Status: Active » Closed (works as designed)

Fixed by increasing PHP memory limit from 64M.
Thanks for the fantastic module.

soumn’s picture

I got the same error. I changed php memory limit to 512mb but didnt fix.

nicolasM’s picture

Same for me. 512mb dont fix the problem.

I'm trying to fix it.

Nicolas.

dawe’s picture

Hi guys,

Did you have any luck with it? I'm experiencing the same thing...

Thanks,
Dave

salva.conesa’s picture

Change the php limit in php.ini and of course in /sites/default/settings.

The line: "ini_set('memory_limit', '56M');"

bigcrunch’s picture

Version: 6.x-1.0 » 7.x-1.0
Component: User interface » Code
Status: Closed (works as designed) » Active

I 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?

simon georges’s picture

bigcrunch, could you try the -dev version and give feedback, as some bugfixes have been committed?

bigcrunch’s picture

Hello 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!

simon georges’s picture

Hi,
Do you have access to the logs of your server?

bigcrunch’s picture

No, but I can try to ask for something specific to the hosting service. What would you need to know?

simon georges’s picture

Well, 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.

bigcrunch’s picture

This is the error:
Call to undefined function php_eval() in /home/aopamu/www/sites/all/modules/views_pdf/views_pdf_template.php on line 476

simon georges’s picture

Version: 7.x-1.0 » 6.x-1.0
Component: Code » User interface
Status: Active » Closed (works as designed)

Then 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.

bigcrunch’s picture

Enable the php_filter module worked for me.

Thanks a lot!

simon georges’s picture

I'm glad it worked. Thanks for giving feedback!