Jump to content

wbmnfktr

Members
  • Posts

    2,267
  • Joined

  • Last visited

  • Days Won

    59

Everything posted by wbmnfktr

  1. If you @Melvin Suter or everyone else wants to play around with a recipe site profile: https://github.com/webmanufaktur/pwrecipes It's by far not complete or a ready-made website but it shows some things I mentioned in first anwer here.
  2. Repeaters are kind of awesome. https://modules.processwire.com/modules/fieldtype-repeater/ You have to install repeater and select options (maybe even page reference - I'm not sure about them) first in order to use them. You will find them under /youradminurl/module/ (Core tab) - look for repeater, select options and page reference.
  3. Allow creating new pages from page reference field and ingredients aren't a thing anymore. Add autosuggest and everything is fine. I actually imported lots of ingredients before. So authors typed bro... and they got broccoli already. Less typos. Perfect. I clean up once in a while but that's a matter of minutes now.
  4. I use WireMailSmtp successfully with the following services/webhosting providers: Gmail (@gmail.com) Google for Domains (Google Apps) Yandex for Domains Outlook.com (Freemail) Strato (Webhosting, DE) 1&1 (Webhosting, DE) Checkdomain (Webhosting, DE) webgo (Webhosting, DE) Dreamhost (Webhosting, US) A2hosting (Webhosting, US)
  5. Great work @Wanze! Haven't had the chance to deploy it on a client's project but I gave it a test-drive within an experiment I prepare right now and I really like it. Everything worked as expected as far as I can tell by now and I should be able to replace my previous set of fields with this module but there is one thing I miss.(One tiny thing I miss in every SEO module/plugin I used in the past.) Custom canonical URL I need the option to change the canonical URL of a page. I could use the module and a custom field for that. Problem solved. I don't know if anyone else ever had the need to change it but I didn't want to miss the opportunity to give this as a kind of feedback - and not as a kind of feature request.
  6. Correct. Ingredient database and therefore filters/presets.
  7. There are so many ways in ProcessWire to do or save things. Depending on your background and history with ProcessWire you will find other ways or solutions. I know recipe-collectors that would only need two fields. A title and a textarea. I personally would go a more abstract way to be able to much more and other things. Template: Recipe Fields: title (text) summary/introduction (textarea) preparation (textarea) ingredients (repeater) Fields: ingredient (page reference - pages with template ingredient) amount (int or text) unit (select options - grams, cups, liters, hint) images (image) Template: Ingredient Fields: title With that setup I can easily collect all my recipes, create a list of all ingredients I need for all of my recipes. Can look for recipes with a special ingredient and so on.
  8. I face a problem with dependencies right now. A field should only be shown and be mandatory if a checkmark (within the repeater matrix type section) is set but this doesn't work all the time. Right now I disabled this dependency and focused on other things but yes... it still seems to be a little bit... unstable.
  9. Ok... sorry... I guess I wasn't accurate enough. In my understanding the hook is fine. As it is ready to get called whenever the API is ready - which is almost every time in your case. No matter if front-end or admin back-end. That's totally fine. But your function won't be executed until !$session->get("shopifyShopCurrency"). Which is fine too and the exact thing you wanted. So... yes... it's bizarre that you already reached your limits. Maybe. I don't know the API limits or the traffic your site gets. Maybe there are lots and lots of bots/spiders on your site that trigger your hook. Or there is enough regular traffic and you need more API requests. Can you log each request/function call to count how often it's executed?
  10. Is hosting provided by 1&1 as well? If so... you could ask their support if you have to use another server/port or whatever in that case. Have you tried another mail service like Gmail? Does that work? If so... 1&1 might have the right answer. if not... there is another problem. What's the complete error message WireMailSmtp shows?
  11. Source: https://processwire.com/blog/posts/processwire-2.6.7-core-updates-and-more/ So... in your case it seems as it's called and used almost every time a page loads/renders.
  12. There have been several threads regarding rewriting page URLs but most of them went towards different directions. You could probably hook into several things and rewrite URLs. I don't have a proper solution for this right now but I'm quite curious about the WHY. Why do you want a URL structure like that? It feels kind of outdated or Contao-like nowadays. If it's because of OLD vs. NEW setup and URLs you could go different ways and redirect the old structure to the new structure.
  13. Regarding symlinks... you should check that htaccess and mod_rewrite play nice together. 1. htaccess # ----------------------------------------------------------------------------------------------- # 1. Don't show directory indexes, but do follow symbolic links # 500 NOTE: Some cloud hosting companies don't allow +FollowSymLinks. # Uncomment +SymLinksifOwnerMatch and comment +FollowSymLinks if you have 500 errors. # If that doesn't resolve the error, then set it back to +FollowSymLinks. # ----------------------------------------------------------------------------------------------- Options -Indexes Options +FollowSymLinks # Options +SymLinksifOwnerMatch 2. Apache / mod_rewrite conf In some cases each document root needs individual configuration settings. Especially in vServer/root server environments.
  14. It's more about server/hosting security than validation as it happens server-side and before any request reaches ProcessWire. ProcessWire works out of the box in about 95-99% situations already. Maybe not in case of NGINX but that's another thing. Knowing more about systems and their configuration isn't a bad thing at all. I don't want to miss anything I know about servers and how to handle them. Have you ever installed Typo3? It is (or at least was) pain in the a** and they still have a nice market share. I'm more afraid of doing my taxes and still I have to deal with it. There are professionals for those things. I wouldn't spend too much time and effort in replacing some lines in the .htaccess file. Why bother with something that's already working almost all of the time? Debugging those installation or migration issues within the core of a CMS is way more difficult than (un-)commenting some lines in a plain-text file. And to be honest... I'm quite shocked that WordPress has just a few lines in its .htaccess. Last but not least... In my opinion: No... I think the .htaccess could do even more in some cases. For example: https://processwire.com/blog/posts/optimizing-404s-in-processwire/
  15. Some fresh sounds I discovered recently. I didn't know I'd like this Synthwave music but... can't get anything done without it. Whole YT Channel: https://www.youtube.com/channel/UCmYTgpKxd-QOJCPDrmaXuqQ Some more on Basecamp. If you loved Stranger Things (Netflix) you will probably like this too. https://synthwavecafe.bandcamp.com/album/stranger-things-tribute
  16. Maybe this could help... if it's the same error/behaviour:
  17. It's just a default Mailchimp newsletter template shown in an online archive. ?
  18. I guess it's something totally obvious but right now I'm out off new ideas. Sorry.
  19. Ok... try to uncomment line 116 in the .htaccess # RewriteBase / How does your mod_rewrite settings for that directory look like? I might need AllowOverride All.
  20. Ok... just some other thoughts. Is that page field setup correctly? Are the pages you want to add matching the parent/template settings within the page field? Are those pages you want to add hidden or unpublished? Does your query find those pages?
  21. I meant the install.sql file within /site-profile-name/install/. But as the blank profile doesn't work either you want to try this... In /install.php you will find const TEST_MODE = false; (around line 55) - change this to true and try again. It will not install anything but tell you possible problems while it tries to do all the install-magic. Another thing could be the whole setup. Which ProcessWire (2.7?), PHP and MySQL version do you use? Maybe there is something... odd.
  22. And another thing with repeaters via API. At least I save after each new repeater - as seen below. $trialsPage = wire("pages")->get(28422); // Get the page $trialsPage->of(false); $newTrial = $ordersPage->trial_repeater_orders->getNewItem(); // Add item to repeater foreach ($selectedProducts as $selectedProduct){ $productPage = $pages->get("template=product, reference={$selectedProduct}"); $newTrial->trial_selected_products->add($productPage); $newTrial->save(); } $trialsPage->save();
  23. Does it work with $selectedProduct in curly brackets like this {$selectedProduct}? $trialsPage = wire("pages")->get(28422); // Get the page $trialsPage->of(false); $newTrial = $ordersPage->trial_repeater_orders->getNewItem(); // Add item to repeater foreach ($selectedProducts as $selectedProduct){ $productPage = $pages->get("template=product, reference={$selectedProduct}"); $newTrial->trial_selected_products->add($productPage); } $newTrial->save(); $trialsPage->save();
  24. Narrow it down to possible problems in your setup. Is it the right folder? Can you access a test.html in that directory from your browser? Does mod_rewrite work properly for that folder? Have you setup a virtual host for it?
  25. Check the .sql file that's in your PW site profile. There might be date ranges similar to 0000-00-00 00:00. Change them to something like 2019-01-01 11:22. Then go to your phpMyAdmin or whatever tool you use in your setup and delete everything in your database. Either import the .sql file manually or try another clean install. I have had that issue before with several profiles created with the Site Profile Export module I wanted to set up locally (within Laragon). Maybe that's similar to your case and setup even though you are using MAMP.
×
×
  • Create New...