• I am using the roles and restrict cats plugins by Owen Winkler… (just fyi)… since installing limitcats (for WPv2+), I am now seeing:
    ————–
    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 2]
    INSERT INTO wp_post2cat (post_id, category_id) VALUES (215, )

    Warning: Cannot modify header information - headers already sent by (output started at /home/.servername/xxxxx/wprootfolder/wp-includes/wp-db.php:102) in /home/.servername/xxxxx/wprootfolder/wp-admin/inline-uploading.php on line 101

    ———-
    Oddly, if I ignore and simply click the Browse button, the image I am trying to upload is there — but if I were to try to click the Save button for the post (for example), the errors get even worse:

    Warning: array_intersect(): Argument #2 is not an array in /home/.servername/xxxxx/wprootfolder/wp-content/plugins/limitcats.php on line 268

    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 2]
    INSERT INTO wp_post2cat (post_id, category_id) VALUES (213, )

    Warning: Cannot modify header information - headers already sent by (output started at /home/.servername/xxxxx/wprootfolder/wp-content/plugins/limitcats.php:268) in /home/.servername/xxxxx/wprootfolder/wp-admin/post.php on line 127

    As a test, I also tried just clicking the Upload button with no image selected and it does the same thing.

    ——
    I deactivated limitcats and the problem seemed to go away… here’s the thing… the limit cats is used to limit a custom role (crew) to post only in specific blog pages… I can see that maybe there’s a problem with uploading permissions there? But this also affects admin level users ability to upload files — even the admin gets the errors shown above. And what’s so strange is that the images upload anyway, even though that isn’t obvious to the user until they can click the Browse All (or Browse) button.

    Any ideas, anyone?

Viewing 3 replies - 1 through 3 (of 3 total)
  • I’m getting this exact same error, except it happens when a category-restricted user tries to post a new article. I’ve looked through at least 50 threads on related topics, and none of them have been any help at all.

    Even though there’s an error, the post still goes through.

    I am also using the Role Manager plugin, as well as the default Akismet and Backup plugins. But I have the latest version of everything, so that’s not the problem.

    jriemerm

    (@jriemerm)

    I’m struggling with this same problem, and it would be great to solve it, so I can use the excellent limit categories plugin. Does anyone have any suggestions?

    If you are using WP 2.1.x you might find help in an updated version of Limit Cats plugin, now being provided at https://mahzeh.org/?p=24.

    HTH ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘upload files, headers already sent, roles?’ is closed to new replies.