Forum Replies Created

Viewing 15 replies - 1 through 15 (of 55 total)
  • I had the same problem. For anyone reading this later, here’s the breakdown.

    The root cause is mangling of the main loop, visible by wp_reset_query or something like that called in your function.

    Look for your comment form code. If it looks like:

    comment_form($defaults)

    You need to change it to

    comment_form($defaults, get_the_id())

    … and everything should work ??

    Thread Starter ashes999

    (@ashes999)

    No, I haven’t actually released it. It doesn’t even have a UI, and uses some stuff specific to my site. If you’re interested, I might be able to clean it up a bit; albeit that it’s not too hard to write from scratch either.

    Thread Starter ashes999

    (@ashes999)

    That doesn’t seem to be what I want; it looks like just keyword-analysis stuff (typical).

    I already wrote my own plugin, leveraging on top of GD Star Rating. It wasn’t as hardcore as I thought to write.

    Forum: Plugins
    In reply to: Customizing the Back-End
    Thread Starter ashes999

    (@ashes999)

    There are plenty of hooks for different things, like creating a post; you can semi-easily create front-end pages to replace back-end stuff, and use plugins to block access to WP-ADMIN (if you really want).

    Thread Starter ashes999

    (@ashes999)

    It works!!! You’re the best ??

    Thread Starter ashes999

    (@ashes999)

    Interestingly, I just tried installing the latest wp-cache now; it exhibits the same error precisely…

    Hmm.

    Thread Starter ashes999

    (@ashes999)

    I’m not sure. I would guess that, more likely than not, I did have it installed at one point in time.

    Thread Starter ashes999

    (@ashes999)

    Maybe it could say “Actions are NOT arbitrary functions. Click [here] to learn about Actions.” I didn’t even know this notion of actions exists in WP.

    Anyhow, it’s resolved–thanks Otto. The reason I activate and schedule is because I need it to run at a specific time (midnight), even if I activate at a different time; but running the code on activate is mostly for debugging. I had my long-term design a bit confused ??

    Thread Starter ashes999

    (@ashes999)

    Otto42: I suspect you’re right. Strange how I missed that one line of code when I skimmed the tutorials.

    It seems to be working now with a past-timestamp; I’m going to go ahead with my original functionality and let you know tomorrow if it works. And I anticipate that it will ??

    Is it possible we can update the documentation for wp_schedule_event to mention that you do NOT pass in a function, but rather, you need to add a hook? It’s a bit unclear :/

    Thread Starter ashes999

    (@ashes999)

    Yes, I do have the callback function ?? I even scheduled a wget every five minutes so I can be sure I have timely “visitors” to trigger my cron event.

    I’m using wp-db-backup, which uses schedule-event, and it triggers fine; can you suggest another plugin?

    wp_options only has my function listed once under the cron option. However, I did see something called doing_cron which is set to 0.

    To clarify, I have a table called wp_logging which I can log messages to (it gives me the timestamp). My code is more like this:

    function activate() {
      updateScores();
      wp_schedule_event(...)
    }
    
    function updateScores
      ...
      logMessage("Scores updated.")
      logMessage("Next update: " . wp_next_scheduled(...));
    }

    I can see the initial logging message from the first call of updateScores, and it gives me the correct timestamp for wp_next_scheduled; but the updateScores function never fires after that. (The data that should be inserted by updateScores doesn’t show up, either.)

    Thread Starter ashes999

    (@ashes999)

    I suppose I can just query the WordPress DB directly (through the API). I’ve written a plugin for this…

    Thread Starter ashes999

    (@ashes999)

    I meant “blog page,” not home page; but anyhow, I think I’ve figured out how to do what I want … looks like it’ll be a case of trying to share navigation among static HTML and WordPress.

    Thread Starter ashes999

    (@ashes999)

    Thanks, I’ll check it out (again). Can you explain a bit how I can use static home pages? I see that I can have a page or a few pages with links to each other; but how will I route the main blog to /articles?

    Thread Starter ashes999

    (@ashes999)

    I’m not sure if I should be happy about this solution or not …

    I had WP-cache installed, and it was enabled for a while; I disabled it for development. Still, though, it was using the cached copies of those pages.

    Wierd. Very, very wierd.

    But it’s fixed! ^^ turns out to be a non-issue now.

    Thread Starter ashes999

    (@ashes999)

    yes.

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