WordPress : can't find wp-load.php file

admin

Administrator
Staff member
This is probably a simple problem, but can't figure it out...

1) I installed the wordpress file directly under the xxxx directory; wp-admin, wp-content, wp-includes are all within wordpress file.

2) wp-load.php exists wordpress folder, I copied it into the wp-admin folder as well.

3) wp-config.php exists in wordpress folder.

the errors are as follows:

Code:
<br />
<b>Warning</b>:  require_once(../wp-load.php): failed to open stream: No such file or directory in <b>D:\xampp\htdocs\dev\wp-content\plugins\workflow\ajax.php</b> on line <b>6</b><br />
<br />
<b>Fatal error</b>:  require_once(): Failed opening required '../wp-load.php' (include_path='D:\xampp\php\PEAR') in <b>D:\xampp\htdocs\dev\wp-content\plugins\workflow\ajax.php</b> on line <b>6</b><br />

This problem is in plugin folder.

and i add this code in php file :-

Code:
include("../../../wp-load.php");
if($_POST["do"] == "add_edda_form")
{
global $wpdb;
$wpdb->workflow_content = $wpdb->prefix.'workflow_content';
session_start();
if(isset($_POST["captcha"]) && $_POST["captcha"] != "" && $_SESSION["code"] == $_POST["captcha"] && $_POST["stutjawgmodano"] )
{
$ebdaa_insert = mysql_query("INSERT INTO $wpdb->workflow_content SET
stutjawgmodano = '".$_POST["stutjawgmodano"]."',
stutjawgmodaprice = '".$_POST["stutjawgmodaprice"]."',
stumotazerno = '".$_POST["stumotazerno"]."',
stumotazerprice = '".$_POST["stumotazerprice"]."',
stuenzarno = '".$_POST["stuenzarno"]."',
stuenzarprice = '".$_POST["stuenzarprice"]."',
stuotherno = '".$_POST["stuotherno"]."',
stuotherprice = '".$_POST["stuotherprice"]."',
stutotalno = '".$_POST["stutotalno"]."',
stutotalprice = '".$_POST["stutotalprice"]."',
buldrentno = '".$_POST["buldrentno"]."',
buldrentprice = '".$_POST["buldrentprice"]."',
earthrentno = '".$_POST["earthrentno"]."',
earthrentprice = '".$_POST["earthrentprice"]."',
unrentno = '".$_POST["unrentno"]."',
unrentprice = '".$_POST["unrentprice"]."',
unotherno = '".$_POST["unotherno"]."',
unotherprice = '".$_POST["unotherprice"]."',
untotalno = '".$_POST["untotalno"]."',
untotalprice = '".$_POST["untotalprice"]."',
totalallprice = '".$_POST["totalallprice"]."',
masoolname = '".$_POST["masoolname"]."',
masoolemail = '".$_POST["masoolemail"]."',
masoolid = '".$_POST["masoolid"]."',
unverstyname = '".$_POST["unverstyname"]."',
date = '".time()."'") or die(mysql_error());
}