Jump to content

PHP Issue


clampdown

Recommended Posts

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 denied

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/untrusted_modules_list.xml): Permission denied

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 denied

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/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 by clampdown (see edit history)
Link to comment
Share on other sites

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 by clampdown (see edit history)
Link to comment
Share on other sites

  • 1 year later...

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 denied

Warning 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

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 denied

Warning 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

  • 1 month later...
  • 7 months later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...