• I tried updating wordpress to help solve some Page 404 errors we were having and now I can’t access the wordpress dashboard at all. All I can see when I try to log on to WP are the errors/warnings below.

    The site appears to still be up and the Pages even now work (for the most part). But Warnings are visible.

    https://tylerparkarts.org/

    I tried clearing cache and still get the same warning. I am not sure where to go from here if I cannot access the dashboard.

    Some of the Warnings show up on the webpage. LinenPro was a purchased theme.

    Warning: Missing argument 2 for wpdb::prepare(), called in /home/content/16/7850616/html/wp-content/plugins/extended-categories-widget/libs/avh-db.php on line 62 and defined in /home/content/16/7850616/html/wp-includes/wp-db.php on line 1210

    Warning: Cannot modify header information – headers already sent by (output started at /home/content/16/7850616/html/wp-includes/wp-db.php:1210) in /home/content/16/7850616/html/wp-includes/pluggable.php on line 1207

Viewing 3 replies - 1 through 3 (of 3 total)
  • Open linen-extend.php and copy line 341, then post it here. Do the same for avh-db.php but line 62.

    Thread Starter Tyler Park Arts

    (@tyler-park-arts)

    Took me a while to get into godaddy account

    Line 341: return count($sticky_posts) > 0 ? $wpdb->get_var( $wpdb->prepare( “SELECT COUNT( 1 ) FROM $wpdb->posts WHERE post_type = ‘post’ AND post_status = ‘publish’ AND ID IN (“.implode(‘,’, $sticky_posts).”)” ) ) : 0;

    Line 62: return $wpdb->prepare(‘SHOW COLUMNS FROM ‘ . $table);

    Thread Starter Tyler Park Arts

    (@tyler-park-arts)

    The 341 warning is associated with 12.
    12. Get sticky posts count
    ———————————————————— */
    function get_sticky_posts_count() {
    global $wpdb;
    $sticky_posts = array_map( ‘absint’, (array) get_option(‘sticky_posts’) );
    return count($sticky_posts) > 0 ? $wpdb->get_var( $wpdb->prepare( “SELECT COUNT( 1 ) FROM $wpdb->posts WHERE post_type = ‘post’ AND post_status = ‘publish’ AND ID IN (“.implode(‘,’, $sticky_posts).”)” ) ) : 0;
    }

    The 62 Warning is a line associated with
    private function _getQueryShowColumns ($table = ”)
    {
    global $wpdb;
    return $wpdb->prepare(‘SHOW COLUMNS FROM ‘ . $table);

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Update Installation Warnings Can't access Dashboard’ is closed to new replies.