Hi All,
Sorry for what is normally a simple problem to fix, but...
On transferring my dev site to a PLESK controlled server I am getting a open_basedir error ONLY when I go to the admin section of the site.
The problem with this is it is not actually telling me which file is causing the problem. I have created a silverstripe-cache folder with full write permissions in the webroot but the problem persists and I don't really know where to look to correct given that there doesn't seem to be a file in the File() below.
[Warning] include() [function.include]: open_basedir restriction in effect. File() is not within the allowed path(s): (/var/www/vhosts/domain.com/httpdocs/:/tmp/)
Hopefully this isn't too stupid a question to ask... Here is the Full error output.
[Warning] include() [function.include]: open_basedir restriction in effect. File() is not within the allowed path(s): (/var/www/vhosts/domain.com/httpdocs/:/tmp/)
GET /admin/?flush=all
Line 420 in /var/www/vhosts/domain.com/httpdocs/sapphire/core/SSViewer.php
Source
411 $subtemplate => $subtemplateViewer->process($item, $cache)
412 ));
413 }
414 }
415
416 $itemStack = array();
417 $val = "";
418 $valStack = array();
419
420 include($cacheFile);
421
422 $output = $val;
423 $output = Requirements::includeInHTML($template, $output);
424
425 array_pop(SSViewer::$topLevel);
426
Trace
SSViewer::process
Line 420 of SSViewer.php
SSViewer->process(Form)
Line 342 of ViewableData.php
ViewableData->renderWith(Array)
Line 1108 of Form.php
Form->forTemplate()
Line 447 of ViewableData.php
ViewableData->XML_val(ImageForm,,1)
Line 84 of .cache.cms.templates.LeftAndMain.ss
include(/var/www/vhosts/domain.com/httpdocs/silverstripe-cache/.cache.cms.templates.LeftAndMain.ss)
Line 420 of SSViewer.php
SSViewer->process(CMSMain)
Line 202 of Controller.php
Controller->handleAction(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(/admin/)
Line 127 of main.php