• Resolved Ov3rfly

    (@ov3rfly)


    Getting these warnings in debug.log

    [30-Aug-2024 22:39:32 UTC] PHP Warning:  Undefined array key "extension" in ../plugins/job-postings/include/class-job-single-view.php on line 613
    [30-Aug-2024 22:59:34 UTC] PHP Warning: Undefined array key "extension" in ../plugins/job-postings/include/class-job-single-view.php on line 613

    A fix could be similar to this:

    $extension = isset( $pathinfo['extension'] ) ? $pathinfo['extension'] : 'unknown';

    Note that pathinfo() does not always return this array key:

    Return values: .. an associative array containing the following elements is returned: dirname, basename, extension (if any), and filename.

    https://www.php.net/manual/en/function.pathinfo.php

    Jobs for WordPress 2.7.7, WordPress 6.4.5

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.