7911 Posts in 1354 Topics by 930 members
DataObjectManager Module
SilverStripe Forums » DataObjectManager Module » Once dataobjectmanager is installed, cms will not load pages
Discuss the DataObjectManager module, and the related ImageGallery module.
Moderators: martimiz, UncleCheese, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
| Go to End | Next > | |
| Author | Topic: | 1550 Views |
-
Once dataobjectmanager is installed, cms will not load pages

14 January 2010 at 10:18am Last edited: 14 January 2010 10:33am
Hi,
I had a site that was functioning fully but I got into issues with the manifest build where it was trying to create cache files. This failed because the file names were to long so I moved my htdocs folder to my c: root. After this the site loads fine everything. The only thing that doesn't work is the cms admin where I go to /admin on the site. If I try to then load any page that uses the DataObjectManager the site will not pull that page up any more.
Example usage is a manymany relation ship -
$tablefield = new ManyManyDataObjectManager(
$this,
'RelatedArticles',
'ArticlePage',
array(
'Title' => 'Title'
),
'getCMSFields_forPopup'
);
$fields->addFieldToTab('Root.Content.RelatedArticles', $tablefield);If change it to
$tablefield = new ManyManyComplexTableField(
$this,
'RelatedArticles',
'ArticlePage',
array(
'Title' => 'Title'
),
'getCMSFields_forPopup'
);$fields->addFieldToTab('Root.Content.RelatedArticles', $tablefield);
the page loads fine.
Any ideas at all on why this would happen?
Thanks
JoeUpdated - when checking my logs I am getting the following-
[Wed Jan 13 15:30:42 2010] [notice] Parent: Created child process 5076
[Wed Jan 13 15:30:43 2010] [notice] Child 5076: Child process is running
[Wed Jan 13 15:30:43 2010] [notice] Child 5076: Acquired the start mutex.
[Wed Jan 13 15:30:43 2010] [notice] Child 5076: Starting 64 worker threads.
[Wed Jan 13 15:30:43 2010] [notice] Child 5076: Starting thread to listen on port 80.
[Wed Jan 13 15:31:58 2010] [notice] Parent: child process exited with status 3221225477 -- Restarting.
[Wed Jan 13 15:31:58 2010] [notice] Apache/2.2.8 (Win32) PHP/5.2.6 configured -- resuming normal operations
[Wed Jan 13 15:31:58 2010] [notice] Server built: Feb 4 2008 08:23:06
[Wed Jan 13 15:31:58 2010] [notice] Parent: Created child process 1624
[Wed Jan 13 15:31:59 2010] [notice] Child 1624: Child process is running
[Wed Jan 13 15:31:59 2010] [notice] Child 1624: Acquired the start mutex.
[Wed Jan 13 15:31:59 2010] [notice] Child 1624: Starting 64 worker threads.
[Wed Jan 13 15:31:59 2010] [notice] Child 1624: Starting thread to listen on port 80. -
Re: Once dataobjectmanager is installed, cms will not load pages

14 January 2010 at 10:45am
What do you mean the page doesn't load? What happens? Are you getting an error?
-
Re: Once dataobjectmanager is installed, cms will not load pages

14 January 2010 at 10:52am
currently no errors are reporting other than the one in the log I added in. what I mean by page not loading is the cms fields on the right side of the page when in the silverstripe admin section that should show the data object manager or page content wysiwyg, etc will not load. The icon for the page in the sitemap area just spins with the circle rotating gif but the right side never loads.
-
Re: Once dataobjectmanager is installed, cms will not load pages

14 January 2010 at 11:17am
Check the response of the ajax request in Firebug and get the error.
-
Re: Once dataobjectmanager is installed, cms will not load pages

14 January 2010 at 11:34am
Currently I am not able to get the response back in firebug, when I select load response it shows nothing or does nothing
Call is http://localhost/education-center-2/admin/getitem?ID=43&ajax=1
Params are -
ID 43
ajax 1response headers are blank,
request headers are -Host localhost
User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7
Accept text/html,text/html,application/xml;q=0.9,*/*;q=0.8
Accept-Language en-us,en;q=0.5
Accept-Encoding gzip,deflate
Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive 300
Connection keep-alive
X-Requested-With XMLHttpRequest
X-Prototype-Version 1.4.0_rc3
Content-Type application/x-www-form-urlencoded; charset=utf-8
Referer http://localhost/education-center-2/admin?force_ajax=1
Content-Length 0
Cookie PastMember=1; PHPSESSID=a2vitfmpv7oed8to6sr38u76t1; vrsnsf=4c08fe817c41b8ffffffffaf24b74aaa0b540; currency=USD; vertigo=false; huid=EB82BB1783801939EBE939F01008B1F5; webpro=Y; CommunityServer-UserCookie2101=lv=Fri, 01 Jan 1999 00:00:00 GMT&mra=Thu, 17 Dec 2009 14:30:59 GMT; _csuid=X4b44aa88be7696db; cart=|time=Tue Jan 12 13:51:17 CST 2010; s_cc=true; s_sq=%5B%5BB%5D%5DIf I try and run http://localhost/education-center-2/admin/getitem?ID=43&force_ajax=1 or http://localhost/education-center-2/admin/show/43?force_ajax=1 directly I get nothing back at all either.
-
Re: Once dataobjectmanager is installed, cms will not load pages

14 January 2010 at 3:44pm
What status code is it returning? You need to crank up your error reporting to get a readable PHP error.
-
Re: Once dataobjectmanager is installed, cms will not load pages

31 January 2010 at 7:23am
I'm getting the same error. No error code returning itself but the DOM doesnt display, and I can't get onto any other tabs i.e. Behaviour. I've looked in FireBug and there's no errors showing there either.
Running v2.3.4
-
Re: Once dataobjectmanager is installed, cms will not load pages

3 February 2010 at 10:08pm Last edited: 3 February 2010 10:09pm
I experienced the same error. Checked the source in Firebug and all code was returned. HTML tidy however showed missing div. Some further investigation showed a missing div in templates/RelationDataObjectManager.ss. The entry <div class="checkboxes"> wasn't closed.
Replacing the last lines of templates/RelationDataObjectManager.ss with the following resolves the issue.
<div class="bottom-controls">
<div class="rounded_table_bottom_right">
<div class="rounded_table_bottom_left">
<div class="checkboxes">
<% if Sortable %>
<div class="sort-control">
<input id="showall-{$id}" type="checkbox" <% if ShowAll %>checked="checked"<% end_if %> value="<% if Paginated %>$ShowAllLink<% else %>$PaginatedLink<% end_if %>" /><label for="showall-{$id}"><% _t('DataObjectManager.DRAGDROP','Allow drag & drop reordering') %></label>
</div>
<% end_if %>
<% if RelationType = ManyMany %>
<% if Can(only_related) %>
<div class="only-related-control">
<input id="only-related-{$id}" type="checkbox" <% if OnlyRelated %>checked="checked"<% end_if %> value="<% if OnlyRelated %>$AllRecordsLink<% else %>$OnlyRelatedLink<% end_if %>" /><label for="only-related-{$id}"><% _t('DataObjectManager.ONLYRELATED','Show only related records') %></label>
</div>
<% end_if %>
<% end_if %>
<div class="per-page-control">
<% if ShowAll %><% else %>$PerPageDropdown<% end_if %>
</div>
</div>
</div>
</div>
</div>
$ExtraData
</div>This error seems to already have been resolved in the latest SVN release. Just posting here in case other people experience this issue.
| 1550 Views | ||
| Go to Top | Next > |


