Jump to:

17452 Posts in 4473 Topics by 1971 members


SilverStripe Forums » Archive » many-to-many problem

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 894 Views
  • nomen
    Community Member
    52 Posts

    many-to-many problem Link to this post

    Hi all:

    I´m having problems with many-to-many relations.
    Initially i was thinking that i was missing something so i decide to use tutorial code directly.
    I downloaded tutorial code, copyed Module.php and Project.php to mysite/code.
    I run db/build/?flush=1
    I go to administration and change the behaviour of a page to Proyect page type.
    When i save i have "there has been an error" form javascript.
    What i´m doing bad?
    I´m using SS 2.2.2

    thank you in advance

  • Willr
    Forum Moderator
    5497 Posts

    Re: many-to-many problem Link to this post

    Couple things you can do to track down the issue:

    * Is the site in dev mode? If not add 'Director::set_environment_type("dev");' to your mysite/_config.php file . This usually outputs a more informative error

    * If you have Firebug installed (which every developer should!) after you get the error view the 'Console' tab in firebug, there should be a red entry which is your failed request. Click the arrow next to the title and this should provide you will a more useful error message if its in dev mode

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.