Jump to:

5450 Posts in 1672 Topics by 1197 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Blank alerts and "Error loading page"

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

Page: 1
Go to End
Author Topic: 1647 Views
  • Tom B.
    Avatar
    Community Member
    5 Posts

    Blank alerts and "Error loading page" Link to this post

    Hi, I recently wrote an additional bit for one of our Silverstripe sites- just a type of Page with a few extra HTML fields. Anyway, I deployed this new version of the site to our staging server, and all was well- I could edit the page fine in the admin panel, and the page displayed fine. However, when I checked out the same code onto our live server, I found that the admin page won't let me edit anything- I get a blank Javascript alert() and a message saying "Error loading page".

    This is really perplexing me. Because it worked fine on the staging site, that would seem to suggest that the code I wrote is OK, and because the previous version works fine on the live site, that would suggest that the server is OK. Does anyone have any experience with this problem?

    I've attached what I got from the Firebug console- some sort of 500 error involving Ajax, I think.
    I'm using Silverstripe 2.3.3.

    Attached Files
  • Tom B.
    Avatar
    Community Member
    5 Posts

    Re: Blank alerts and "Error loading page" Link to this post

    Seems that restarting the web server usually fixes this. Don't know what causes it, though.

  • jenniferaslan
    Avatar
    Community Member
    5 Posts

    Re: Blank alerts and "Error loading page" Link to this post

    We fixed this problem by turning on error reporting in our php.ini file. We then could see the actual error, which was:

    Fatal error: Class 'DOMDocument' not found in ... [filename]

    Some research on the Web revealed that we needed to install the PHP DOM Extension and the way to do that was by using SSH to log into our Linux server and then running:

    yum install php-xml

    Detailed instructions are here: http://smartwebdeveloper.com/centos/install-the-php-dom-extension-on-centos

    1647 Views
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.