I recently moved a site from a demo server onto my own computer for continued local development. My local copy appears to operate correctly for the most part but I've run into a few problems. Any suggestions would be appreciated!
1. My biggest issue at the moment is that I can't edit most pages via the admin interface. I have one page that will open for editing but I can't see how that page is different from any of the others. When I try to click a page in the site tree I get an error message like this: Notice at line 173 of ....framework/dev/Deprecation.php ...and the page does not open for editing.
2. Backing up a step the regular admin url doesn't work. I should be able to type in mysite.com/admin ... instead I have to type in mysite.com/index.php/admin ... to get the admin login screen. I think I've previously read that this has to do with the mod rewrite rules. Looking at my rewrite rules they look like this:
I commented out the last one because that was causing errors. So may its a matter of troubleshooting that rewrite error first. If I leave that line in I get the following error: The requested URL /framework/main.php was not found on this server. ..even thought that file is in the framework directory.
I think the system can´t interpret the RewriteBase '/' on line 4 which says the "website" sit on the root.
I don´t know how it should look, if your website sit on your own computer.
Maybe it is something like this:
To give more information on not being able to edit pages in the admin. Pages that don't have any module associated with them seem to open fine. Pages that do use a module or custom field of some sort will not open and present an error message. I do have one page that uses the userforms module and that page seems to open ok.
I might also note that I'm able to access all of the pages without a problem on the demo server. So maybe there is a difference in server configuration that is causing the issue?
Any suggestions for troubleshooting this issue would be great.
I'm not sure this gets to the root issue, but to give an update, if I remove Director::set_environment_type("dev"); from my config file I can open and edit the pages I was previously having trouble with.