Jump to content

dragan

Members
  • Content Count

    1,800
  • Joined

  • Last visited

  • Days Won

    20

Everything posted by dragan

  1. As noted, this is also part of Pro Fields, and it's been around for quite some time. On second thought, maybe that's not ideal, considering all the other options you have. I don't know why you keep repeating this. Use an _init.php that you prepend everywhere. In that file, grab those global field values from that one specific page you've set up for just that reason, and you're set. You'll be able to use these vars from anywhere. You don't even need a physical template file for such a "settings" page, since you don't need a frontend view for that.
  2. There are already tons of advice in this thread, and you really seem to have investigated already a lot; but this note about 404 could maybe be because of an ad-blocker you have installed. Other things you could check/try: check allowed hosts in site/config.php (if possible) create a dummy domain for local instance (Laragon e.g. creates sitename.test domains for you automatically, you can use that instead of localhost or 127.0.0.1) Perhaps you have some funky stuff left in your HOSTS file Did you check also if the Apache's http.confs are identical (e.g. Apache modules) ? Did you install Tracy Debugger and set debug mode on? Last but certainly not least: Do you see anything in your Apache error logs?
  3. In case you haven't found it yet, here's the link: https://processwire.com/talk/topic/9574-edit-user-profile-frontend/?do=findComment&comment=92143
  4. @francis I've found one forum thread that answers exactly your question, and comes with fully working code examples from Ryan and others. But that's in the pro FB board, so I probably shouldn't be copying stuff from there... Disclaimer: I haven't done exactly that (yet) with FB myself, so I can't really add much in terms of tips/gotchas...
  5. Just a thought: Shouldn't you be setting the session first, and then redirect? (change order) Your $session->set() is probably never executed at all. Also maybe worth checking out: perhaps you need a === instead of ==.
  6. dragan

    SeoMaestro

    @Wanze Just a quick heads-up re: encoding issue: the fix by @tiefenb works in my setup (using the default PW multilang profile). (Previously, for every instance of "inherit default value" used, Umlaute were b0rked, while manually overwritten values were displaying OK.)
  7. Exactly. That's the preferred "PW way" to do such stuff. It may seem weird at first glance, but once you realize that in PW everything is a page (not just what you render as "page" in the frontend), you can do all kinds of stuff. Think of a PW-page as basically a container than can contain any kind of content, and can be cross-referenced and queried. Don't have time right now to point you to docs/more tutorials, sorry. I always create a dummy template "empty" (naming is up to you; it doesn't need a physical .php file, because it doesn't need to be viewable in the frontend) just for this reason: it has only a title field and nothing else. And you can re-use it as many times as you need, without creating more templates than needed. Just create a new parent page as container for every new category / attribute or whatever you're using it for, so you can reference it in your page reference selector. And with setups like that, if you rename a category, you don't have to update all instances manually (avoid redundancy etc.etc.)
  8. I would choose a page reference field for your categories, instead of a select field. A select field is "static", i.e. you have to add/edit/remove categories yourself, and therefore need the necessary rights. With a page reference field, you can pre-define categories, and in the field-config allow users to add new ones. In case you didn't use page reference fields until now, I suggest you learn more about them. Here's a truly epic tutorial (old, but the fundamental logic still applies all these years later...)
  9. Perhaps it's this issue? https://github.com/processwire/processwire-issues/issues/817 I just noticed you're running the same PW version as the OP in that issue report.
  10. Thanks. I already checked that: I thought maybe it was just with images that are included within CKE, but it's also not outputting WebP format when I choose images inside my template. 😐
  11. @adrian Thanks! I guess I found it myself... My IDE was complaining that $owner was not defined in site/modules/TracyDebugger/panels/RequestInfoPanel.php line 596, so I added $owner = null; in line 551 i.e. before if(function_exists('posix_getpwuid')) { Before that, I also removed phpstorm://open?file=%file&line=%line from the protocol handler in TD config (I never got it to work anyhow; probably a stupid Windows issue...) Not sure if the var init fix is a clever or stupid thing, but at least the errors are now gone.
  12. I just upgraded TD, and now I see this Tracy error on every page (FE + BE): I've deleted the assets/cache/ folder several times, refreshed modules etc., but the error persists. I don't know if it matters, but I've upgraded Tracy with Module Toolkit (only discovered and used for 1-2 days, and so far working flawlessly). Other infos: ProcessWire: 3.0.147 PHP: 7.2.19 Webserver: Apache/2.4.35 (Win64) OpenSSL/1.1.1b MySQL: 5.7.24
  13. So, for the first time ever, I am trying to use the Webp feature. Alas, no luck. ProcessWire: 3.0.147 PHP: 7.2.19 Webserver: Apache/2.4.35 (Win64) OpenSSL/1.1.1b MySQL: 5.7.24 I used the .htaccess method. I tried with FF + Chrome. I created new images, de-activated Pro Cache. I have added this to site/config.php: $config->contentTypes('webp', 'image/webp'); // seen elsewhere in a forum thread + these lines at the top of my .htaccess: <IfModule mod_mime.c> AddType image/webp .webp </IfModule> Still, no Webp images are generated (assets/files/123/ only has JPG versions) or shown in the browser. The mod_mime Apache module is definitely loaded, and I have restarted the server. What else do I need to check?
  14. Did you change anything lately? Installed new modules? Hooks? Install Tracy Debugger and see if it tells you more.
  15. @Vigilante That's exactly where (the often overlooked) Pro field "Functional Fields" shines. It does exactly what you are looking for. https://processwire.com/blog/posts/functional-fields/ Or you could use the Textareas field: https://processwire.com/store/pro-fields/textareas/ The big advantage is that no matter how many fields you are using, behind the scenes it always just counts as one single field.
  16. I dont' get it either. Text and textarea fields don't "link to pages". In the fields "actions" tab, you can see in which templates your field is used. Do you mean this? And likewise, in the template settings ("basics" tab, at the bottom), you can see which pages are assigned to this template. If you mean "a shortcut to the field setting" from within the page editing area, then you should check out the Admin On Steroids module.
  17. So it turned out that the FTP extension wasn't loaded. After enabling it and restarting Apache / Laragon, everything works as expected. (with the earlier Duplicator version, however, no error message was shown) Thanks to @Autofahrn for the help. nope: πŸ˜‰
  18. The absolute path of the remote destination server (where I want the backup to be stored via FTP). Why is that? PW is not even installed on the destination server. I am talking about the field "FTP Settings: Upload directory: Directory on the server where the packages will be stored." Why is that supposed to be the same as my local path "D:/laragon/www/pw/"? That makes no sense.
  19. Well, the first thing you should do is change <option value="">Any</option> to something like <option value="any">Any</option> Then you would at least get a parameter in PW that you could act upon. Before you run your foreach(array('beds', 'bathrooms', 'size') as $key) { routine, I would check if all of those three parameters are set to "any" (or whatever you choose to use), and if that's the case, skip the entire foreach() and go straight to the "full search".
  20. Is "any" an actual form item (checkbox, radio button...) ? If it was, then you would see it in the query parameters as well (e.g. /?beds=&bathrooms=&size=&any=1&submit=), and could easily add it to your selector query logic. If "any" just means that neither beds, bathrooms nor size was selected by the user (which your posted GET example suggests), you would have to account for that scenario, and check for the absence of parameters, and thus send another search selector to PW. If you could post the relevant code, it would sure help.
  21. Shared. I tried absolute paths, and also tried ~, but so far without success.
  22. @flydev I installed Duplicator today (ATO version). Local backups work fine, but FTP does nothing. In the log I just see: What exactly "doesn't exist"? I have entered /public_html/pwb in "upload directory". This folder definitely exists, and the FTP credentials are correct. Any pointers where to look? Do I have to enter server path without leading / ? Something else I missed?
  23. I can't believe I only discovered this great module today. Great stuff!
Γ—
Γ—
  • Create New...