Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End [Solved] WordPress – Single.php Broken?

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #25992
    brianfeister
    Member

    So I’ve copied a previously designed custom theme and am skinning it for a new project. When I click a post permalink, I get "Sorry, no posts matched your criteria".

    I thought that possibly this was because permalinks were bad so I updated them just to be sure.

    I’ve also updated my .htaccess file just to be sure the correct WordPress mods were in there.

    So what it seems is that somewhere in my code, there is a broken element, because when I switch to the default theme everything is fine. The strange thing is that when I copy and paste the contents of the default "single.php" I still have the same error (and layout bugs show that I’m looking at a the fresh non-cached single.php)… Not sure why it still won’t display the loop when I copy the default single.php, that’s baffling.

    My code is below… any help?

    Code:

    ID, ‘thumbnail’, $single = true);
    // check for thumbnail class
    $thumb_class = get_post_meta($post->ID, ‘thumbnail class’, $single = true);
    // check for thumbnail alt text
    $thumb_alt = get_post_meta($post->ID, ‘thumbnail alt’, $single = true);

    ?>

    “>









    ‘, ‘, ‘, ‘‘); ?>



    alt=”
    />

    Pages: ‘, ‘after’ => ‘

    ‘, ‘next_or_number’ => ‘number’)); ?>

    ‘) ?>


    Sorry, no posts matched your criteria.

#63266
brianfeister
Member

Resolved. Was calling the_loop multiple times, which caused the second call to fail :(

#63268
AshtonSanders
Participant

That’s what I get for forgetting to hit submit… Glad you figured it out.

#72500
Anonymous
Inactive

Here’s the entry relating to wpg2…

Array
(
[type] => DEBUG
[date] => 2008-05-20 15:29:46
[source] => /home/davidedw/public_html/blog/wp-content/plugins/wpg2/wpg2.php
[file_line] => 114
[user_id] => 0
[ip_address] => 122.107.253.249
[event_id] => 9741
[event_no] => 8
[description] => Undefined index: wpg2_enablelightbox
[trace] => Backtrace is not supported in PHP4, please upgrade to PHP5.
)

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Back End’ is closed to new topics and replies.