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.

{{*******************
<?php

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
    query_posts($query);

    // Output the information
    if (have_posts()) : while (have_posts()) : the_post(); ?>
        <h2><?php the_title(); ?></h2>
        <div class="entry">
            <?php the_content(); ?>
        </div>
    <?php endwhile; else : ?>
        <h2>Sorry!!!</h2>
        <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.

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:
include(../../../../wp-load.php)

Trying changing it to:
include(../../../../../wp-load.php)

Or hardlinking it to:
include(C:\xampp\webalizer\wordpress\wp-load.php)

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.

--WHHG_InMotion

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.