• Resolved Roger Scout

    (@roger-scout)


    There are no problems when you enter the page as a visitor, then everything works.
    But when you enter pages in the administration mode, the below warning comes up. When you disable the Staff list plug-in, the problem disappears.
    PHP 8.0 and version of Staf list is 1.6.8

    Warning: Undefined array key “post_type” in /httpd.www/wp-content/plugins/staff-list/staff-list.php on line 516

    Warning: Undefined array key “post_type” in /httpd.www/wp-content/plugins/staff-list/staff-list.php on line 516

    Warning: Cannot modify header information – headers already sent by (output started at /httpd.www/wp-content/plugins/staff-list/staff-list.php:516) in /httpd.www/wp-admin/includes/misc.php on line 1416

    Warning: Cannot modify header information – headers already sent by

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author abcfolio

    (@abcfolio)

    Unfortunately we can’t reproduce the error. The array key ‘post_type’ is a part of WP_Query object and should be always present unless the query has been modified before hitting ‘parse_query’ filter.

    Have you tried deactivating all the other plugins one by one?

    Plugin Author abcfolio

    (@abcfolio)

    Closed due to inactivity.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Undefined array key “post_type”’ is closed to new replies.