Forum Replies Created

Viewing 15 replies - 106 through 120 (of 121 total)
  • Thread Starter JohnP

    (@johnp)

    Correction to my comment above – I do now see the semi-transparent box on each page.

    Cold Cache Hits stays at: 2
    Warm Cache Hits increases by about 4-5 each page load.
    Cache Misses: mostly stays at 15, occasionally drops to 13-14.
    Loaded data: 12 pages (what I would expect).

    However, /wp-content/cache/ remains empty.

    I ran into this problem last week. I think it was caused by the Mysql server crashing before completing an operation, and corrupting a table in the database.

    You can get this error message if WP can not identify a user with admin rights as explained in this thread.

    I used PHP Myadmin to examine the database.

    I noted that the wp_options table was marked: “In Use” on the PHP Myadmin Structure tab, even though the site was inaccessible.

    It was fixed by running the following query:
    mysql> repair table wp_options;

    Warning: I am not an expert on this, so proceed at you own risk!

    Thread Starter JohnP

    (@johnp)

    Ok, I’ve enabled the cache in wp-config.php

    No change – cache directory stays empty.

    I installed your plugin westi, but I don’t see:

    a small semi-transparent box in the top right hand corner of the page

    I do now have a page at Manage > Cache, but the only content is a button to ‘Clear the Cache’.

    I understand about the security issue, but need to troubleshoot first.

    Thread Starter JohnP

    (@johnp)

    My problem has been solved even better!

    I finally installed and activated the Filosofo Home-Page Control pluggin, told it I wanted the “News” page to be the blog index, and Bob’s yer uncle!

    My WP-created Page is now at http://www.example.com/ and the standard blog index is at http://www.example.com/news/, just as I wanted. The more tag is functioning perfectly.

    The pluggin is overriding my news_php template with the mini-loop described above.

    I had tried the plugin previously, but that was before I discovered my server wasn’t writing to .htaccess.

    Thread Starter JohnP

    (@johnp)

    When I try alphaoide’s suggestion I get the full text of each post with no break at <!–more–>.

    That plug-in looks useful for lots of other things Moshu, thanks for the tip!

    samboll, I know how to make the home.php method work, but in this case the client does NOT want the Blog index on the homepage at all – he wants to see it when you click the link “Blog” or “News”. He also wants to to be able to edit the homepage via the normal Page admin interface.

    It still seems to me that it is NOT possible to have a WP-editable static homepage AND and normal Blog index as an internal page correctly using the more tag.

    Thread Starter JohnP

    (@johnp)

    I know how to make a html splash page and use it as a static homepage, but most clients using WordPress as a CMS will want to be able to edit their homepage like any other WP Page.

    My testing shows that the <!more–> tag fails if the blog index is not displayed on the homepage. This happens on clean install of WP with no other modifications or plug-ins.

    Please, can you explain what is: “front _ always home.php”
    I cannot find any information about this by searching.

    Thread Starter JohnP

    (@johnp)

    So is this correct?

    If you use WordPress as a CMS and need to have a WP-editable static homepage, you will never be able to see the normal blog front page, and the <!– more–> tag becomes redundant.

    If nobody contradicts this (and I’m hoping somebody will), I’ll add a warning to the Codex.

    As it happens, I have found a workaround that I think I can live with. This mini-loop outputs an unordered list of a configurable number of posts, with a short excerpt.


    <?php

    $posts = get_posts('numberposts=10');
    foreach ($posts as $post) :
    if ($title_was_printed == false) {$title_was_printed = true; print "<h2>Latest Blog Entries</h2>";}
    ?>
    <ul>
    <li><small><?php the_time('F jS, Y') ?></small><br />
    <a href="<?php the_permalink() ?>" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a><br /><?php the_excerpt(); ?>
    </li></ul>
    <?php
    endforeach;
    if ($title_was_printed == true) {
    ?>
    <?php } ?>

    Thread Starter JohnP

    (@johnp)

    The tag shows up in the code of example.com/blog/ as:

    <p><a id="more-4"></a></p>

    Thread Starter JohnP

    (@johnp)

    Sorry, the second sentence in my question should read:

    But when I load the example.com/blog/ page…

    Thread Starter JohnP

    (@johnp)

    The codex says:

    Next, create a blog template. The easiest way to do this is to create a file named blog.php with the following contents in your theme directory:

    Nohaber’s solution of creating a minimal .php page in the blog sub-directory then using a SSI to display it on the .html page works well for me:
    http://forums.digitalpoint.com/showthread.php?t=35777

    I’m impressed with what you’ve done Breger.

    However I’m curious why you decided to use the “links” list to organise your directory, and not “pages”.

    Also, there seems to be a problem with the search function – no matter which of your business types I search on I end up at the “Oops! Are you lost?” page.

    A Google site search would probably work instead, but I can’t understand why WP isn’t indexing these words – does it only see posts?

    Thread Starter JohnP

    (@johnp)

    Your hack works for me too Kinkistyle, thanks heaps!

    Thread Starter JohnP

    (@johnp)

    OK, I joined wp-testers, downloaded the latest nightly and replaced pluggable-functions.php, and it made no difference.

    I couldn’t possibly do without SK2, so perhaps I just have to accept Exhibit isn’t compatible with the latest WP versions.

    Thread Starter JohnP

    (@johnp)

    I’m using the 1.5.1-Alpha version of WP that Dr Dave packaged for Spam Karma 2.

    No other obvious problems.

    I can see get_currentuserinfo () in pluggable-functions.php, but whether it is faulty or not is beyond my ability to assess.

    Where can I find a newer version?

Viewing 15 replies - 106 through 120 (of 121 total)