Jump to content

Recommended Posts

Posted

I got a new mac today and I am trying to get everything up and running.  I have PHP, mySql, and apache installed and running.  But I am having issues getting processwire to work correctly.  Previously I had windows and was running XAMPP and everything was working great.

Right now I am having issues logging in and displaying content using <?=?> syntax.

Loggin In

I am getting the "This request was aborted because it appears to be forged." error.  I have created the cache and sessions folder in assets.  Their permissions are 755 (drwxr-xr-x).  There is a config file with permissions 644 (-rw-r--r--).

Syntax

It wont let me use the <?=?> syntax.  In the code I typed <?=$results->title?> but it was rendered as <!--?=$results--->title?>.  I really have no idea about this one...

I'm assuming the two are related, but I am not really sure... Any insight would be extremely helpful.

Edit: php is version 5.3.15

Posted

Login in: this has come up on numerous occasions. Kongondo was really nice to sum up these posts :)

Syntax: this seems to be a settingissue. Have you enabled short_open_tag? I doubt that they are related since I don't think the /wire/ folder uses shorthand code.

Posted

@arjen

The short tags was in fact the issue!  Thank you very much.

I had previously seen that post and tried the suggestions but I have the cache, logs, and sessions folders created and set to the right permissions.  When I add $config->protectCSRF = false; to the config file the error doesn't display anymore but it doesn't log me in.  Also commenting out Options +FollowSymLinks  and Options +SymLinksifOwnerMatch did not help.

All the files should be the same because I am using git for version control.  I previously had the issue when I pushed the site to my development server on my VPS, but that was due to me not having the sessions and cache folders. 

Posted

The forged request was an issue with the apache config

Apache was running with the user and group _www.  I had to change it to my username and then the group I belong to.

Posted
I got a new mac today and I am trying to get everything up and running.  I have PHP, mySql, and apache installed and running.  But I am having issues getting processwire to work correctly.  Previously I had windows and was running XAMPP and everything was working great.

Install MAMP and you'll be happy. :) I don't even bother experimenting with the AMP stuff that comes bundled with OS X. 

  • Like 1
  • 1 year later...

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...