Hi,

After installing archive module, archive links shows the following error message:

* warning: archive_page() [function.archive-page]: open_basedir restriction in effect. File(/archive.inc) is not within the allowed path(s): (/var/www/vhosts/feteugtsevilla.org/httpdocs:/tmp) in /var/www/vhosts/feteugtsevilla.org/httpdocs/cms/modules/archive/archive.module on line 47.
* warning: archive_page(archive.inc) [function.archive-page]: failed to open stream: Operation not permitted in /var/www/vhosts/feteugtsevilla.org/httpdocs/cms/modules/archive/archive.module on line 47.
* warning: archive_page() [function.include]: Failed opening 'archive.inc' for inclusion (include_path='.:') in /var/www/vhosts/feteugtsevilla.org/httpdocs/cms/modules/archive/archive.module on line 47.

Thanks in advance.

Comments

Susurrus’s picture

Status: Active » Closed (fixed)

A fix for this would be to change line 47: "include_once 'archive.inc';"

to: "include_once '/var/www/vhosts/feteugtsevilla.org/httpdocs/modules/archive.inc';" or whatever the absolute path to the include file is.

I honestly don't know why PHP can't find that file since the include_path includes the current directly. I'm assuming you do have archive.inc in the same directory as everything else...I'm running this module on GoDaddy which has some of the most restrictive policies (like open_basedir), and I haven't run into this. You should talk to your hosting company.