Skip to content

Job Statistics Backend: PHP warning #2894

@Gnodesign

Description

@Gnodesign

Describe the bug
When clicking on the Job Views link in the Job Manager admin dashboard, a PHP warning is triggered:
PHP Warning: Attempt to read property "ID" on null in /wp-job-manager/wp-job-manager-template.php on line 903

To Reproduce
Steps to reproduce the behavior:

  1. Enable wp_debug
  2. Go to WP Dashboard → Job Manager → Job Listings.
  3. Click on Views/Statistics for any job listing.
  4. Check debug log

Isolating the problem (mark completed items with an [x]):

  • I have deactivated other plugins and confirmed this bug occurs when only WP Job Manager plugin is active.
  • This bug happens with a default WordPress theme active.
  • I can reproduce this bug consistently using the steps above.

WordPress Environment

  • WordPress Version: 6.8.2
  • WP Job Manager Version: 2.4.0
  • PHP Version: 8.3.17

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions