Jump to content

Peejay

Members
  • Posts

    39
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Peejay

  1. Hi, 

    I use this module to import a collection of clothes. I use the FieldTypePage in my product template for the sizes. If the size page title/name is a number the import script can't find the page and I get te following error.

    FieldtypePage: Unable to locate page match for: 128

    • ProcessWire 3.0.158 dev
    • ImportPagesCSV 1.0.8
  2. Hi @Gadgetto,

    Thank you for this great module, currently I'am using it for a test-case.

    When I updated with your recent version I get the following error when I want to navigate to the dashboard / products page:

    Fatal error: Uncaught ProcessWire\PageFinderSyntaxException: Field does not exist: snipcart_item_id in /Users/macbookweb014/Documents/BB/localhost/wetthrasport/wire/core/PageFinder.php:1272 Stack trace: #0

    Can you help me fixing it? Do I need to create a snipcart_item_id field?

    Thanks in advance!

    Kind regards, 
    Peejay

     

  3. On 4/15/2019 at 1:25 PM, bramwolf said:

    Hi Guys,

    
    In short: I would like to base the template and parent of the imported pages to be based on values in the csv

    Great work on the module Ryan, it's a very useful extension to Processwire indeed! ? 
    I was wondering if it would be possible to set multiple templates for the pages that are created, maybe based on a .csv field value?

    I'm using Padloper for variation products which ends up looking like this:

    - Parent Product Page       ( needs productprarent template )
         - Variation child page   ( needs variation template )
         - Variation child page
         - Variation child page

    so In my cvs file I guess I would use something like this?

    Type          template               title              color               price            image
    Parent       productparent      T-Shirt                                5   
    Child         variation                T-Shirt         Blue                                     templates/img/blue.jpg
    Child         variation                T-Shirt         Red                                      templates/img/red.jpg
    Child         variation                T-Shirt         Green                                  templates/img/green.jpg   

    This way I could create a parent of all sets of children, if values aren't filled there the system uses the price of the parent.
    I was thinking of something in de lines of:

     

    
    if($CsvLine->type == "Child") {
        $page->parent = $parent($CsvLine->title);
    }


    if takes makes any sense :')

    Do you think something like this could be done?

    Thanks in advance! ?
    Bram

     

    Hi Bram, 

    Did you find a solution for it? I'm looking also for an option to import products in the same way.

  4. On 3/14/2018 at 9:10 PM, DonPachi said:

    Fresh install of PW 3.0.62, I'm getting this error when installing the latest version of Recurme:

    
    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 262144 bytes) in /var/sites/t/X/public_html/wire/core/Modules.php on line 3921
    
    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 262144 bytes) in Unknown on line 0

    Never seen this before and I'm a bit stumped... Any ideas?

    Edit: Increased memory limit with ini_set on the module to see where this goes and got a 30s execution time error. Can't figure this one out, there must be a loop somewhere as increasing that came back to a 800MB memory limit!

    Edit 2: Solved! I'll send you an e-mail with details.

    Hi @DonPachi,

    I'm having the same issue, how did you solve it? 

  5. On 11/2/2018 at 9:43 PM, matjazp said:

    I upgraded PW to the latest dev using the upgrade module from Ryan (I normally upgrade by hand) and got the message that Upgrade files are already present. Please remove them before continuing. Clicking on Remove button didn't help, had to manually delete /site/assets/cache/ProcessWireUpgrade folder. I'm on windows, I think this is important. Anyone else?

    Had the same issue, deleting the cache worked out for me.

    • Like 1
  6. $inputfields = new InputfieldWrapper();
    
    //---------------------------------------------------
    $general = [
        [
            'name' => 'site_name',
            'label' => __('Site Name'),
            'type' => 'InputfieldText',
            'required' => true,
            'value' => '',
            'useLanguages' => true
        ],
        [
            'name' => 'email_address',
            'label' => __('E-mail'),
            'type' => 'InputfieldEmail',
            'required' => true,
            'value' => '',
            'columnWidth' => 33
        ],
        [
            'name' => 'telephone',
            'label' => __('Telephone'),
            'type' => 'InputfieldText',
            'required' => true,
            'value' => '',
            'columnWidth' => 34
        ],
        [
            'name' => 'facebook',
            'label' => __('Facebook'),
            'type' => 'InputfieldText',
            'value' => '',
            'columnWidth' => 33
        ]
    ];
    
    $tab = new InputfieldWrapper();
    $tab->attr('title', 'General');
    $tab->attr('class', 'WireTab');
    $tab->add($general);
    $inputfields->append($tab);
    
    return $inputfields;

     

  7. Hi gmclelland, 

    Thx for your fast reply ?.

    I tried your module with only inputfields (like your example kitchen-sink) and then there is no problem.

    But when I use your "wiretabs" example then I get the error.

  8. Hi,

    After updating to PW 3.0.109 i get the following error:

    Error: Call to a member function attr() on null in .../site/assets/cache/FileCompiler/site/modules/SettingsFactory/ProcessSettingsFactory.module on line 137

    Can't figure out, what's going wrong :s

  9. Are there already European developers implementing GDPR in their websites ?  The European regulation will be obliged by 28/05/2018.

    What is it?

     

    Quote

    Scope

    The regulation applies if the data controller (organization that collects data from EU residents) or processor (organization that processes data on behalf of data controller e.g. cloud service providers) or the data subject (person) is based in the EU. Furthermore the regulation also applies to organizations based outside the European Union if they collect or process personal data of EU residents. According to the European Commission "personal data is any information relating to an individual, whether it relates to his or her private, professional or public life. It can be anything from a name, a home address, a photo, an email address, bank details, posts on social networking websites, medical information, or a computer’s IP address.

     

    Quote

    Pseudonymisation

    The GDPR refers to pseudonymisation as a process that transforms personal data in such a way that the resulting data cannot be attributed to a specific data subject without the use of additional information. An example of pseudonymisation is encryption, which renders the original data unintelligible and the process cannot be reversed without access to the correct decryption key. The GDPR requires that this additional information (such as the decryption key) be kept separately from the pseudonymised data. Pseudonymisation is recommended to reduce the risks to the concerned data subjects and also help controllers and processors to meet their data-protection obligations (Recital 28).

    Although the GDPR encourages the use of pseudonymisation to "reduce risks to the data subjects," (Recital 28) pseudonymised data is still considered personal data (Recital 26) and therefore remains covered by the GDPR.

     

    It will be obliged to encrypt all personal data fields (name, email, phone, address, ... ) from users, and communicate about it. 

    It would be interesting to implement an encryption setting for fields, just like the password field. That way all data in a database will be useless, unless you have a decryption key. 

    I Think it's some stuff to think about, too meet the European regulation and to make Processwire even more secure.

     

     

    • Like 3
  10. Hi, 

    I want to test this module but I have multiple errors with an install on the latest master version of Processwire (3.0.61):

    • https://github.com/horst-n/WireQueue/issues/2 (the solution of @netcarver worked!)
    • Next I have an error on line 533 in de WireQueue.module ( Call to undefined function wireMkdir()) : I changed it "wireMkdir()" to mkdir()
    • When I want to make a Queue and I select a wire_queue_type and save it I get this error:
       Error saving field "wire_queue_type" - Page 1031 is not valid for wire_queue_type (Page 1031 does not have required parent 1016)

    Can someone help me with this, or is there a new version on his way? 

     

  11. Hi, 

    I wan't to send a generated PDF with in an email attachment. To sent the email, I have to generate and save the PDF file. I' don't need it afterwards, zo I want to remove the generated PDF after some time.

    In the documentation i found there's a tempDir() method, but I can't get it to work.

    I use the dompdf library to generate a PDF

    This is my current test code:

    $dompdf = new Dompdf();
    $dompdf->loadHtml('hello world');
    
    // (Optional) Setup the paper size and orientation
    $dompdf->setPaper('A4', 'landscape');
    
    // Render the HTML as PDF
    $dompdf->render();
    
    $wireTempDir = files()->tempDir('test');
    
    $output = $dompdf->output('test.pdf');
    
    file_put_contents($wireTempDir, $output);

     

  12. When I take a look in a PW database I see this:
     
    pages are stored in “pages",
    templates are stored in “templates", 
    sessions are stored in “sessions", 
    forms are stored in "forms” (form builder), 
    ...
     
    I want to make a website with a large catalog (1.5 million products). I don’t want that the products are stored in “pages” table in the database, but in the “products” table. Is this possible in PW? End will I maintain the same options, then when I store all products in “pages”?
     
    Some advice would be helpful!
     
    Kind Regards, 
    Peejay
  13. On 4/13/2017 at 10:03 AM, Wanze said:

    @Peejay

    Of course, it doesn't matter where you place the folder as long as the user running apache has write permission. So for testing purposes, you could also place the folder inside the document root.

    Cheers

    Your solution worked! I wil see what happens when I place the website online.

     

    I found a little issue:

    The download link doesn't work when the secure fieldtype is used in the user template file. 

    You get this link: {your site}admin/access/users/?id=41&ftsd=document_1.pdf (-> then you go to the users list)

    But when je place "edit" after users/, the download link works!: {your site}admin/access/users/edit/?id=41&ftsd=document_1.pdf

    Cheers! 

×
×
  • Create New...