Support » Plugin: WordPress Gallery Plugin - NextGEN Gallery » NextGEN gallery & is_dir(): open_basedir Restriction

  • Hi,

    I’ve been having some real issues with two of my sites, both of which have been generating massive error log files with messages like this (domain removed):

    mod_fcgid: stderr: PHP Warning: is_dir(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/var/www/vhosts/***********/:/tmp/) in /var/www/vhosts/************/httpdocs/wp-includes/functions.php on line 1512

    It’s taken me days to figure out the cause of it and after re-installing WordPress and by reinstalling, disabling & enabling plugins I finally figured out that it was NextGEN gallery that was causing the issue. It appears to be when a a shortcode has been pasted into a page and one of the galleries it has as an ID is no longer there (i.e. it’s been removed).

    This helped me fix one of the sites which only had a few galleries embedded in it, two of which were asking for images from two galleries, of which one had been removed. However with the other site there are many many galleries and despite trawling through the pages I’m struggling to find the source of the issue.

    Both sites are on the same server, both are fully up to date with WordPress and plugins. Are there any current issues with the plugin that would cause this to happen?

    I’m constantly having to rescue my server from falling over from the size of the error logs so trying to solve this is vital for me.

    Thanks!

    https://wordpress.org/plugins/nextgen-gallery/

Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Contributor photocrati

    (@photocrati)

    @moniodesign – These types of error messages are generally going to fall to the server environment settings, especially ones like this: open_basedir restriction in effect”

    What are you seeing under Gallery > Overview for your server settings?

    Also, have you contacted your web host to see if they can shed any light on these error messages?

    – Cais.

    Thread Starter MonioDesign

    (@moniodesign)

    It’s actually a VPS hosted with Media Temple and I’ve already been onto them regarding the error as it did seem to be server related but they couldn’t shed much light. They were pointing to it being a WordPress/scripting issue but I’ve never had this issue with any site running on my server before.

    I’ve got around 15 WordPress installations on the same server, 10 of them with NextGEN installed but I have only had this issue with 2 of the sites.

    Here’s the server stats from the Overview:

    Operating System : Linux (64 Bit)
    Server : Apache
    Memory usage : 28.92 MByte
    MYSQL Version : 5.5.30
    SQL Mode : Not set
    PHP Version : 5.4.13
    PHP Safe Mode : Off
    PHP Allow URL fopen : On
    PHP Memory Limit : 128
    PHP Max Upload Size : 8M
    PHP Max Post Size : 8M
    PCRE Backtracking Limit : 1000000
    PHP Max Script Execute Time : 60s
    PHP Exif support : Yes ( V1.4 )
    PHP IPTC support : Yes
    PHP XML support : Yes
    Graphic Library

    GD Version : bundled (2.0.34 compatible)
    FreeType Support : Yes
    FreeType Linkage : with freetype
    T1Lib Support : Yes
    GIF Read Support : Yes
    GIF Create Support : Yes
    JPEG Support : Yes
    PNG Support : Yes
    WBMP Support : Yes
    XPM Support : Yes
    XBM Support : Yes
    JIS-mapped Japanese Font Support : No

    Plugin Contributor photocrati

    (@photocrati)

    @moniodesign – What makes these two sites different from the other eight working sites with NextGEN Gallery? Is there some sort of difference in the site configurations or different plugins active?

    – Cais.

    Thread Starter MonioDesign

    (@moniodesign)

    Not that I’m aware of, they’re all on the same server and installed from scratch. The errors go away when I disable Nextgen gallery. All sites I use the same trusted plugins and theme base, all seems to be running smoothly on them.

    As soon as I took away the shortcode that was trying to access gallery IDs that were no longer there the errors went away. However, with the other site because of it’s many many pages tracking down the shortcode is proving very tricky!

    Plugin Contributor photocrati

    (@photocrati)

    @moniodesign – What is the specific shortcode you are referring to?

    – Cais.

    Thread Starter MonioDesign

    (@moniodesign)

    [nggallery id=”4,5″ template=”gallery-slideshow”]

    Plugin Contributor photocrati

    (@photocrati)

    @moniodesign – The template that you are referencing is not a standard NextGEN Legacy template included with NextGEN Gallery … have you tried not including that parameter?

    – Cais.

    Thread Starter MonioDesign

    (@moniodesign)

    Yes, I have tried dropping the template and it performs the same.

    I will try contacting the hosts again, see if there is something server side that needs to be done as even going through the 80 or so pages on the site I have been unable to find the page/gallery causing offence.

    Plugin Contributor photocrati

    (@photocrati)

    @moniodesign – The error message you are receiving generally points to a server configuration issue so it may be best to get your web host’s assistance.

    – Cais.

    Thread Starter MonioDesign

    (@moniodesign)

    I’ve been talking to the hosting company and they can’t give me any support on it as they are pointing to a scripting issue.

    The site has been generating log files of around 7gb per day all with the is_dir(): open_basedir error. As soon as I disabled the nextGEN gallery plugin these disappeared. I’ve left it disabled for the the past 24 hours and I’ve not had a single error message happen since.

    I’ve been through my entire sitemap (generated from Yoast), hitting every page and I can’t seem to generate the error manually however it appears it is getting hit either by a bot or by visitors somehow.

    Any further ideas as to how I could diagnose the plugin?

    Thanks!

    Plugin Contributor photocrati

    (@photocrati)

    @moniodesign – I still suspect something within the server environment on this more than anything else. Please send us a Bug Report (http://nextgen-gallery.com/report-bug/ … please reference this topic) so we can get a better look under the page at your site.

    We may need temporary log in (and FTP) credentials for your WordPress installation, please consider those for your Bug Report, too.

    Thanks!

    – Cais.

    Same here. WP: 4.3.1 and 2.1.15

    Plugin Contributor photocrati

    (@photocrati)

    @ubicual – Please start your own topic so we can try to help you with your specific issue on your specific site.

    See http://codex.wordpress.org/Forum_Welcome#Where_To_Post

    Thanks!

    – Cais.

    @moniodesign. Did you ever resolve your problem. I am having the same issue and think it is a server thing too.

    Plugin Contributor photocrati

    (@photocrati)

    @bobcatou – If this is a real server restriction of the web hosting service we may not be able to provide any assistance with finding/creating a work-around for it.

    – Cais.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘NextGEN gallery & is_dir(): open_basedir Restriction’ is closed to new replies.