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.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Installing SilverStripe /

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

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

Error: Undefined Variable "base"

Go to End

3 Posts   1382 Views


Community Member, 47 Posts

25 November 2009 at 10:55am

I have a SilverStripe 2.3.3 installation on a shared server.
It runs fine with the default "mysite" project and templates.

But with our customized templates (which work fine on a standalone machine) , I get a

"Undefined Variable: base" error

with the last trace messages:

Line 354 of SSViewer.php

# SSViewer->process(Object id #27)
Line 175 of Controller.php

# Controller->handleAction(Object id #10)
Line 129 of RequestHandler.php

Do you know where/how this $base variable is set?

Any help/pointer would be highly appreciated.


Forum Moderator, 5523 Posts

25 November 2009 at 11:52am

Is it complaining about something in your template? Whats in that file?


Community Member, 47 Posts

26 November 2009 at 8:18am

Sorry for the confusion. I thought (wrongly) that the variable was in SSViewer.php . It was a problem in our template. My apologies