Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter starfix

    (@starfix)

    I finally found the error. There was a block from the server due to the “mod_security” mode.
    I de-activated the “mod_security” from the cpanel and the problem was solved.

    Thread Starter starfix

    (@starfix)

    I also tried to do these tips:
    – I de-activated all the plugins
    – I changed the theme to a twenty-sixteen basic theme.
    – I deleted the website after a backup and re-installed wordpress (with softacolous) and database

    The problem is still there.

    as I said in my former comment I tried to migrate to another server for a test and the there is no problem in this server

    I called the hosting help center, he tried to comment and it’s worked perfectly!

    So the problem ins’t for everyone.
    How can I do?

    Thank you in advance for you help

    Thread Starter starfix

    (@starfix)

    I noticed that migrating the website to another server will solve the problem. Thisi is not properly a solution… Maybe akismet plugin infects the comments template?

    Thread Starter starfix

    (@starfix)

    I solved the issue inserting the images in a div…

    I publish the changed code so it could be useful for someone.

    $attachments = get_posts( $args );
    if ( $attachments ) {
    foreach ( $attachments as $attachment ) {
    echo '
    <li>';
    echo '<div class="imagebox">';
    echo the_attachment_link( $attachment->ID, 'thumbnail', false );
    echo '</div>';
    echo '<p class="small-title">';
    echo apply_filters( 'the_title', $attachment->post_title );
    echo '</p></li>
    ';

    [Moderator note: Please post code between backticks]

    Thread Starter starfix

    (@starfix)

    i’ve tried to solve the problem fo a while but nothing happened.
    If I take off the apply_filters command for displayng the title and write a simple string of characters the problem remain the same:
    🙁

    Thread Starter starfix

    (@starfix)

    maybe i have to recall the loop in some other way?
    Here is my single.php loop:

    ` <div class="five columns">
    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    <h3 class="series">
    <?php the_title(); ?>
    </h3>
    <?php print_excerpt(5000); ?> </div>
    <?php endwhile; endif; ?>
    <div class="padding20" />
    </div>
    <div class="settimo">
    <ul class="cornice">
    <?php
    $args = array(
    'post_type' => 'attachment',
    'numberposts' => -1,
    'post_status' => null,
    'exclude' => get_post_thumbnail_id( $post->ID ),
    'post_parent' => $post->ID
    );

    $attachments = get_posts( $args );
    if ( $attachments ) {
    foreach ( $attachments as $attachment ) {
    echo '<li>';
    echo the_attachment_link( $attachment->ID, 'thumbnail', false );
    echo '<p class="small-title">';
    echo apply_filters( 'the_title', $attachment->post_title );
    echo '</p></li>';
    }
    }
    wp_reset_postdata(); ?>
    </ul>
    </div>`

    the link suggested in “http://wordpress.org/support/topic/131976&#8221; is a dead link…
    :-((

    I have the same problem and I tried to solve.
    But the url “http://wordpress.pastebin.ca/893007&#8221; it returns a blank page too…

Viewing 8 replies - 1 through 8 (of 8 total)