Download & Extend

Notice: Trying to get property of non-object en theme_pdf_formatter_default() (Line 62 in ... /pdf/includes/pdf.field.inc)

Project:PDF
Version:7.x-1.1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

Ive been running into this problem ever since I updated the module to 7.x-1.1 and also updated the pdf.js to the current version in git.

Fortunately, Ive managed to fix it for myself changing the line 62 from:

$file_url = file_create_url($variables['file']->uri);

to:

$file_url = file_create_url($variables['file']['uri']);

I hope this can help anyone with a similar problem.

Comments

#1

You may need to use the latest file_entity module.
If I remember correctly, I change the code because of it.

#2

@Jonathan I had the same problem. Thank you so much for your solution. Works great.
P.S. I am running this on a multi-site install.

#3

Status:active» closed (fixed)

fixed.

nobody click here