Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.


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

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

many-to-many problem


2 Posts   906 Views


30 September 2008 at 3:55am (Last edited: 30 September 2008 4:14am), Community Member, 52 Posts

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 [url=]tutorial[/url] 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


30 September 2008 at 5:48pm Forum Moderator, 5511 Posts

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