• Resolved rtvenge

    (@rtvenge)


    I have php warnings/errors turned on in my dev environment, and it seems that there is a small php warning in there. This should probably be fixed because there are probably some server setups out there that are printing warnings in production (bad idea I know).

    Warning: Illegal string offset ‘keywords_time’ in /path/to/plugin/internal_link_building/internal_link_building.php on line 103

    The root cause is if the $customKeys option is empty, it’s a string. So when you try to call it as an array on line 103, that’s where the warning is coming from. I just added this to line 99-101 and that seemed to supress the warning:

    if (empty($customkeys)) {
    $customkeys = [];
    }

    There very well could be a better way of doing this, but this is what I came with. 🙂

    http://wordpress.org/extend/plugins/internal-link-builder/

Viewing 1 replies (of 1 total)
  • Thread Starter rtvenge

    (@rtvenge)

    I think I’m referring to the wrong plugin. I guess there is an Internal Link BuildING plugin that is not in the WP Plugin repo. Closing topic.

Viewing 1 replies (of 1 total)
  • The topic ‘PHP warning showing’ is closed to new replies.