Jump to:

22977 Posts in 11742 Topics by 2826 members

General Questions

SilverStripe Forums » General Questions » Can't Open/Edit pages in the Admin & Other Issues

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 437 Views
  • juneallison
    Avatar
    Community Member
    108 Posts

    Can't Open/Edit pages in the Admin & Other Issues Link to this post

    Hi,

    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:

    <IfModule mod_rewrite.c>
       SetEnv HTTP_MOD_REWRITE On
       RewriteEngine On
       RewriteBase '/'
       RewriteCond %{REQUEST_URI} ^(.*)$
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_URI} !\.php$
    #   RewriteRule .* framework/main.php?url=%1&%{QUERY_STRING} [L]
    </IfModule>


    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.

    Any help would be great.

    Thank you!

    June

  • Bereusei
    Avatar
    Community Member
    94 Posts

    Re: Can't Open/Edit pages in the Admin & Other Issues Link to this post

    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:

    RewriteBase 'http://localhost/mysite/articles/'

  • juneallison
    Avatar
    Community Member
    108 Posts

    Re: Can't Open/Edit pages in the Admin & Other Issues Link to this post

    Bereusei - Thank you! That solved the index.php issue. I can now use the regular admin url.

    I'm still getting the "Notice at line 173 of ....framework/dev/Deprecation.php" error for many pages in the admin, but maybe I'm a step closer to getting the issue resolved.

    Thanks!

  • juneallison
    Avatar
    Community Member
    108 Posts

    Re: Can't Open/Edit pages in the Admin & Other Issues Link to this post

    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.

    Thank you!

  • juneallison
    Avatar
    Community Member
    108 Posts

    Re: Can't Open/Edit pages in the Admin & Other Issues Link to this post

    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.

    Thanks!

    June

    437 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.