hello...i m new to the web designing field, currently i m working on wordpress themes for my website, the exact link of the theme for which i m working is{"http://www.press75.com/the-folio-elements-wordpress-theme/"},the theme
"folio elements" has a image slider and when we click on a particular image it gives us the details of the image...
now the problem that i'm getting is- i have uploaded the images but when i click on the images it gives me the error as-

Warning: include(../../../../wp-load.php) [function.include]: failed to open stream: No such file or directory in C:\xampp\webalizer\wordpress\wp-content\themes\FolioElements-v1.2\folioelements\ajax\pageloader.php on line 3

Warning: include() [function.include]: Failed opening '../../../../wp-load.php' for inclusion (include_path='.;C:\xampp\php\pear\') in C:\xampp\webalizer\wordpress\wp-content\themes\FolioElements-v1.2\folioelements\ajax\pageloader.php on line 3

Fatal error: Call to undefined function query_posts() in C:\xampp\webalizer\wordpress\wp-content\themes\FolioElements-v1.2\folioelements\ajax\pageloader.php on line 18


and the script given below is of the "pageloader.php", which has been discussed in the above lines.


include ('../../../../wp-load.php');
global $wpdb;

if (isset($_GET['pagename']) || isset($_GET['postnum'])) {
    // INIT
    $query = '';

    // Create the query based on what was passed
    if (isset($_GET['pagename'])) {
        $query = 'pagename=' . $_GET['pagename'];
    } elseif (isset($_GET['postnum'])) {
        $query = 'p=' . $_GET['postnum'];

    // Execute Query

    // Output the information
    if (have_posts()) : while (have_posts()) : the_post(); ?>
        <h2><?php the_title(); ?></h2>
        <div class="entry">
            <?php the_content(); ?>
    <?php endwhile; else : ?>
        <div class="entry">What you are looking for isn't here.</div>
    <?php endif;
} else { ?>
    <h2>Please do not try and load this page directly</h2>
<?php } ?>

so, could you please help me in loading the images with details...
thanks for your time!!!!
i'll really appreciate your help.

Edited by Nick Evan: Fixed formatting

8 Years
Discussion Span
Last Post by WHHG_InMotion

See if this helps...

It looks likes this include of the file wp-load.php in pageloader.php is failing and causing the susequent errors:

Trying changing it to:

Or hardlinking it to:

The theme is intended to be installed in the folder "folioelements" only. You have the extra directory above it "FolioElements-v1.2" which causes wp-load.php to be an extra step up than the relative include is expecting.


This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.