Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Omnia

    (@immort4l)

    I’ve tried to split the xml file into multiple smaller files with WXR split but the result is identical to what was said in the previous message. Thank you!

    Thread Starter Omnia

    (@immort4l)

    Thanks chaoskaizer! I replace

    require_once ‘../../../wp-config.php’;

    with

    $wp_root = dirname(dirname(dirname(dirname(__FILE__))));
    $config_file = ( file_exists($wp_root.DIRECTORY_SEPARATOR.’wp-load.php’) ? ‘wp-load.php’ : ‘wp-config.php’ );
    if ($config_file) require_once($wp_root.DIRECTORY_SEPARATOR.$config_file);

    But now when I send a comment appear this mex:

    Warning: require_once(/web/htdocs/www.omniablog.net/home/wp-content/wp-config.php) [function.require-once]: failed to open stream: No such file or directory in /web/htdocs/www.omniablog.net/home/wp-content/themes/super-adsense-music/super-adsense-music/comments-ajax.php on line 4

    Fatal error: require_once() [function.require]: Failed opening required ‘/web/htdocs/www.omniablog.net/home/wp-content/wp-config.php’ (include_path=’.:/php/lib/php/’) in /web/htdocs/www.omniablog.net/home/wp-content/themes/super-adsense-music/super-adsense-music/comments-ajax.php on line 4

    What do I do?

Viewing 2 replies - 1 through 2 (of 2 total)