Jump to content

anttila

Members
  • Posts

    31
  • Joined

  • Last visited

Everything posted by anttila

  1. I made /etc/nginx/conf/processwire where is all the global settings for every ProcessWire clients, and some of those worked and some of not. I'm running latest ProcessWire for all of those. PHP 7.3 is now recommended and supported, but I use 7.4 from outside of distro's apt. But if that's the case, then all the ProcessWires should be effected. Everything else is from official sources. I don't know about netplans, but now I'm interested. :) Found a new issue or maybe this is part of the first one: When trying to put page to the bin, then I'll get popup warning where is only undefined. No real errors and no log entries. (I can delete page if I'm editing it but not from Pages by pressing the button from hover menu (only edit works, so all JQuery things are not(?)))
  2. Thanks for quick reply. I used $config->protectCSRF = false; which fixed the issue, but I have no idea why this problem came in the first place. I normally run 750 and 640, but tried also 755 and 644 owned by www-data. Should be all the necessary permissions and installation went through without any problems. This is some kind of session problem. And somehow there is two fully working ProcessWires, so can't be nginx issue(?).
  3. I have a new server and wanted to use nginx. However, I have two ProcessWire websites which does not let me do anything. I'll get this error every time when I try to change something and sometimes when logging in. Deleted all caches already from ProcessWire and browser. This also happens after installing new ProcessWire and all directories were owned by www-data. I also have two working websites without any problems and all these four uses same kind of setting on nginx config. I don't understand why some of those working fine and some not. Running Debian 10, MariaDB 10.3.22, PHP 7.4, nginx 1.14.2 This request was aborted because it appears to be forged. #0 /sites/clients/clientname/wire/modules/Process/ProcessPageTrash.module(49): ProcessWire\SessionCSRF->validate() #1 /sites/clients/clientname/wire/core/Wire.php(380): ProcessWire\ProcessPageTrash->___execute() #2 /sites/clients/clientname/wire/core/WireHooks.php(823): ProcessWire\Wire->_callMethod() #3 /sites/clients/clientname/wire/core/Wire.php(450): ProcessWire\WireHooks->runHooks() #4 /sites/clients/clientname/wire/core/ProcessController.php(337): ProcessWire\Wire->__call() #5 /sites/clients/clientname/wire/core/Wire.php(380): ProcessWire\ProcessController->___execute() #6 /sites/clients/clientname/wire/core/WireHooks.php(823): ProcessWire\Wire->_callMethod() #7 /sites/clients/clientname/wire/core/Wire.php(450): ProcessWire\WireHooks->runHooks() #8 /sites/clients/clientname/wire/core/admin.php(150): ProcessWire\Wire->__call() #9 /sites/clients/clientname/wire/modules/AdminTheme/AdminThemeDefault/controller.php(13): require('/sites/clients/...') #10 /sites/clients/clientname/site/templates/admin.php(15): require('/sites/clients/...') #11 /sites/clients/clientname/wire/core/TemplateFile.php(318): require('/sites/clients/...') #12 /sites/clients/clientname/wire/core/Wire.php(380): ProcessWire\TemplateFile->___render() #13 /sites/clients/clientname/wire/core/WireHooks.php(823): ProcessWire\Wire->_callMethod() #14 /sites/clients/clientname/wire/core/Wire.php(450): ProcessWire\WireHooks->runHooks() #15 /sites/clients/clientname/wire/modules/PageRender.module(536): ProcessWire\Wire->__call() #16 /sites/clients/clientname/wire/core/Wire.php(383): ProcessWire\PageRender->___renderPage() #17 /sites/clients/clientname/wire/core/WireHooks.php(823): ProcessWire\Wire->_callMethod() #18 /sites/clients/clientname/wire/core/Wire.php(450): ProcessWire\WireHooks->runHooks() #19 /sites/clients/clientname/wire/core/WireHooks.php(924): ProcessWire\Wire->__call() #20 /sites/clients/clientname/wire/core/Wire.php(450): ProcessWire\WireHooks->runHooks() #21 /sites/clients/clientname/wire/modules/Process/ProcessPageView.module(213): ProcessWire\Wire->__call() #22 /sites/clients/clientname/wire/core/Wire.php(383): ProcessWire\ProcessPageView->___execute() #23 /sites/clients/clientname/wire/core/WireHooks.php(823): ProcessWire\Wire->_callMethod() #24 /sites/clients/clientname/wire/core/Wire.php(450): ProcessWire\WireHooks->runHooks() #25 /sites/clients/clientname/index.php(55): ProcessWire\Wire->__call() #26 {main}
  4. I just downloaded the newest dev version and upgraded my website, but image fields does not support WebP. I replaced wire folder, index.php and .htaccess. Invalid image (in /wire/modules/Inputfield/InputfieldFile/InputfieldFile.module line 821) Apache2 / PHP7.0 has GD and ImageMagick enabled.
  5. I know how to use multisite system, I have it already working. What I need to know is can I somehow use that index.php to confirm that the username and the password are ok (all sites have different users). There are multiple databases under one index.php, so how to tell PW which one is right when using external PHP code.
  6. Is it possible to use this kind of technique for multisite (different databases and site folders, same core and index.php). How I can tell ProcessWire which site is the right one after required index.php (it probably uses our demo site as default). There is no point to do own install for all the sites because those are almost identical, but I need to test if the user has the correct password so I need to use right ProcessWire's database / config.php / site folder. My app knows which website and database is the right one, so can I pass it to ProcessWire somehow or do I have to use right config.php for that?
  7. Are you saying that I can just find a right ProcessWire and include its index.php to my web app, and I have full access to its pages and users? I can't but wonder and love the chances of this platform. Thanks! This is so awesome work.
  8. We have many booking calendars made with ProcessWire (own databases) and I want to do a web app (SQL) which allows user to log in. First, the user chooses the right calendar and then (s)he have to log in. The user can be from any of those calendars and the app is not running on ProcessWire (it can if necessary). So if there any way to make sure that the user has rights to the calendar (s)he tries to log in and if the password is correct. Is there any better way to do this? I could also use PIN codes or something, but those need to be encrypted too. Multiple ProcessWires A lot of users per ProcessWire Everyone can log in to the web app (when using right calendar)
  9. They don't actually login to the website when they use the API - I just need to know if the password is correct and send confirmation or false. Although, I could use $session->login to check if the credentials are valid. Thanks for help, I'll look into it.
  10. We are developing an App that sends data over the Internet to ProcessWire (POST/JSON). We want password to be protected somehow when sending it, but I should be able to compare it to PW's passwords. We were thinking of using md5 encryption, but PW uses different encryption. How can I be sure that user has active account when they use the App?
  11. I developed my own web store platform on ProcessWire. Work like a charm. However, I would like to know what is the best way to cache web store? There is a shopping cart, many languages and previously watched products which need to run without cache but everything else could be cached. Is there a way to use PW's own cache or ProCache for everything else except for certain HTML ID? I have used MarkupCache for categories in some cases. I'm addicted to speed. Everything has to be loaded as fast as possible or even faster. My next step is developing AMP HTML as part of the platform, but that is not helping normal version.
  12. Yes, I have tried to find some setting from there, but there is no option for those and every site has those attributes if the link is made in the body field.
  13. Is it possible to get rid of these useless rel attributes? It's CKeditor's default. I don't understand why those are forced.
  14. https://polarartistit.fi/ https://bomba.fi/ Webstores (developed by Tuspe): https://sajt.fi/ https://kupilka.fi/ (shop is only for visitors from Finland) https://tommisoidinmakiproduction.com/ Events: https://osuuskaupparock.fi/ https://karhurock.com/ We have made almost 100 projects already.
  15. I really like your module and it is on every site we make. I found an odd bug when using core page cache and this module; styles not loading correctly and the page looks like there no CSS at all. Most of the sites have no problem, but this happened to maybe five of them. Not very often though. One of them has no page cache, but others do. It's always certain template / page and not the whole site without CSS. All the sites have https on but pages can use both ways.
  16. Is there any way to handle over thousand images? The client wants all their images in one place and search would be nice too. Is there any good way to handle this with this module? Loading time is minutes now..
  17. <?php foreach($users->find($item->writer) as $usr); ?> Odd thing that my custom field not showing when using print_r or var_dump, but still works if using $usr->customfield. Sorry about this post, I had a question, but found an answer already. Can't delete my own posts.
  18. I would recommend certain modules to my own clients, like ProCache, but my employer is not going to buy modules that easily. We do a lot of websites every year, so developer license would not be that big a deal per website, but it's very hard to sell to him. We use Drupal as our main CMS and there you get everything free, and now you should pay to get medals. I do understand why some modules are not for free, but some people don't want to pay extra. And as said before, I can do all kinds of forms for my employer, but he thinks that's not good enough. And ProCache can minify inline CSS and JSON too, and control whole cache system. That's something that AIOM+ can't. So every site only share root (/) but they got their own modules and files. Sounds very good. I'll check that out this week. You were talking about marketing, easy install and supporting this project before, so I wrote things about those. But don't worry, I don't write more about this here. Just keep doing what you were doing before I jumped in. My post does not need its own thread. (:
  19. I began my pilgrimage after co-worker of mine told me about this CMS. After that I installed default theme and began to try how this works. I used Wordpress years on my personal websites, and Drupal 7 for clients' sites. I knew some basics about PHP. 5-min tutorial video for dummies would have been nice. (: At the beginning I didn't know how to use this except what I found inside. My co-worker told me about Cheatsheet and then I began to make tests and everything I know about ProcessWire and PHP I learned from mistakes and succeed. ProcessWire's API is amazing, simple and powerful. The biggest problem here in Finland is that companies do not know ProcessWire. They only know Wordpress, Drupal and maybe some random third CMS. I used ProcessWire for my personal projects first, and then kind of forced it to some of my biggest client's projects. Normally we use Drupal, because there is a module almost every need and it's very popular among of bigger companies. And every module what we use is free. My "boss" don't like to pay when getting new modules. He thinks that when using Open Source CMS everything should be free. Forms are a good examples. Simple Contact Form is ok, but that is maybe too simple. I can code any kind of form he needs, but he thinks that clients should be able to create forms like they can when using Drupal and Webform. Even when most of clients need only one form. ProcessWire Form Builder seems ok, but that's not very cheap. Although he charges big sums from clients and that's ok, but he's not ok when module costs 50+ euros. And all the files are with pages, and those can't be accessed from other pages. That is a huge problem for those who want to upload images and use the same image for many pages. Of course, they can keep uploading same image to all pages, but that's not really good way to do things. I have access to the server so I can upload images where ever I want and use them with PHP, but clients do not have that possibility. Also, I fail to see the point of this because you can link images with pages, even if those were in the same folder. For me, that's no problem, but some of our clients have issues with that. But with ProcessWire I can make things so much easier and mostly faster than with Drupal. Every corner is optimised as well as I can, and ProcessWire does not load a lot scripts and styles inside head tag like most of others do (and if I disable that then something is broken). This CMS is like "a gift from god", but only true believers know about this - real gift specially after trying to find the right content from inside of Drupal's objects and arrays. But to be honest, ProcessWire is made more for us, developers, than for random marketing dude who wants to build a new website fast with some widgets like list of latest articles and slideshow. You need to know how to use ProcessWire and basics of PHP to make the most of this. I think that's why many don't know about this. But in my line of work, this has done a lot for us and made my job a lot easier when doing complex things. I have been supporting this CMS by using meta tag and telling about this CMS when posting to social media about our new creations (clients' sites). But I still have a small company and not have so many followers. Not that much I can do. Is there any big companies in Finland who uses ProcessWire? Company that everyone should know? I have only done small websites like events and small companies. And is there any big webstore made by ProcessWire which looks awesome? The problem is that we need big names and awesome websites if we want to conquer the World. Also, I would love to know is there an easier way to upgrade multiple sites than logging in and press upgrade. Can I get official upgrade package somewhere and then just copy everything from that folder to all websites' folders? I have a ready made bash script for Drupal brush so I could use the same code for copying files. Sorry about long post and some of it maybe little bit off topic.
  20. That's awesome. Thanks @adrian! $url = $page->url(true);
  21. Hi all. First of all, I want to thank you all who blessed us with this great CMS. I have done 20+ sites with this and I'm very happy. I love the API. In case anyone is interested in using Discord to chat and talk about ProcessWire, I made server for us. Discord is a free voice and text chat app designed specifically for gaming, but it's very good for our kind of communities too. Chatting is similar to IRC, voice is similar to TeamSpeak or Mumble, and there will be coming new features like video chatting. Also chance to use notifications when someone talking in a specific channel, but the server's default is only notified when mentioned. There can be multiple channels in one server; general, help, devtalk, security, specific languages. All can be public or accessed by only for a certain role. And if you're not there, let's say for five days, you can still search or read things what people have talked since you were there last time (if mod did not purge that channel). Windows and Mac clients are very good ones, but Linux is still in beta. And of course, there is webchat too. More information about Discord can be found here: https://discordapp.com/ Of course, all the ProcessWire developers can get moderator access to the server. Forums are, of course, very good place to discuss things (and I have found many answers from here), but that is not real time and getting the answers you need can take a lot of time here. People want to get their answers faster, right now, so that’s why Discord can be a very good way to grow our community. Think about it. Invite link to server
  22. Funny "bug" is when I disabled slashes from all the templates, there is still / when using httpUrl. Some testers gave warnings when tested a page without / and canonical tells that there should be /. Google respects canonical too. All inbound and inner links linking to /tutorials, not /tutorials/. I used this code to remove last /. if($id == 1){ $url = "https://timoanttila.com/"; } else { $url = substr($page->httpUrl, 0, -1); }
  23. Thanks for this. I have done several web forms already, but captcha could be a good idea in the Future.
  24. Big thanks for you. I modified your code because I didn't want to fetch images for downloading but just for linking. I made a new template 'kuvat' (means photos) with fields for Flickr gallery id and image field for main page listing. Only bad thing is that user have to add each gallery separately. But works pretty well and better urls than what we had on Drupal. I use smaller thumbnails (q is 150 x 150) for faster loading and Photobox effect for normal photos. <?php include "../lib/curl.class.php"; include "../lib/flickr_album_utils.php"; $album = fa_get_album($item); $images = array(); foreach($album["all_images"] as $f) { $photo = 'https://farm'.$f["farm"].'.staticflickr.com/'.$f["server"].'/'.$f["id"].'_'.$f["secret"].'_b.jpg'; $thumb = 'https://farm'.$f["farm"].'.staticflickr.com/'.$f["server"].'/'.$f["id"].'_'.$f["secret"].'_q.jpg'; echo "<a class='event' href='$photo'><img src='$thumb' alt=''/>"; } ?>
  25. Thanks for all the replies. This certain project didn't go far, but I can use these things later on when doing other projects.
×
×
  • Create New...