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

PHP Errors Importing JSON #22

Closed
leahscott opened this issue Nov 17, 2015 · 6 comments
Closed

PHP Errors Importing JSON #22

leahscott opened this issue Nov 17, 2015 · 6 comments

Comments

@leahscott
Copy link

Encountering an error when I try importing a feed from JSON:

screen shot 2015-11-17 at 5 30 11 pm

Could this be a JSON validation issue? Is there a place I can see a more detailed log?

@engram-design
Copy link
Contributor

@liamscott Sorry for not getting back to you sooner. This does seem to point to an issue with the JSON feed - with it potentially not being formatted properly.

If you could either: 1) Post the link to your feed here, 2) Use the Feed Me Help widget to send us directly the feed in question, or 3) Get in touch over Slack, and we'll give you a hand!

@leahscott
Copy link
Author

@engram-design Thanks for the help! I ran the feed through some JSON validators and they all passed, but maybe there is a specific standard you are using? You can find the feed at http://cdn2.hubspot.net/hubfs/372554/blog-posts.json

@engram-design
Copy link
Contributor

Hey @liamscott - this actually seems to be a bug, which I'm glad you stumbled upon! Please see the 1.4.3 release which fixes this. Also make sure you're using objects as your primary element.

Let me know if you have any further issues!

@leahscott
Copy link
Author

@engram-design Thank you so much for patching that issue so quickly! That issue has certainly been solved (no longer getting any PHP errors), however I'm still having an issue where my import is failing. Is there a more detailed log somewhere that would assist me in debugging?

I'm curious, if I'm importing a blog post and don't set an author, what happens? Is there a default behavior where the program assigns admin as the author if not specified? Right now, I'm not setting one and wondering if that might be causing my import to fail.

@engram-design
Copy link
Contributor

Not really a more detailed log other than whats provided, but if you'd like to post to the Feed Me Help widget again, happy to look into it.

Right now, it'll import using the currently logged in user. Its on the roadmap to be able to set default values across all fieldtypes. In your case, it'd look for a mapped user, and default to the current user if not found. Sounds like something else might be happening...

@engram-design
Copy link
Contributor

Closing for now, as from memory this was finished up through Slack. Please let me know if you're continuing to have issues!

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

No branches or pull requests

2 participants