Jump to:

4938 Posts in 16827 Topics by 1490 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » Flush Uncaught Exception: & Pagetype Broken Link Icon

Getting SilverStripe up and running on your computer and on your web server.

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

Page: 1
Go to End
Author Topic: 1018 Views
  • rotamota
    Avatar
    Community Member
    4 Posts

    Flush Uncaught Exception: & Pagetype Broken Link Icon Link to this post

    [User Error] Uncaught Exception: Object->__call(): the method 'flush=all' does not exist on 'DevelopmentAdmin'
    GET /dev/flush=all

    Line 724 in /home/gutmedco/public_html/sapphire/core/Object.php
    Source

    715             
    716             default :
    717                throw new Exception (
    718                   "Object->__call(): extra method $method is invalid on $this->class:" . var_export($config, true)
    719                );
    720          }
    721       } else {
    722          // Please do not change the exception code number below.
    723          
    724          throw new Exception("Object->__call(): the method '$method' does not exist on '$this->class'", 2175);
    725       }
    726    }
    727    
    728    // -----------------------------------------------------------------------------------------------------------------
    729    
    730    /**

    Trace

    * Object->__call(flush=all,Array)
    Line 143 of RequestHandler.php
    * DevelopmentAdmin->flush=all(SS_HTTPRequest)
    Line 143 of RequestHandler.php
    * RequestHandler->handleRequest(SS_HTTPRequest)
    Line 147 of Controller.php
    * Controller->handleRequest(SS_HTTPRequest)
    Line 282 of Director.php
    * Director::handleRequest(SS_HTTPRequest,Session)
    Line 125 of Director.php
    * Director::direct(/dev/flush=all)
    Line 127 of main.php

    Also if I try to change a page type in the admin "save" it shows up a red broken link icon.

    Works fine on my localhost and we did upgrade our server so I suspect something is conflicting... or does not have the write permissions. Any ideas?

    Thanks Sefton.

  • simon_w
    Avatar
    Forum Moderator
    473 Posts

    Re: Flush Uncaught Exception: & Pagetype Broken Link Icon Link to this post

    The first problem is because you're visiting dev/flush=all, not dev/build.

    For the second problem, if you are running in dev mode the server will be returning an error message. You can use something like the Web Inspector to see what the result and error message are.

  • rotamota
    Avatar
    Community Member
    4 Posts

    Re: Flush Uncaught Exception: & Pagetype Broken Link Icon Link to this post

    Hi,

    So dev/build will also flush?

    I notice it only records on the server error log not the silverstripe root even when set to Dev

  • simon_w
    Avatar
    Forum Moderator
    473 Posts

    Re: Flush Uncaught Exception: & Pagetype Broken Link Icon Link to this post

    dev/build contains an implicit flush, but it won't flush the template cache. ?flush=all won't do anything when running dev/build, as the template system needs to be instigated for its cache to get flushed.

    If you're not get an error from SilverStripe, it is most likely a PHP error. Maybe something like a missing class. Are you able to access your server's error log?

  • rotamota
    Avatar
    Community Member
    4 Posts

    Re: Flush Uncaught Exception: & Pagetype Broken Link Icon Link to this post

    Hi,

    All fixed - I just reuploaded the site and double checked all the permissions.

    I also had to recreate pages the use the userforms module to get these to load.

    I do have access to the server error log so I will check that to see what the problem was in the first place.

    Thanks

    1018 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.