Jump to content

wbmnfktr

Members
  • Posts

    2,234
  • Joined

  • Last visited

  • Days Won

    59

Everything posted by wbmnfktr

  1. Just a short update on this. I migrated 10 more sites in the last few days and all sites with $config->sessionAllow couldn't be exported error-free. Either those exports fail on installation or while ProcessWire creates the export ZIP. It's not a real problem unless you skip the setting $config->sessionAllow in your export. Attached to this post you will find a screenshot showing one extreme example of export difference. @ryan can you confirm this issue?
  2. While moving some sites from one hoster to another I have had some issues over at the new hosting company as the installation stopped at Step 3 with an almost empty page - similar to problem discussed here: I always migrate sites with the Site Profile Exporter (https://modules.processwire.com/modules/process-export-profile/) and never had any issues before but today. Just when I had checked the hosting, php.ini, PHP version, PHP modules and almost everything else I found the option to enable TEST MODE* in install.php which told me: Parse error: syntax error, unexpected end of file in the line 99 I went through the whole config.php just to find this: $config->sessionAllow = function($session) { // if there is a session cookie, chances are user is logged in if($session->hasCookie()) { return true; I knew I put this into place but comparing the new (exported) version with the one on the old system it shows a huge difference. Most of it was missing. $config->sessionAllow = function($session) { // if there is a session cookie, chances are user is logged in if($session->hasCookie()) { return true; } // if requested URL is an admin URL, allow session if(strpos($_SERVER['REQUEST_URI'], $session->config->urls->admin) === 0) { return true; } // otherwise disallow session return false; }; Removing the whole incomplete part did the job and the installation ended as expected. The site is up and running again. So if you plan to migrate or move sites with Site Profile Exporter you might want to take a closer look at the exported config.php. Before you ask: ProcessWire 3.0.104 Site Profile Exporter 3.0.0 5 exports all with incomplete config.php Maybe one of you can confirm this (as some of us implemented that sessionAllow feature in the last days due to GDPR) or finds this helpful. * ProcessWire Installation TEST MODE:
  3. Not a reason but a scenario for this error message. This can also happen when you use Password managers like 1Password/LastPass with Autofill-function. At least it happens to me regularly on different PW sites. Example: You click in 1Password on your "PW Login" entry and say open & auto-fill/login. 1Password will opens your default browser, redirects to your login site, enters your credentials and submits them. I don't know exactly why PW denies access in some cases but maybe it's way too fast for a human/regular login.
  4. Just yesterday I ran into a similar problem. Saving the page didn't work at all. Hat to update some content (15 000+ characters) on a page. All in a regular textarea field without any min/max content settings. The result of saving the page was... 1. console log error Resource interpreted as Document but transferred with MIME type application/x-httpd-php 2. file download of a file named Download with this in it. <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>503 Service Unavailable</title> </head><body> <h1>Service Unavailable</h1> <p>The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.</p> </body></html> Couldn't figure out why this happened and still happens. Tried the exact same on different servers/instances (Dev/Stage/Live) of that site with the result: Dev - a local Laragon instance: works Stage - US Shared Hosting: works Live - DE Shared Hosting: breaks Same ProcessWire and module versions across all instances. Seems to be a server/hosting thing.
  5. Not mine but... .. lots of inspiration here: https://www.lapa.ninja/category/portfolio/ http://www.hixle.co/?s=portfolio .. some free templates here: https://html5up.net/ https://www.styleshout.com/ .. some premium stuff here: https://themeforest.net/category/site-templates
  6. There was a similar thead a few days back but sadly without a solution: I never tried to run a PW instance on an IP address in a subfolder. Maybe there .htaccess issues or something like that.
  7. Extend that solution with a check for facebook.com / twitter.com / whatever.tld and you can apply social icons as well.
  8. Is there anything showing up in the dev console? Any JS or 404 errors? Is this a local (WAMP, XAMP, MAMP, Laragon) or remote/server setup?
  9. Woah! I knew that today will work but... woah! That makes dev-life a lot easier.
  10. Nice addition. I personally would like to see that "not secure" badge all the time. Even way more in your face.
  11. Newsletter-Tools... the reason why I prefer Mailchimp, CampaignMonitor, and similar solutions: I don't have to invest in servers, several IP addresses and maintenance. I don't have to take care of blacklists, spam-prevention-configurations, routings and all that technical stuff. Mailchimp & Co. do this for me. They want my money and they want me to be happy with their service. Self-hosted solutions never worked for me, the companies I worked for, clients and most people I know who do newsletter-marketing. Just my opinion. It may work really well for you.
  12. I miss the ProcessWire-part.
  13. For a long time I used to use the recommended Google way by just placing their snippets. Then some clients wanted to have their sites faster. Less requests. Less files. As fast and as clean as possible. I moved over to hosting fonts on their servers. But... this only works in some cases. Sometimes you can't use this method as you are not allowed to do so or don't get the files you need. If possible I add the fonts to the server. Do I take care of updated or removed versions? Not that much to be honest. Recently I just stopped using webfonts at all for smaller projects (or landing pages, micro sites). If there is absolutely no need for a special font I use system fonts. html { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; } It works pretty well so far. You won't get an FWA award for those sites but who cares.
  14. In Setup / Languages / LANGUAGE you can look for Site Translation Files. You can get a list of all files that can be translated. Once you created the file index, you look for the LoginRegister.module and can start translating it. You get an interface with all things you can translate.
  15. Ok... I don't have the exact same ProcessWire setup like you but sorting and filtering my page field's entries works with the example above. Is there a detail we miss at this point?
  16. Can you please try this: <?php // get all pages in page field $resultsAll = $page->my_page_field; // filter $resultsByCategory = $resultsAll->filter('category=1474'); // sort $resultsSorted = $resultsByCategory->sort('sort'); foreach($resultsSorted as $result) { // whatever };
  17. A nice thread on Twitter about companies that block users from the EU because of GDPR: Source: https://t3n.de/news/dsgvo-erste-us-unternehmen-1078319/
  18. Another day, another level in DSGVO-Madness (in Germany) https://www.golem.de/news/eu-datenschutz-kontrollbehoerden-koennen-dsgvo-kaum-durchsetzen-1805-134304.html (EN Version) https://t3n.de/news/dsgvo-angela-merkel-aenderungen-1078083/ (EN Version)
  19. Ask a lawyer, please. This exact question can be answered in different ways. Even lawyers may answer this totally different.
  20. So not at the same time. The user has to decide/switch to its favourite language. To get this done please read the article I linked above. You may although want to create a new ProcessWire instance with the Multi-Language Profile. In that profile you will find almost everything you want and need. This will help you to understand how ProcessWire handles everything.
  21. So you want the homepage to be displayed in both languages at the same time? Please refer to this article about multi-language fields. There are lot of examples that will guide you through the handling of multi-language fields/sites/setups. https://processwire.com/api/multi-language-support/multi-language-fields/ As far as I understand your goal you want to achieve and the settings I see it looks pretty well so far.
  22. Just played around with one of my fun-sites and saw something that might clear your problem. Unless your homepage (id=1) doesn't have a "country-code url" multilanguage doesn't work properly on other side. Homepage: Other site: Default: http://nerd.to/processwire/snippets/ German: http://nerd.to/de/processwire/snippets/
  23. How do the URLs look? Are there /en/ and /cn/ in them? Is the page available in all languages under settings?
×
×
  • Create New...