• xorcise

    (@xorcise)


    I have a website which has an error_log in its root directory with thousands of error messages like the two below. What do they mean or how could I begin to track down the root cause of the problem?

    Thanks

    [06-Mar-2020 23:05:09 UTC] PHP Warning: Missing argument 1 for thematic_post_class(), called in /home/domain/public_html/wp-content/themes/domain/page.php on line 442 and defined in /home/domain/public_html/wp-content/themes/thematic/library/extensions/dynamic-classes.php on line 402

    [07-Mar-2020 00:02:21 UTC] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ” at line 1 for query SELECT * FROM pfnc_post_sorting WHERE category = made by require(‘wp-blog-header.php’), wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts, apply_filters_ref_array(‘posts_orderby’), WP_Hook->apply_filters, call_user_func_array, post_sorting

    • This topic was modified 5 years ago by xorcise.
Viewing 1 replies (of 1 total)
  • Joy

    (@joyously)

    It looks like two separate things, but they could be related.
    The first one is your theme which is passing the wrong number of arguments to thematic_post_class. You should ask at the theme’s support forum about this.
    The second one has to do with modifying the main query for sorting the posts. If your theme does this, you should ask in that support forum, but themes shouldn’t be sorting posts. It could be a plugin that you have, which has added another table called pfnc_post_sorting.

Viewing 1 replies (of 1 total)
  • The topic ‘SQL Syntax error message’ is closed to new replies.