Skip to content
This repository has been archived by the owner on Apr 5, 2018. It is now read-only.

Error: Trying to get property of non-object #165

Open
mierla opened this issue Jun 16, 2017 · 3 comments
Open

Error: Trying to get property of non-object #165

mierla opened this issue Jun 16, 2017 · 3 comments

Comments

@mierla
Copy link

mierla commented Jun 16, 2017

Trying to use the plugin on a brand-new Craft install, v. 2.6.2983, and while I think the import is completing successfully, I always get "Internal Server Error: Trying to get property of non-object" along with a deprecation error, so I'm not sure.

The Craft log shows this: Trying to get property of non-object (/var/www/public/craft/plugins/import/records/Import_HistoryRecord.php:65)

@achord
Copy link

achord commented Jun 27, 2017

Im also having this issue.
Import_HistoryRecord.php(65)

65 return craft()->assets->getFileById($this->file)->filename;

@Slgoetz
Copy link

Slgoetz commented Sep 27, 2017

Anyone have a solution to this?

@BridgingUnit
Copy link

Try changing that line 65 to this:

return craft()->assets->getFileById($this->file)['filename'];

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants