Jump to content

rastographics

Members
  • Posts

    76
  • Joined

  • Last visited

Everything posted by rastographics

  1. @teppo AAH! I can't believe I wasted so much time looking into namespaces and scope context yesterday!!! How embarrassing. Thank you.
  2. @LostKobrakai Sorry for noob question, but after installing Migrations module and creating my first migration, my IDE gives an error because the variable $this is unexpected... It seems like no one else has encounter this...is something wrong with my pw setup? Any hints on where I can look for answers?
  3. Installed fresh processwire from scratch on identical hosting setup. When going through installer, everything checks out as normal, except on the final review page after install, these errors appear: I can still continue on to login page, but original error is still present and prevents login.
  4. In site/config.php if I set: $config->protectCSRF = false; Then 3 different things happen: A wires_challenge cookie is now showing up in my browser (wasn't there before.) The error "appears to be forged" no longer shows up. ?login=1 is added to the url string Still does not login ?
  5. I also changed the permissions of the /tmp folder to 777 just to see if that would fix it. Still not working.
  6. I tried the methods in that stackoverflow question and they did not work. As you can see in my posted screenshot, I was able to get phpinfo() to recognize a different save_path by using .htaccess. However that did not keep the "appears to be forged" error from showing up when logging in. The app is using the docker configuration based on standard php apache image as seen in this repo: https://github.com/Azure-App-Service/php/tree/master/7.2.5-apache Please if anyone has any other ideas of what can be keeping me from logging in, this is preventing us from bringing our ready website to production. Thanks!
  7. I changed my .htaccess file to successfully get the session.save_path to change to a local directory that I am sure I have full ownership permissions on: I restarted the site, cleared all cookies, and still get the error. Any ideas?
  8. The following is my session.save_path from phpinfo(). I found someone who showed how to change the session.save_path with this code: session_save_path(realpath(dirname($_SERVER['DOCUMENT_ROOT']) . '/../session')); But that didn't seem to make any difference.
  9. @Pixrael I'm not very experienced with linux but I thought that if PW is creating new files in site/assets/sessions directory, it has permissions to write there? Or is the php session path a different thing than the PW session path?
  10. I'm having this issue after moving to production. I'm hosting on a Linux web app on Azure. All permissions are set as rwxrwxrwx for all folder and files in the webroot. I have plenty of free space. I tried deleting the site/assets/sessions directory...a new one gets created properly automatically upon next sign in attempt. Session files are being created in the site/assets/sessions directory, so I know that processwire is able to access that. What else could be the issue if it's not permissions or storage space?
  11. With Microsoft Azure recently releasing proper Linux and native Mysql hosting, it is becoming very easy to get processwire hosted on that platform. By default, they force SSL connection to the managed Mysql server. This causes processwire to fail when trying to connect. I can turn off SSL for my MySql server, but I wish there was a $config setting like $config->useSSL = true that would allow processwire to include the appropriate property in the connection string (like ssl=true or whatever). Here is the Azure link that explains what I would like to do: https://docs.microsoft.com/en-us/azure/mysql/concepts-ssl-connection-security Am I missing this config setting somewhere? Or would it be easy to add? Thanks.
  12. Good idea, but unfortunately I just tried incognito mode with all extensions off and still not working. No JS errors in console. Is there some other thing I can do to trace this down?
  13. I've been using Map Marker field with great success. I may have come across a strange bug, I'm not sure how to debug it... When using the value Elgin, IL in the Address field, the geocode fetches correctly, BUT after saving the page, the Address field is BLANK. I can do Elgin, Il (lowercase "L"), or Elgin, Illinois or South Elgin, IL or pretty much anything else I can think of, and everything WORKS. WHY is the Address field not getting saved with just Elgin, IL? Or how can I debug this (where to look?) Thanks
  14. I found a way to do it: <head pw-id="head" class="pw-append"> <link rel="stylesheet" href="https://unpkg.com/leaflet@1.0.1/dist/leaflet.css" /> <link rel="stylesheet" href="https://unpkg.com/leaflet.markercluster@1.0.0/dist/MarkerCluster.css" /> <link rel="stylesheet" href="https://unpkg.com/leaflet.markercluster@1.0.0/dist/MarkerCluster.Default.css" /> <script src="https://unpkg.com/leaflet@1.0.3/dist/leaflet.js"></script> <script src="https://unpkg.com/leaflet.markercluster@1.0.0/dist/leaflet.markercluster.js"></script> <script src="https://unpkg.com/esri-leaflet@2.0.7"></script> </head> However, it would be nice for uniformity of style for those of us using the pw-* attributes to also allow the pw-append-contents attribute.
  15. I've been switching a site from using the Twig Template module to using the new Markup Regions and it's been fantastic! @ryan have you considered a placement attribute that will append/prepend/replace just the content of the attributed element, rather then the element itself? For example, my head tag is <head pw-id="head"> On one of my templates, I have some scripts and styles I need to append to the <head> <link rel="stylesheet" href="https://unpkg.com/leaflet@1.0.1/dist/leaflet.css" /> <link rel="stylesheet" href="https://unpkg.com/leaflet.markercluster@1.0.0/dist/MarkerCluster.css" /> <link rel="stylesheet" href="https://unpkg.com/leaflet.markercluster@1.0.0/dist/MarkerCluster.Default.css" /> <script src="https://unpkg.com/leaflet@1.0.3/dist/leaflet.js"></script> <script src="https://unpkg.com/leaflet.markercluster@1.0.0/dist/leaflet.markercluster.js"></script> <script src="https://unpkg.com/esri-leaflet@2.0.7"></script> As it stands I need to add pw-append="head" to every element: <link pw-append="head" rel="stylesheet" href="https://unpkg.com/leaflet@1.0.1/dist/leaflet.css" /> <link pw-append="head" rel="stylesheet" href="https://unpkg.com/leaflet.markercluster@1.0.0/dist/MarkerCluster.css" /> <link pw-append="head" rel="stylesheet" href="https://unpkg.com/leaflet.markercluster@1.0.0/dist/MarkerCluster.Default.css" /> <script pw-append="head" src="https://unpkg.com/leaflet@1.0.3/dist/leaflet.js"></script> <script pw-append="head" src="https://unpkg.com/leaflet.markercluster@1.0.0/dist/leaflet.markercluster.js"></script> <script pw-append="head" src="https://unpkg.com/esri-leaflet@2.0.7"></script> It would be great if I could wrap these with a <div> or similar, and use a placement attribute that would add all the children of the div, without adding the div itself. <div pw-append-contents="head"> <link rel="stylesheet" href="https://unpkg.com/leaflet@1.0.1/dist/leaflet.css" /> <link rel="stylesheet" href="https://unpkg.com/leaflet.markercluster@1.0.0/dist/MarkerCluster.css" /> <link rel="stylesheet" href="https://unpkg.com/leaflet.markercluster@1.0.0/dist/MarkerCluster.Default.css" /> <script src="https://unpkg.com/leaflet@1.0.3/dist/leaflet.js"></script> <script src="https://unpkg.com/leaflet.markercluster@1.0.0/dist/leaflet.markercluster.js"></script> <script src="https://unpkg.com/esri-leaflet@2.0.7"></script> </div> Or maybe this is already possible with some other technique I'm not aware of?
  16. For any Windows developers interested in an easy way to get going with Docker and Processwire that includes local debugging... https://github.com/rastographics/pwocker Local debugging in your IDE with Xdebug pre-configured. (Also includes working launch.json for you VS Code users ) Use *.localtest.me hostnames for each site you are developing (no editing of hosts file) Simple configuration...copy 2 files into your project, edit a couple variables in those files, and run 1 command per project. Tested with Docker 1.13.1-beta42 on Windows 10 Pro 64-bit. I didn't know much at all about Docker, nginx, or xdebug before doing this, so I pulled much info from gebeer's work and many others who have put Docker/PHP/xdebug stuff out in the community. And it may not be the best setup ever, but it finally gives me what I needed for doing PW work on Windows in a true Linux stack with IDE debugging.
  17. OK after 2 days I got the basic stack functional...havent attempted loading of processwire yet. The key for me was I had to look at the readme of https://hub.docker.com/r/etopian/nginx-proxy/ to see what was going on and how the reverse proxy feature works with that image. I hope to post my final configuration for this when I'm done, for any other Windows devs who want to be able to develop multiple PW sites simultaneously on their PC. (No need to take turns starting and stopping containers). Thanks for your work gebeer.
  18. Running Docker 1.13.1-beta42 on Windows 10 Pro 64-bit, using the native Hyper-V based Linux containers. (not virtualbox). I've gotten other processwire images (specifically https://github.com/antonioandrade/docker-processwire-nginx) to run successfully on my setup. I would rather use your image than the one above because that one is on php 5 and also it installs old version of pw automatically (I just want to copy in my existing site instead).
  19. @gebeer I'm having some problems getting this to work as per the instructions in the README... 1. Is there a reason that there is a static IP addressed used with the mariadb container? The example has 172.17.0.1:3306:3306 for the port mapping on that container, but I `cannot assign requested address` when trying to run the command as written... 2. I get an error because the nginx and processwire containers BOTH are mapped to host port 80...wouldn't I just map the nginx container to host port 80? And where is nginx setup to point to the processwire container? Thanks
  20. THis is awesome, thanks so much for sharing. I'm just getting into docker for my local pw development (on windows) and this will be fantastic. Not knowing too much about docker, is there a way to use docker compose to simplify the commands that are needed to get this running? From what I understand, compose allows you to put all those setup commands for all 3 containers into a config file that can be run with one simple command. Could this be used as a launching board to make something like wocker but for processwire?
  21. I would really appreciate that if you do. Thanks
  22. Hi I just installed your module on pw version 3.0.36. Immediately after installation, on the Admin > Remote Backup page, I get this error: Notice: Undefined variable: out in /srv/users/serverpilot/apps/missions-pw/public/site/assets/cache/FileCompiler/site/modules/ProcessRemoteBackup/ProcessRemoteBackup.module on line 158 any ideas what may be happening?
  23. wire()->addHook("TemplateEngineTwig::initTwig", function($event) { $twig = $event->arguments('twig'); $filter = new \Twig_SimpleFilter('age', function ($date) { return "50"; }); $twig->addFilter($filter); }); I cannot figure out why my filter "age" is not recognized in my templates? This code is at the top of my template's .php file. I've also tried putting it in my ready.php file. Neither one adds the "age" filter to twig...
×
×
  • Create New...