• Resolved 2046

    (@o-o)


    I see multiple notices in post edit screen
    WP 5.7.2, lastest p2p plugin.

    The number of errors in not equal to numbers of conenctions the post has. For example it has like 30+ connections and 4 notices.

    Notice: Trying to access array offset on value of type null in ..z/wp-content/plugins/posts-to-posts/vendor/mustache/mustache/src/Mustache/Parser.php on line 278

    Sure the WP_DEBUG on

    • This topic was modified 3 years, 6 months ago by 2046.
Viewing 1 replies (of 1 total)
  • I was receiving the same issue and fixed it by changing the line in question directly in the code.

    Here is the fix in case the (not completely sure if there is someone) maintainer is willing to patch the plugin.

    File: /vendor/mustache/mustache/src/Mustache/Parser.php
    Line: 278
    Existing: if ($parent[Mustache_Tokenizer::TYPE] === Mustache_Tokenizer::T_PARENT) {
    Fixed: if ($parent && $parent[Mustache_Tokenizer::TYPE] === Mustache_Tokenizer::T_PARENT) {

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