Symptoms
Web Presence Builder publishing fails with the error:
Unexpected server behavior while publishing website
After enabling WPB debug according to corresponding KB article, the following detailed error is shown:
PHP Warning : file_put_contents(/f76d42e7a1c36297331f64e7f2a34d1a_publication_list.xml) [<a href='function.file-put-contents'>function.file-put-contents</a>]: failed to open stream: Permission denied
Acompanhamento da pilha:
#0 [internal function]: Base_SyntaxException::handleError(2, 'file_put_conten...', '/usr/local/pem/...', 420, Array)
#1 /usr/local/pem/vhosts/100269/webspace/siteapps/538/htdocs/include/SB/Site/Compiler/Target/FTP.php(420): file_put_contents('/f76d42e7a1c362...', '<?xml version="...')
#2 /usr/local/pem/vhosts/100269/webspace/siteapps/538/htdocs/include/SB/Site/PublicationList.php(246): SB_Site_Compiler_Target_FTP->createFile('f76d42e7a1c3629...', '<?xml version="...')
#3 /usr/local/pem/vhosts/100269/webspace/siteapps/538/htdocs/include/SB/Site.php(450): SB_Site_PublicationList->save(Object(SB_Site_Compiler_Target_FTP))
#4 /usr/local/pem/vhosts/100269/webspace/siteapps/538/htdocs/include/SB/Facade/Service/Site.php(283): SB_Site->publish()
#5 [internal function]: SB_Facade_Service_Site->_publish('f6c608fe-50c2-1...')
#6 /usr/local/pem/vhosts/100269/webspace/siteapps/538/htdocs/include/SB/Facade/Service.php(36): call_user_func_array(Array, Array)
#7 /usr/local/pem/vhosts/100269/webspace/siteapps/538/htdocs/include/SB/Facade/Service/Site.php(278): SB_Facade_Service->_execute('_publish', Array)
#8 [internal function]: SB_Facade_Service_Site->publish('f6c608fe-50c2-1...')
#9 /usr/local/pem/vhosts/100269/webspace/siteapps/538/htdocs/include/SB/Controllers/JsonApi.php(518): call_user_func_array(Array, Array)
#10 /usr/local/pem/vhosts/100269/webspace/siteapps/538/htdocs/include/SB/Controllers/JsonApi.php(443): SB_Controllers_JsonApi->_processRequest(Array)
#11 /usr/local/pem/vhosts/100269/webspace/siteapps/538/htdocs/include/Zend/Controller/Action.php(513): SB_Controllers_JsonApi->defaultAction()
#12 /usr/local/pem/vhosts/100269/webspace/siteapps/538/htdocs/include/Zend/Controller/Dispatcher/Standard.php(295): Zend_Controller_Action->dispatch('defaultAction')
#13 /usr/local/pem/vhosts/100269/webspace/siteapps/538/htdocs/include/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(SB_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#14 /usr/local/pem/vhosts/100269/webspace/siteapps/538/htdocs/include/SB/Application/Web.php(252): Zend_Controller_Front->dispatch()
#15 /usr/local/pem/vhosts/100269/webspace/siteapps/538/htdocs/index.php(3): SB_Application_Web::run()
#16 {main}
Cause
Permissions for some files in the target webspace are incorrect
Resolution
- Find another working instance of WPB
Compare ownership of the files inside the webspace between working and non-working instances.
In case of WPB 11.0.8-6, it should be
username:pemcln
, for most of the files inside webspace except forconnector.php
,include/
,tmp/
and.protect/
, that should be owned by root.