WordPress.org

Support

Support » Plugins and Hacks » Polylang » posts only display titles, no content

posts only display titles, no content

Viewing 15 replies - 1 through 15 (of 30 total)
  • Plugin Author Chouby

    @chouby

    How did you setup your blog page? you choose the blog template?

    I used the blog template.

    Also tried the blog(excepts) one but same result.

    Plugin Author Chouby

    @chouby

    I tried several combinations of settings and did not reproduce same thing. Could you describe What your settings are (polylang + ‘front page displays’ in reading settings)?

    Are you sure there is not a conflict with another plugin?

    The only other active plugin is Sidebar Login.

    Disabling it doesn’t change the behaviour of the posts page.

    I do have some other plugins that are installed but disabled. Membership, and s2member@Framework are the only ones I’ve added. Others were part of WordPress install on my host’s site.

    Akismet, Hello Dolly, Jetpack, SiteWit, UppSite-GoMobile.

    Reading Settings are:

    Front page displays Static page (check box)-set to “Welcome to the home page…”
    Posts page -set to “Select”, choosing the assigned blog page throws a 404 error.

    I’m not sure which Polylang settings you are asking about. There is only English & French on the site.

    On the setting tab Plugins/Polylang/Settings:

    Detect Browser language: yes
    URL Modifications: set from content
    Static front page redirect language page: yes
    Media activate languages: yes
    Synchronization: all checked

    I can try actually deleting the disabled plugins, if that might help.

    thanks,

    rob

    Plugin Author Chouby

    @chouby

    I don’t understand… I chose exactly the same settings as you, used the same versions of WP, Polylang and Responsive, even downloaded Sidebar login and I do not succeed to reproduce the same issue as on your site 🙁

    It seems that the execution is brutally stopped as the page is not displayed correctly (html tags are not closed).

    Maybe you should try to set WP_DEBUG to true in your wp-config.php and look if errors are outputed.

    Hi,

    I finally had time try the debug setting.

    This error shows repeatedly in the debug.log file:

    [07-Mar-2013 19:53:13] PHP Notice: Undefined index: QUERY_STRING in /hermes/bosoraweb052/b2875/dot.robcarroll/testCAF/wp-content/plugins/polylang/include/core.php on line 419

    What should I do to fix it?

    thanks,

    rob

    Plugin Author Chouby

    @chouby

    To remove the notice, try replacing the line 419 by:

    wp_redirect(empty($_SERVER['QUERY_STRING']) ? $redirect : $redirect . ($wp_rewrite->using_permalinks() ? '?' : '&') . $_SERVER['QUERY_STRING']);

    According to search results, this notice should appear on IIS, not on Apache.

    OK. I made that edit.

    Now I get a server error if i try to go back to the site at all.

    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, cgiadmin@yourhostingaccount.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.

    rob

    OK. it was the text encoding. Server error is gone. The line at 419 has been replaced.

    I deleted the debug.log file because I couldn’t see a way to clear the past entries. Hopefully a new log will be generated. The blog posts are still only showing titles as before.

    rob

    Plugin Author Chouby

    @chouby

    I wasn’t expecting this would solve the main issue.
    Have you other errors logged?

    Just in case, since we started on this 4 weeks ago, could you update to the latest version of Polylang?

    Then edit the file single.php in your theme directory. Replace the line 38:

    <?php responsive_post_meta_data(); ?>

    by

    <?php
    echo get_permalink();
    echo get_the_time();
    echo get_the_date();
    echo get_the_author_meta( 'ID' );
    echo get_author_posts_url( get_the_author_meta( 'ID' ) );
    echo get_the_author();
    ?>

    And tell me when you have done this so that I check the result on your site. This will not solve the issue but maybe help debugging…

    OK. I have made that edit.

    After I deleted the other debug.log file, I don’t see any new one. The WP-config.php file is still set to log errors to the debug file.

    Plugin Author Chouby

    @chouby

    Can you replace the same line by:

    <?php
    echo 1;
    echo home_url();
    echo 2;
    echo home_url('?p=332');
    echo 3;
    echo get_permalink();
    ?>

    OK. I’ve done that.

    Plugin Author Chouby

    @chouby

    There is something wrong… It seems that you have badly commented the original line in:

    //<?php responsive_post_meta_data(); ?>

    The right way to comment is:

    <?php //responsive_post_meta_data(); ?>

    If I am right, then we must restart the first test… but let’s forget the first way and do it like this:

    <?php
    echo 1;
    echo home_url();
    echo 2;
    echo home_url('?p=332');
    echo 3;
    echo get_permalink();
    echo 4;
    echo get_the_time();
    echo 5;
    echo get_the_date();
    echo 6;
    echo get_the_author_meta( 'ID' );
    echo 7;
    echo get_author_posts_url( get_the_author_meta( 'ID' ) );
    echo 8;
    echo get_the_author();
    ?>

    If I am wrong, then it means that there is some code between

    <div class="post-meta">

    and the line we are replacing, which should not be there.

    Hi,

    Yes, you are right. I have replaced the commented out code with this:
    `<?php
    //responsive_post_meta_data();
    ?>
    <?php
    // echo get_permalink();
    // echo get_the_time();
    // echo get_the_date();
    // echo get_the_author_meta( ‘ID’ );
    // echo get_author_posts_url( get_the_author_meta( ‘ID’ ) );
    // echo get_the_author();
    ?>
    I have replaced the previous code with your latest suggestion and updated the file on the server.

    thanks,

    rob

Viewing 15 replies - 1 through 15 (of 30 total)
  • The topic ‘posts only display titles, no content’ is closed to new replies.
Skip to toolbar