Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)
  • Okay, I have in my cron manager …

    curl -G -s -S http://mydomain.com/blog/index.php -d sm_command=build -d sm_key=xxxxxxxxxxxxxxxxx

    … as specified above. When I run a rebuild from the WP Admin panel, it runs fine to completion.

    When I run the rebuild through curl, it doesn’t throw an error in my email log (runs about 150 seconds), but the rebuild times out after 300 seconds at various points.

    I can bump up resources, but I’m not sure why there’s a difference running the curl job. Are the resource options applying in one case and not the other?

    Answering my own question here:

    <?php if (strpos($post->post_content, ‘–>’)) : ?>
    <?php $aftermore = 3 + strpos($post->post_content, ‘–>’);
    echo substr($post->post_content,$aftermore);
    ?>
    <?php endif; ?>

    Thread Starter three-star-dave

    (@three-star-dave)

    And I think I’ve done that:

    <?php if (strpos($post->post_content, ‘–>’)) : ?>
    <?php $aftermore = 3 + strpos($post->post_content, ‘–>’);
    echo substr($post->post_content,$aftermore);
    ?>
    <?php endif; ?>

    Thread Starter three-star-dave

    (@three-star-dave)

    This post ( http://wordpress.org/support/topic/228755 ) shows a way to do this through this:

    $aftermore = 3 + strpos($post->post_content, ‘–>’);
    echo ‘this is after the more >’ . substr($post->post_content,$aftermore);

    But that doesn’t account for cases that don’t have any More text (in which case it repeats the whole thing). Any ideas?

    The above works … if there is, in fact, More text. If there’s no more text, it repeats the whole post. Is there a way to test for that situation?

    Thread Starter three-star-dave

    (@three-star-dave)

    So posting this worked it’s magic, meaning I immediately found the one other forum post I hadn’t seen on the topic — which solved the problem:

    http://wordpress.org/support/topic/194435

    <?php $category = get_the_category(); echo $category[0]->category_description; ?>

    Thread Starter three-star-dave

    (@three-star-dave)

    Apparently there’s some mysterious drug interaction that causes the time setting part of the form to not work properly on some WP installations. A friend of mine with three different WP blogs found it missing on two of them, present on a third. We didn’t determine what particular plug-in, theme, etc. was the problem.

    We did come up with a solution, however, though it involves digging into WP tables (e.g., with phpMyAdmin) – in particular the wp_options table.

    The Twitter Tools fields are prefixed with aktt_.

    Ignore the aktt_digest_daily_time field.

    Note that the aktt_next_daily_digest field and aktt_last_digest_post fields are apparently both serial counts, by seconds, from some past time mark. If you subtract the two, then divide by 60 (seconds in a minute) and again by 60 (minutes in an hour), you come up with 23.9999s. So 24 hours, which is what you’d expect between the two of them, right?

    So to change the interval from whatever time TT is firing off with a daily digest, we need to tweak the aktt_next_daily_digest field. Take the hours you want the next post to be later or earlier, and multiply x60×60. So 2 hours would be 2×60×60=7200 (seconds). Add (subtract) that from the value in aktt_next_daily_digest to make it later (earlier) that many hours. Replace the value in the database.

    It may require a few tries to get just the time you want. But if you’re having this problem, it’s the only way to resolve it short of a lot of lengthy testing to see what’s interacting badly with TT.

    three-star-dave

    (@three-star-dave)

    Where did you set the update? I don’t see any place on the Settings screen for Twitter Tools that shows a time for this.

    three-star-dave

    (@three-star-dave)

    There’s a solution (it seems) here: http://wordpress.org/support/topic/239759

    … but, as with that post, it doesn’t seem to work after that. The plug-in saves without error, but it never seems to actually post anything.

    three-star-dave

    (@three-star-dave)

    Same issues here. Anyone have either an idea or something better?

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