Jump to content


  • Content Count

  • Joined

  • Last visited

Everything posted by Jozsef

  1. I'm creating a new page from a form submission. It has been working perfectly but now it fails to save the new page with the error message: Error saving field "title" - Unable to save to 'field_title' for page that doesn't exist in pages table Can any of you spot any error in my code? It's directly in a template file. I probably just can't see the wood for the trees after hours of searching. The funny thing is that I haven't changed anything in that part of the template. // create the page $order = new Page(); // Set the template $order->template = $templates->get("order"); // Set the parent page $order->parent = $pages->get("/orders/"); // Set the title/name field $order->title = $event_title . " - " . $u->first_name . " " . $u->last_name; // $order->headline = $headline; $order->order_event = $event; $order->order_user = $u->id; $order->quantity = $qty; $order->price = $price; // Calculate and save total $order->total = $total; $order->handling = $handling; $order->balance = $balance; // save the order $order->of(false); $order->save(); Update: New pages don't save from the backend either, giving the same error message for each field as admin notifications.
  2. I've just implemented the module on a new site after replacing the iCalcreator library with the latest one as the bundled one doesn't work on PHP 7. I've done it the URL segment way suggested in the first post and used the ->render method. A few notes to the subscription links to save you some time: webcal:// links worked on my Mac in Safari offering to subscribe in the Calendar app. When using https://, Safari just downloads the .ics file instead. For iOS the link must be https://, not webcal:// and also had to modify the URL segment to "ical.ics" to be properly recognised. iOS tries to add the events, not the subscription without the .ics extension. Webcal:// links did not do anything when tapped on iOS13, simply nothing happened. The Google Calendar link must contain an ULR encoded HTTP:// link, https links will give an error message and won't work.
  3. But again, I wouldn't disturb my visitors with yet another popup once they are happy that the original one has disappeared and they can finally get to their business. It's a legal necessity, I get it but most users I talk to hate them, myself included. So I stick to the very minimum that must be done and don't overdo it. I have a link in the footer that brings up the banner (as per instructions) but I won't invite the visitor to change their minds. 😉
  4. I don't know where those various websites you mention quote their text, the below quote is directly from https://gdpr.eu/gdpr-consent-requirements/: "The GDPR does not indicate a shelf life for consent. Theoretically, a person’s consent is indefinite…" It is a requirement though that a person must be able to revoke their consent at any time. But asking them each time is just bad user experience in my opinion.
  5. Question on behalf of those who are not fluent in JS. I read through the js code but still not much smarter on how to setup Google Tag Manager so a tag would fire once consent was given. If I understand correctly I can setup a trigger in GTM that it checks. But would that trigger without page reload? I want Google Analytics report the current page load as soon as the consent is given so I won't loose tracking the entry page. Does the tag manager automatically tracks changes in the dataLayer or only on page load?
  6. Thanks, that is brilliant, multiple solutions for the same problem, built right into the core. PW just keeps giving. 🙂
  7. Sorry if it was covered, I haven't found an answer by searching in Google or on the forum. The client is an estate agency and they want that all images, pdf brochures etc… would disappear from their site when they unpublish or delete a property page. Is that only possible with a custom module that hooks into unpublish or delete? It seems that ProcessWire doesn't delete the folder associated with the page from assets/files/ automatically. Similarly, if the page is unpublished, file uploads are still publicly available with the direct url. As a result, Google would keep them in their index forever giving false results. I understand that images can be used elsewhere in the site so it makes sense to keep them available, however since images/files belong to a page, keeping their public status synced could also make sense. Any suggestion is welcome, maybe I haven't thought of something else.
  8. Yes, I completely agree with that and wanted to bring it up. Especially in the backend when previously we got "Padloper Orders" and "Padloper Reports" etc… It feels much more integrated when you look at something like "Craft Commerce" or "Perch Shop"
  9. Does that mean that products are not going to be ProcessWire pages the same way as they were in Padloper 1? It was such a great integration and made it super easy to edit product templates. Or will they still be available in the Templates section in admin? Great progress, can't wait to test it out.
  10. I agree, Padloper should work the Processwire way, that's the whole point of it. Using multi-language fields and page objects for products is the way to go. I guess most of us who builds a PW store will expect it that way.
  11. I put my vote on this one too. Conventions play a big role in usability and people still use computers or large enough tablets to get work done (e.g. managing a shop).
  12. Count me in too. 🙂 I'm also waiting for this for a project where the website is done and I have to add the shop in later. No point to go with the old version. Let me know if you need any testing done, happy to help and pay the price.
  13. Hi @kongondo, thanks for the updates. Do you have a rough idea on when will an initial release be available? I'd need to add a simple store to a PW site after the holidays. You said there won't be an upgrade path so I'd rather not use V1 anymore.
  14. Will do, thanks. I don't know why I didn't think of that earlier. 🙂
  15. I can't see an option to apply classes on the link itself, on the <a> tag. When using Bootstrap, links must have the nav-link class. Did I miss something? What workaround can I use without messing with the module code? The module is working great, this is really the only thing I missed.
  16. Solved: It turned out I had no template file for any of the pages in the menu and the module checks if pages are viewable. Since non of the pages were viewable, menuItems returned an empty array. Thanks @kongondo for the help and pointing me to the right direction. All is well now.
  17. But that's the thing, there's no space in the menu name anywhere so I don't know where it came from. I sent you a PM with login details.
  18. It's not live, unfortunately. If I do a print_r($menuItems) in line 86, the output is ' main_menu' instead of an array. Interestingly, there's a space before the name of the menu, I'm not sure if it's important. I'll try to upload it to the server later today.
  19. That also returns nothing. That is, no output appears on screen from Tracy.
  20. That has no output at all. I'm very curious what is that, I must overlook something.
  21. ProcessWire\WireArray #1f8a data protected => array () extraData protected => array () itemsRemoved protected => array () itemsAdded protected => array () duplicateChecking protected => FALSE useFuel protected => TRUE _instanceNum private => 0 localHooks protected => array () trackChanges private => 0 changes private => array () _notices protected => array (3) errors => NULL warnings => NULL messages => NULL _wire protected => NULL
  22. I also deleted the content of the file compiler and cache folders. TracyDebugger shows the same two php errors I quoted before but I don't know how to dig deeper, I don't have a lot of experience with PHP debugging.
  23. Hi Kongondo, it's just a fresh install of PW 3.0.118 with a site profile that I took from the previous site. All modules were added by the site profile backup. I use the same code in the template to output the menu. My development machine is a Mac running AMPPS with PHP 7.1 The menu doesn't render, I get the error message instead. Steps I tried (to no avail): - Delete and recreate the menu - Uninstall and delete the module, download a fresh copy and reinstall - Downgrade the core to the same version as the other (working) site by overwriting the "wire" folder
  24. I hope someone can help: I get an error message and can't figure out what's wrong. I'm getting the following errors: Warning: Creating default object from empty value in .../site/modules/ProcessMenuBuilder/MarkupMenuBuilder.module on line 302 Warning: Creating default object from empty value in .../site/modules/ProcessMenuBuilder/MarkupMenuBuilder.module on line 305 I use the same code on two sites, in the same environment, one works, the other one doesn't. Latest module version: 0.2.4 and latest Processwire dev. The code: <?php // Output the main menu $menu_builder = $modules->get("MarkupMenuBuilder"); $menu_options = array( "menu_css_class" => "navbar-nav justify-content-end main-menu", "current_class" => "active", "default_class" => "nav-item" ); echo $menu_builder->render("main_menu", $menu_options); ?> It looks like the menu items get lost somewhere but I'm not that great with reading code and debugging.
  • Create New...