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.

Upgrading SilverStripe

Ask questions about upgrading SilverStripe to the latest version.

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

"Server Error" on unpublish and delete since upgrade to 2.3.5


5 Posts   1461 Views


13 February 2010 at 12:12pm Community Member, 22 Posts


I upgraded a site to 2.3.5 a little over a week ago, and since then I cannot delete or unpublish content. When I try, I get the ajax [...] for a few seconds followed by [ (!) Server Error ]. I have no idea how to debug this one. Any suggestions?



13 February 2010 at 12:56pm (Last edited: 13 February 2010 12:57pm), Forum Moderator, 5511 Posts

if you have firebug installed (Firefox plugin) enable it then view the 'Console' tab and scroll down to the failed request. The response of that request should have the actual error message reported by SilverStripe (if you're not in devmode, enable it as well then try again). You could also look up the server logs - which should report the actual error as well.


16 February 2010 at 8:02am Community Member, 22 Posts

Thanks, Willr. I knew there had to be a good way to debug asynchronous requests...

The issue seems to have to do with the removal of the now deprecated HasManyFileManager. Just to document the issue in case someone else has it, I'll post what I learned below. I think the method in question was added as part of the HasManyFileManager documentation and I forgot to remove it when I upgraded and moved to DataObjectManager.

ERROR [User Error]: Uncaught Exception: Object->__call(): the method 'deleteattachedfiles' does not exist on 'Page'
IN POST /admin/EditForm
Line 576 in /path/to/sapphire/core/Object.php

567:             case isset($config['function']) :
568:                return $config['function']($this, $arguments);
570:             default :
571:                throw new Exception (
572:                   "Object->__call(): extra method $method is invalid on $this->class:" . var_export($config,
573:                );
574:          }
575:       } else {
* 576:          throw new Exception("Object->__call(): the method '$method' does not exist on '$this->class'");
577:       }
578:    }
580:    //
582:    /**



16 February 2010 at 8:15am Community Member, 22 Posts

Indeed, removing

public function onBeforeDelete(){

from my Page class did the trick.


21 October 2013 at 7:14pm (Last edited: 21 October 2013 7:15pm), Community Member, 57 Posts

Keep getting "Server Error" while trying to delete an email address entry in Newsletter Mailing List. The record is not deleted.

Any idea why. Started all of a sudden. Running an old version 2.3.3