• Hi there,
    this is a weird problem I have on one server and not others (this plugin runs on dozens of servers). I tested it extensively, it appears that this require
    wp-statistics.php:require_once ‘includes/defines.php’;
    fails silently. No error. I simply get no output from that point on, as if it did require a file that contains a die() or something. I have added “debugging echos” in various places and this conclusion seems inescapable.

    require_once __DIR__ . “/” . ‘includes/defines.php’;
    works just fine. Can you just change this, please?

    I have grepped the plugin, this seems to be the only problematic require.

Viewing 1 replies (of 1 total)
  • Thread Starter patrick1994

    (@patrick1994)

    Update: The parent directory coincidentally also contained a includes/defines.php (a Joomla installation).

    So I can fix it in my case by removing ‘..’ from the include_path. Though, the conclusion remains: Please replace
    require_once ‘includes/defines.php’;
    with
    require_once __DIR__ . “/” . ‘includes/defines.php’;
    in wp-statistics.php

Viewing 1 replies (of 1 total)

The topic ‘require_once includes/defines.php fails’ is closed to new replies.