Forums

Last Modified Footer
Errors and how to fix (2 posts)

  1. ethans
    Member
    Posted 1 year ago #

    The following error was showing up in our log:

    WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 for query SELECT post_modified FROM wp_posts WHERE id = made by require, require_once, include, get_footer, locate_template, load_template, require_once, wp_footer, do_action, call_user_func_array, lmf_plugin->generate_footer, lmf_plugin->generate_output

    Fixed by editing wp-content/plugins/last-modified-footer/last-modified-footer.php in function generate_output() change:

    global $id

    to:

    global $post;
    $id = $post->ID;

    Peace

    http://wordpress.org/extend/plugins/last-modified-footer/

  2. Jay Collier
    Member
    Posted 1 year ago #

    Thank you!

    I was looking for a plugin for this function, and it appears to be the only one.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic