Forum Replies Created

Viewing 15 replies - 1 through 15 (of 16 total)
  • Thanks LucaShapiro – looks like that is indeed the issue – how bizarre.

    I tried allocating 64M and then 128M in my php.ini file but still get the error:

    Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 122880 bytes) in /srv/www/mywebsite/public_html/wp-admin/includes/nav-menu.php on line 675

    I’m having the same issues – fresh install of WP 3.4 and using Twenty Eleven theme.

    Thread Starter zonjineko

    (@zonjineko)

    Okay that works perfectly – thanks again for your perseverance with helping me. All looks simple now that I know how 🙂

    Thread Starter zonjineko

    (@zonjineko)

    Ok cool – think that has finally sunk into my thick head 🙂

    Will try that now – thx for the extra help.

    Thread Starter zonjineko

    (@zonjineko)

    Thx but I’m using three arrays – this is just the final one that I showed above.

    I’m really still just trying to get the final loop of the three to not show what is in the first two loops. I can’t seem to get it working at all. I can get it to not show one or the other but not the two.

    Not sure what you mean by use the same array for each of the loops.

    Starting to feel very dumb 🙂

    Thread Starter zonjineko

    (@zonjineko)

    Thx all working well except I cannot get the following to work:

    ‘post__not_in’ => ( $kanji_ids + $hiragana_ids )

    Is the + sign meant to be there? It doesn’t work for me. I have ooked and looked and cannot see how to have two items in the posts__not_in line.

    <dl class="entryList small">
    <dt>Grammar/Vocab</dt>
    <?php
    $args = array(
        'cat' => '134,123',
        'showposts' => 5,
        'orderby' => 'comment_count',
        'order' => 'DESC',
        'post__not_in' => ($hiragana_ids)
    );
    // print_r(array($args));
    query_posts( $args );
    $vocabgrammar_ids = array();
    while (have_posts()) : the_post();
    $vocabgrammar_ids[] = get_the_ID();
    ?>
    <dd><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></dd>
    <?
    endwhile;
    ?>
    </dl>
    Thread Starter zonjineko

    (@zonjineko)

    alchymyth – Yep been banging my head for a week with this and tried post_not_in and a few other things I found here plus have looked at many different things I found on Google but no luck. So have done my homework before asking 🙂

    t31os_ – Thanks for your help will give that a go. I tried post_not_in and arrays but might not have got it right.

    Will try this – appreciate it.

    Thread Starter zonjineko

    (@zonjineko)

    Thanks very odd – it was there in the source in two browser last night and Google’s Page Speed also picked up the 404’s it was causing. Maybe WP-Super Cache was not clearing things out properly but it’s all gone now.

    Thanks for your help again. – much appreciated.

    Thread Starter zonjineko

    (@zonjineko)

    Thx for the help – not sure what version but it was fairly recent.

    http://www.zonjineko.com

    Thread Starter zonjineko

    (@zonjineko)

    Ok all fixed – $class = ”; needed to be within the loop to reset it on the way through

    Thanks again for your help

    Thread Starter zonjineko

    (@zonjineko)

    Have fixed that “pgp” typo and now it works 🙂

    Only issue is it puts “first” on everything eg all 4 items. I have echoed out $c and it is definitely moving from 1 through to 4 properly. I think there is an error in the “if $c == 1” line so going through that now

    Thread Starter zonjineko

    (@zonjineko)

    Here’s the full code

    <?php
    $c = 0;
    $class = '';
    query_posts('category_name=photos&showposts=4');
    if ( have_posts() ) : while ( have_posts() ) : the_post();
    $c++;
    if ( $c == 1 ) $class .= ' first-child';
    ?>
    <dl class="entryList small<? pgp echo $class; ?>">
    <dt><a href="<?php the_permalink() ?>"><?php echo get_post_meta( $post->ID, 'photo_title', true ); ?></a></dt>
    <dd><a href="<?php the_permalink() ?>"><img src="<?php echo get_post_meta( $post->ID, 'thesis_thumb', true ); ?>" width="190px" height="127px" /></a><?php echo preg_replace('/<p>(.+?)<\/p>/','$1',get_the_excerpt()); ?><br /><a href="<?php the_permalink() ?>" class="more-link">Read <span class="verbose">"<?php the_title(); ?>"</span> more</a></dd>
    </dl>
    <?php
    endwhile;endif;
    wp_reset_query();
    ?>
    Thread Starter zonjineko

    (@zonjineko)

    Thx alot esmi – that looks like it will work. Do I need to add another part at the end to end the new “if” loop you have added?

    I have added in the new code but am getting a blank page now so I am thinking the loop is not ending eg we now have two if statements?

    Thread Starter zonjineko

    (@zonjineko)

    Thx – so you can’t tell me where “RELATED POSTS” is situated in the code for the widget header. All I need to do is remove that and I’m all good.

    Any help would be great.

    Thread Starter zonjineko

    (@zonjineko)

    Ok have spent all day on this and found the answer.

    The word “small” in the permalink causes the entire problem.

    I pulled paragraph by paragraph from the article and it still died. I then unticked categories one by one. I removed all extra data like excerpt etc and it died.

    I then removed each word in the permalink and title one by one. As soon as I removed the word “small” form the permalink, everything stopped dying on me. HOw bizarre is that.

    It is 100% replicatable. I left the orginal article headline as is and changed the permalink to remove the word “small” and it works.

    So the issue appears to be the word “small” in the permalink. So I changed the headline and permalink, put a 301 in the htaccess and it’s all good now.

    ON top of this strangeness, when I was searching the admin for any articles with the old url I put the phrase in “small tsu” and it went to the forbidden page again and the front page went to the Apache Test page again. I then did a search on just “tsu” and it all works.

    Truly bizarre – one day wasted on all this but glad to have it sorted.

    Seems like a pretty weird bug to me. I can’t be the first person who has the word “small” in a permalink.

    Anyway if you ahve been having trouble and the word “small” in your permalink you now know why 🙂

Viewing 15 replies - 1 through 15 (of 16 total)