erro pdf template[resolved]

Hi!

I have the following problem:

- I updated a fabrik installation with the Git package.
I'm building a custom template for a list.

When I generate the PDF, the file returns with this error:

"Notice: Undefined property: stdClass::$data in
.../components/com_fabrik/views/list/tmpl/tema-
germano/default.php on line 64

Notice: Trying to get property 'database___fieldname' of non-object in
.../public_html/gustavo2022/components/com_fabrik/views/list/tmpl/tema-
germano/default.php on line 64"




On line 64 has just this: <?php echo $this->_row->data->database___fieldname ?>
(in the code I use the name of the database and the name of the field, I just didn't put it here in the code so as not to cause confusion).

I'm using joomla 3.10



Would anyone have a solution for this? thanks!
 
It's only a notice which will be gone if you set your Joomla error level to simple or none.

But (especially in view of PHP8) you should adapt your code and make sure that the object exists before using it.

BTW: Do you get the notice with the default bootstrap template as PDF template?
 
I understood @troester .

I'm using php in version 7.3.

I turned off joomla's error display and the message disappeared.

But the field I want to show in the pdf is not being printed.

In my theme I want to show in the generated pdf of the list a certain field of that list.
This form "<?php echo $this->_row->data->database___fieldname ?" is it correct?
I'm doing this in the default.php file.

thanks @troester for your help!
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top