This is very much work in progress and I don't recommend anyone to use this on live site just yet, since there is few rough edges I want to solve first.
Antti, is the above still true?
/Jasper
Posted 25 November 2011 - 05:41 PM
Antti, is the above still true?
/Jasper
Posted 25 November 2011 - 06:03 PM
Posted 04 December 2011 - 07:01 PM
$t = new MarkupTwitterFeed();
echo $t->render("http://twitter.com/statuses/user_timeline/14601766.rss");
MarkupTwitterFeed: Unable to load http://twitter.com/statuses/user_timeline/14601766.rss
Posted 05 December 2011 - 01:30 PM
<?php phpinfo();
Posted 17 February 2013 - 03:09 AM
Hi guys!
My first post and I have a problem with Data Import Module. I found processwire yesterday and it looks very promising for what I am looking to to do.
I keep on running into an error.
TemplateFile: Duplicate entry 'mariestads-julebrygd-1008' for key 'name_parent_id' INSERT INTO pages SET parent_id=1008, templates_id=43, name='mariestads-julebrygd', modified_users_id=41, status=1, sort=192,modified=NOW(), created=NOW(), created_users_id=41
When I run data import again it will add around 30 new products then the same error occurs. The xml that i need to read in is fairly large 15.000 products, by running the import a few times i manage to add around 150 products and all the data looks valid and in the right place. The file is in Swedish with ÅÄÖ chars in some values.
Here is a screen shot with the error message https://docs.google....dit?usp=sharing
Here is the XML file: http://www.systembol...aspx?Format=Xml
Thank you /mattias
Posted 17 February 2013 - 03:37 AM
Hi Mattias and Welcome to PW. I haven't touched in Data Import module in two years and if I recall correctly I got it working "OK" with JSON but had lot's of issues with XML. As it states on module page (http://modules.proce...ss-data-import/) it is a non working module.
I am not currently looking to finish that module, so your best bet would be building custom importer (those are fun to do and we are here to help you).
Posted 17 February 2013 - 08:10 AM
@somartist | modules created | support me, flattr my work flattr.com
Posted 17 February 2013 - 09:30 AM
That error just indicates that there is a name collision when creating a new page. In this case, there is already a page called mariestads-julebrygd and it's trying to insert a new page with the same name (in the same parent). All that would need to be done here is just to make sure that the imported records are unique in whatever is being set to the $page->name field. If there is an ID column of some sort in the XML source data, that would be a good one to use for a $page->name field.
Posted 17 February 2013 - 10:19 AM
If xml is simple enough it should work. If there are attributes etc it will fail.
Maybe I should finish this. Thinking of making one version for json and another for xml. Or better yet, making these and csv importer working in harmony (sharing some bits of code like mapping etc).
0 members, 0 guests, 0 anonymous users