Pip Posted August 23, 2020 Share Posted August 23, 2020 9 minutes ago, horst said: Looks like ImportPagesCSVData is null or empty here, when an array or countable object is expected. Have you checked that your data import results in more then 0 valid records? Hi @horst Yup. All seems successful. Link to comment Share on other sites More sharing options...
Roych Posted September 3, 2020 Share Posted September 3, 2020 Hello, Im having some problems importing dates field with csv file. I need to import around 600 events from old drupal 6 site and all the fields are working great eccept date field it won't import it. Not sure what I need to do to make it work here. I tried to change the output format in PW (details tab) and (input tab), but can't make it work. What am I missing here or what am I doing wrong. First two rows of csv looks like this (fields and date field) Spoiler Datum,"Slika","Vstopnina","Naslov","Vsebina","Organizator","Kraj" <span class="date-display-single">22/10/2012 - 20:00</span> what do I need to do to make it work. Thank you R Link to comment Share on other sites More sharing options...
horst Posted September 3, 2020 Share Posted September 3, 2020 The date field has HTML markup wrapped around the date. Can you make a csv file that has the blank datefield? Like with the PHP function strip_tags(), so that you only have the 22/10/2012 as values. 1 Link to comment Share on other sites More sharing options...
kongondo Posted September 4, 2020 Share Posted September 4, 2020 5 hours ago, horst said: so that you only have the 22/10/2012 as values. Good idea but still won't work though (or rather will be malformed, ending up with beginning of time dates) as date field is a datetime field. It requires dates in the format 2015-04-25 09:15:00. Probably easiest if you edit the CSV, e.g. in Excel. Do a search and replace, then tell Excel that column has date values and tell it to change the format to what datetime expects. 2 Link to comment Share on other sites More sharing options...
Pip Posted September 5, 2020 Share Posted September 5, 2020 Is there a way to import pages with the parent in the CSV? Link to comment Share on other sites More sharing options...
maddmac Posted September 28, 2020 Share Posted September 28, 2020 Is there a method to save import settings for future imports? it would be great for non tech-savvy users to be able to minimize issues when importing data for repeated import tasks. Link to comment Share on other sites More sharing options...
Orkun Posted November 24, 2020 Share Posted November 24, 2020 Hi @ryan Can't the title be skipped inside the CSV when the defined parent page has the childNameFormat set? KR Orkun Link to comment Share on other sites More sharing options...
Kiwi Chris Posted March 8, 2021 Share Posted March 8, 2021 @ryan, this module needs to be updated to support import of decimal fields now they're in the core. Link to comment Share on other sites More sharing options...
pwfans Posted September 2, 2021 Share Posted September 2, 2021 On 8/24/2020 at 2:01 AM, Pip said: Hi everyone! Was wondering if anyone been getting this error when you import? Been scratching my head on this. Checked 515 and this is what I got. if($page->id && count($page->get('ImportPagesCSVData'))) { Any idea what's tripping it? Confirmed, i have this warning too, using csv upload and text, pw 3.0.184 and module 1.08, import result seem on and off, some not imported Link to comment Share on other sites More sharing options...
cb2004 Posted September 2, 2021 Share Posted September 2, 2021 Are you using PHP 8? Link to comment Share on other sites More sharing options...
pwfans Posted September 2, 2021 Share Posted September 2, 2021 12 minutes ago, cb2004 said: Are you using PHP 8? PHP 7.3.5 Link to comment Share on other sites More sharing options...
pwfans Posted September 4, 2021 Share Posted September 4, 2021 On 9/2/2021 at 1:19 PM, pwfans said: Confirmed, i have this warning too, using csv upload and text, pw 3.0.184 and module 1.08, import result seem on and off, some not imported Update, error line 515 happen only when updating value, using csv upload method or paste in method, the value seem updated tho. Link to comment Share on other sites More sharing options...
Jukka Posted November 15, 2021 Share Posted November 15, 2021 Hi @ryan, this module is very big time saver for me. I'm also a fan of ProFields Combo and i use both of these regularly. My question is that is there any plans to add support for Combo field type? Now i have to do multiple conversions and helper fields for imports if i want to use Combo fields. I have got the impression that it shouldn't be too hard for this field type? 1 Link to comment Share on other sites More sharing options...
Sava Posted November 20, 2021 Share Posted November 20, 2021 Hi @ryan Thank you for awesome module, but I am having a problem while trying to import images and some of the links are broken. Is there any way to just skip if the link is broken and just continue importing? Link to comment Share on other sites More sharing options...
Fuzzy Posted July 29, 2022 Share Posted July 29, 2022 Hi, I've downloaded the ImportPagesCSV module. Creating new pages works fine. But modifying existing pages throws this error Quote count(): Argument #1 ($value) must be of type Countable|array, null given Does anybody know if there is a problem with this module? Or can somebody help me with this? Thank you in advance! Link to comment Share on other sites More sharing options...
Jan Romero Posted July 29, 2022 Share Posted July 29, 2022 Feels like one of those Errors that used to be Warnings before PHP 8. Do you have a detailed error message with the line number? Count appears 4 times in the Module, but it should be an easy fix either way to add some null-checks or is_countable(). @ryan Link to comment Share on other sites More sharing options...
Fuzzy Posted July 29, 2022 Share Posted July 29, 2022 Thanks @Jan Romero for your answer. Actually, I've no further information on the error. But line 515 seems to throw the error... - Does this help? Link to comment Share on other sites More sharing options...
Jan Romero Posted July 29, 2022 Share Posted July 29, 2022 Yeah, you can probably replace that line with this if($page->id && $page->if('ImportPagesCSVData')) { to make it work on your end. For a permanent solution the module will have to be updated. 1 Link to comment Share on other sites More sharing options...
Fuzzy Posted July 29, 2022 Share Posted July 29, 2022 Fantastic. Thank you, @Jan Romero! Link to comment Share on other sites More sharing options...
alexm Posted January 5, 2023 Share Posted January 5, 2023 On 11/15/2021 at 10:39 AM, Jukka said: Hi @ryan, this module is very big time saver for me. I'm also a fan of ProFields Combo and i use both of these regularly. My question is that is there any plans to add support for Combo field type? Now i have to do multiple conversions and helper fields for imports if i want to use Combo fields. I have got the impression that it shouldn't be too hard for this field type? I second this. My heart weeps every so slightly that this beautiful module isn't compatible with combo fields (and one presumes other profield types). It would be very delicious if it did! 2 Link to comment Share on other sites More sharing options...
kalimati Posted January 23, 2023 Share Posted January 23, 2023 I've added new fields to the Users template, one of which is a title that serves as the user's ID number. I also have another template for recording attendance, which includes a User ID field that is a page reference to the Users. When I try to import attendance data using a CSV file, the pages are being created as expected, but the User ID fields are not being populated. since they are al Is the module ImportPagesCSV getting confused between page id, name and title since they are all a number in this case? Any hints how I can resolve it? Thanks. Link to comment Share on other sites More sharing options...
HannaP Posted April 4, 2023 Share Posted April 4, 2023 Hello all, I'm about to make my site fit for php8.1 (it's php8.0 at the moment). From this ImportPagesCSV module I get deprecation warnings: Deprecated: auto_detect_line_endings is deprecated in XXX/site/modules/ImportPagesCSV/ImportPagesCSV.module on line 112 Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in XXX/site/modules/ImportPagesCSV/ImportPagesCSV.module on line 229 What to do? (PW Version is 3.0.210) Link to comment Share on other sites More sharing options...
wbmnfktr Posted April 4, 2023 Share Posted April 4, 2023 I have no solution at hand but can confirm that this module has some issues with PHP 8.x. Link to comment Share on other sites More sharing options...
HannaP Posted April 5, 2023 Share Posted April 5, 2023 Maybe I found a solution? For the auto_detect_line_endings in line 114: I commented out this one: ini_set('auto_detect_line_endings', true); and for the strlen() I did this: line 230: $value = $this->sessionGet('csvDelimeter'); changed to $value = (string) $this->sessionGet('csvDelimeter'); I'm not sure if I did well, but the warnings are gone and the module works fine. Link to comment Share on other sites More sharing options...
999design Posted May 3, 2023 Share Posted May 3, 2023 Hi all, First thing is the module is great, does exactly what it says on the tin! My only concern is about the speed at which it imports larger datasets. (Not sure if 1700 even counts as large to be honest?) We had a client report that when importing a csv with 1700 entries it took about an hour to complete. Granted the client maybe off about the exact time, but from my own imports I did find it struggle to create new entries without throwing a timeout error. When testing locally my results where something like: Importing, creating new entries (20-30m was not uncommon) Importing and updating if entry exists (3-5 minutes) Long story short, im just curious of others experience with variously sized datasets and how much a full import took? As I am trying to figure out if this is expected behaviour before I bring it up with IT team who control the server the client site is running on. Any thoughts? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now