• Vadim

    (@babelmandeb)


    Hello,

    The plug-in page, using version 3.0.1

    Following a security tip, I relocated wp-config.php one level above in dir structure, so I have:

    wordpress\
    wp-config.php

    When I try to search for related items I get an error

    function.require
    Warning: require(../../../wp-config.php) [function.require]: failed to open stream: No such file
    or directory in <local path>\htdocs\wordpress\wp-content\plugins\microkids-related-posts\mrp-search.php on line 8

    I tried to fix it by correcting require(‘../../../../wp-config.php’); in mrp-search.php, but then I get the following one

    Warning: require_once(<local path>\htdocs/wp-settings.php) [function.require-once]:
    failed to open stream: No such file or directory in <local path>\htdocs\wp-config.php on line 90

    The line 90 is require_once(ABSPATH . 'wp-settings.php');

    I see the wrong slash in path, but I’m not sure how to proceed, as I have no knowledge of PHP.
    I’d appreciate any ideas on how to resolve this.

The topic ‘Plugin Microkid's Related Posts won't find posts when wp-config.php relocated’ is closed to new replies.