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

Undefined variable: user on line 115 of Import_EntryService.php #43

Closed
alxyng opened this issue Mar 24, 2015 · 2 comments
Closed

Undefined variable: user on line 115 of Import_EntryService.php #43

alxyng opened this issue Mar 24, 2015 · 2 comments

Comments

@alxyng
Copy link

alxyng commented Mar 24, 2015

Without the author defined in the CSV, the import fails with this error, temporarily fixed by changing

$element->$author = ($element->$author ? $element->$author : ($user = craft()->userSession->getUser() ? $user->id : 1));

to

$user = craft()->userSession->getUser();
$element->$author = ($element->$author ? $element->$author : ($user ? $user->id : 1));
@rgbjay
Copy link

rgbjay commented Mar 24, 2015

This is great, fixed the issue I was facing in #42

@boboldehampsink
Copy link
Owner

Thanks for pointing this out. I've just released 0.8.18 which fixes this.

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

3 participants