• Resolved Serkan

    (@sakalserkan)


    Hi,
    my site create site.com_.php.error.log file on folder /logs

    Error line :
    [24-Feb-2022 17:24:29 UTC] PHP Warning: Trying to access array offset on value of type null in /home/ustdzy/public_html/wp-content/plugins/joli-table-of-contents/core/Engine/TableOfContents.php on line 592

    code in line :
    if ( strpos( $options[‘visibility’], ‘folded’ ) === 0 ) {

    Version info:
    Wordpress 5.9.1
    PHP 8.1.3
    Joli Table Of Contents 1.3.8

    Why does it generate this error?

Viewing 1 replies (of 1 total)
  • Plugin Author WPJoli

    (@wpjoli)

    Hi,

    This is a tiny bug and in this case the $options array is optional, which in your case is absent and fails on accessing the offset ‘visibility’.

    Keep in mind however that this is not an actual error, it is a warning and it does not change the normal behavior of the plugin.

    I will make sure this gets fixed on the next update.

    Thank you for your feedback.

    Michael

Viewing 1 replies (of 1 total)
  • The topic ‘PHP Warning: Trying to access array offset on value of type null in’ is closed to new replies.