Login | Forgot password | Register

X

What is OpenID?

OpenID is an Internet-wide identity system that allows you to sign in to many websites with a single account.

With OpenID, your ID becomes a URL (e.g. http://username.myopenid.com/). You can get a free OpenID for example from myopenid.com.

For more information visit the official OpenID site.

Jump to:

1155 Posts in 324 Topics by 274 members

Data Model Questions

SilverStripe Forums » Data Model Questions » extended modeladmin and now the keep getting redirected to admin

Page: 1
Go to End
Author Topic: extended modeladmin and now the keep getting redirected to admin 386 Views
  • mschiefmaker
    avatar
    Community Member
    187 posts

    extended modeladmin and now the keep getting redirected to admin Link to this post

    Hi
    I am new to modeladmin so I used the example in the docu and flushed the database now all that happens is that when I try to login I keep getting redirected back to the admin page with the message "Redirecting to .../Silverstripe/login#memberLoginForm LoginFormTab...(output started on var/www/SilverStripe/html/SilverStripe/mysite/code/MyCatalogAdmin.php, line 11" Line 11 is the ?> line

    If I remove the extension

    <?php

    class MyCatalogAdmin extends ModelAdmin {
    protected static $managed_models = array(
    'Product',
    'Category'
    );
    static $url_segment = 'products'; // will be linked as /admin/products
    static $menu_title = 'My Product Admin';

    ?>

    the problem goes away.

    Any ideas what I am doing wrong?

    Thanks

    MM

  • mschiefmaker
    avatar
    Community Member
    187 posts

    Re: extended modeladmin and now the keep getting redirected to admin Link to this post

    Completely recreating the MyCatalogAdmin.php file got rid of the problem. Can't say I uderstand how but I don't care cause now I finally get to really make something happen

  • Hamish
    avatar
    Community Member
    609 posts

    Re: extended modeladmin and now the keep getting redirected to admin Link to this post

    Sounds like you might have had white-space after the ?> tag.

    386 Views
Page: 1
Go to Top

Currently Online: cardinale, ikhwanb, spierala, RichardWGP

Welcome to our latest member: RichardWGP

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

Comments on this website? Please give feedback.