upload files, headers already sent, roles?
-
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?
- The topic ‘upload files, headers already sent, roles?’ is closed to new replies.