clampdown Posted April 6, 2016 Share Posted April 6, 2016 (edited) Hello, I tried searching the forums but can't find an answer to my question.When clicking on the modules tab i'm getting the following PHP warning...Warning on line 783 in file /var/www/vhosts/domain.co.uk/httpdocs/classes/Tools.php[2] unlink(/var/www/vhosts/domain.co.uk/httpdocs/config/xml/trusted_modules_list.xml): Permission deniedWarning on line 783 in file /var/www/vhosts/domain.co.uk/httpdocs/classes/Tools.php[2] unlink(/var/www/vhosts/domain.co.uk/httpdocs/config/xml/untrusted_modules_list.xml): Permission deniedWarning on line 783 in file /var/www/vhosts/domain.co.uk/httpdocs/classes/Tools.php[2] unlink(/var/www/vhosts/domain.co.uk/httpdocs/config/xml/trusted_modules_list.xml): Permission deniedWarning on line 783 in file /var/www/vhosts/domain.co.uk/httpdocs/classes/Tools.php[2] unlink(/var/www/vhosts/domain.co.uk/httpdocs/config/xml/untrusted_modules_list.xml): Permission denied I have tried to change the permissions on both the tools.php file and untrusted_modules_list.xml to 777 but i'm receiving the message.On tools.php line 783 is as follows: { @chmod($dirname.$file, 0777); // NT ? unlink($file); } }Any help would be great - currently using prestashop 1.6.0.14 Thank you Edited April 6, 2016 by clampdown (see edit history) Link to comment Share on other sites More sharing options...
tuk66 Posted April 6, 2016 Share Posted April 6, 2016 Try to remove both untrusted_modules_list.xml and trusted_modules_list.xml files. They are automatically created. Link to comment Share on other sites More sharing options...
clampdown Posted April 6, 2016 Author Share Posted April 6, 2016 (edited) Hello tuk66,I have deleted both untrusted_modules_list and trusted_modules_list....I'm getting the following message now:file_put_contents(/var/www/vhosts/domain.co.uk/httpdocs/config/xml/untrusted_modules_list.xml): failed to open stream: Permission denied in /var/www/vhosts/domain.co.uk/httpdocs/classes/module/Module.php on line 1685 Warning: file_put_contents(/var/www/vhosts/domain.co.uk/httpdocs/config/xml/trusted_modules_list.xml): failed to open stream: Permission denied in /var/www/vhosts/domain.co.uk/httpdocs/classes/module/Module.php on line 1675 Warning: file_put_contents(/var/www/vhosts/domain.co.uk/httpdocs/config/xml/untrusted_modules_list.xml): failed to open stream: Permission denied in /var/www/vhosts/domain.co.uk/httpdocs/classes/module/Module.php on line 1685 Warning: Edited April 6, 2016 by clampdown (see edit history) Link to comment Share on other sites More sharing options...
clampdown Posted April 6, 2016 Author Share Posted April 6, 2016 (edited) It seems to be working fine after changing the permissions on config/xml - it was already on 755 however i upped it 777 and seems to be OK Thank you tuk66 Edited April 6, 2016 by clampdown (see edit history) Link to comment Share on other sites More sharing options...
tuk66 Posted April 6, 2016 Share Posted April 6, 2016 So it is about the /config/xml directory. Set at least 755 permissions on it. Link to comment Share on other sites More sharing options...
Alberto Navarro Posted January 20, 2018 Share Posted January 20, 2018 Warning en línea 1815 en archivo /home/comohacer/domains/tienda.comohacer.eu/public_html/classes/module/Module.php[2] file_put_contents(/home/comohacer/domains/tienda.comohacer.eu/public_html/config/xml/trusted_modules_list.xml): failed to open stream: Permission deniedWarning en línea 1824 en archivo /home/comohacer/domains/tienda.comohacer.eu/public_html/classes/module/Module.php[2] file_put_contents(/home/comohacer/domains/tienda.comohacer.eu/public_html/config/xml/untrusted_modules_list.xml): failed to open stream: Permission deniedWarning en línea 1815 en archivo /home/comohacer/domains/tienda.comohacer.eu/public_html/classes/module/Module.php[2] file_put_contents(/home/comohacer/domains/tienda.comohacer.eu/public_html/config/xml/trusted_modules_list.xml): failed to open stream: Permission deniedWarning en línea 1824 en archivo /home/comohacer/domains/tienda.comohacer.eu/public_html/classes/module/Module.php[2] file_put_contents(/home/comohacer/domains/tienda.comohacer.eu/public_html/config/xml/untrusted_modules_list.xml): failed to open stream: Permission denied I have this error but changing permissions doesn't do nothing for me. I saw that those files doesn't exists, so I assume that the problem is in the creation of them. I'll appreciate any help. Link to comment Share on other sites More sharing options...
Alberto Navarro Posted March 13, 2018 Share Posted March 13, 2018 I just resolve it reactivating all caché. Incredible... Link to comment Share on other sites More sharing options...
RocketWebAr Posted October 27, 2018 Share Posted October 27, 2018 I fixed it creating the folder /img/tmp/ I had cloned the repository from git and the folder was ignored. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now