Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ImportsService.php #17

Closed
wants to merge 1 commit into from
Closed

Conversation

phoob
Copy link
Contributor

@phoob phoob commented Oct 2, 2018

Solve yii\base\ErrorException: Trying to get property of non-object in /var/www/html/vendor/putyourlightson/craft-campaign/src/services/ImportsService.php:225

Solve `yii\base\ErrorException: Trying to get property of non-object in /var/www/html/vendor/putyourlightson/craft-campaign/src/services/ImportsService.php:225`
@putyourlightson
Copy link
Collaborator

Thanks for the pull request. In what situation are you encountering this exception? I can’t replicate it locally.

@phoob
Copy link
Contributor Author

phoob commented Oct 2, 2018

Hmm.. I encounter it when trying to import a csv file..

@putyourlightson
Copy link
Collaborator

putyourlightson commented Oct 2, 2018

Hmm, from a CSV file? I just don't quite get why Craft::$app->getUser()->getIdentity() would return null given that you are importing while logged into the control panel.

@putyourlightson
Copy link
Collaborator

Any idea on why this might have happened in your environment and not mine? I'd like to get to the bottom of it so I can issue a permanent fix.

@putyourlightson
Copy link
Collaborator

Fixed, thank you.

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

Successfully merging this pull request may close these issues.

None yet

2 participants