Jump to content

Recommended Posts

Posted

I have been able to easily install processwire in the past locally and on servers, but I recently added Vagrant to my development process, and I can't seem to get processwire installed correctly.

Everything is right as far as the required components for the install.  I go through ans rename the site-default to site and htacess.txt to .htaccess.  Then I chmod /site/assets and /site/config.php to 777.  Everything passes the check correctly, and then I enter the database info etc.  There are no errors here.

Everything looks like it gets installed  correctly, but when I log in I get the "This request was aborted because it appears to be forged." error.  I have come across this error before, and know how to fix it normally.  I have confirmed that the sessions, cache, logs, files folders were created.  I have even tried to chmod the whole site to 777, but nothing has worked.  I have set $config->protectCSRF to false, and it gets rid of the error; however, it doesn't actually log me into the site but it redirects me back to the processwire login page with no errors and the form fields cleared.

Any ideas?

  • 2 weeks later...
Posted

Kyle, I'm not familiar with Vagrant but looked it up and it looks interesting. Is it possible that it's interfering with variables $_POST or $_SESSION? Also, when on that login page, does your URL address bar have a trailing slash or not? (it should, but double checking). You might also try disabling session fingerprinting in your /site/config.php file $config->sessionFingerprint=false;  I'd also be interested to see what's in your phpinfo if you want to paste "<?php phpinfo();" into a file and view it in your browser. 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...