PHP Warning

Hi,
running the latest cwicly version on the latest wp version I get constantly (by now thousends of it) the following php warning in my server logfiles:
PHP Warning: Undefined array key “path” in /…/public_html/wp-content/plugins/cwicly/core/includes/helpers.php on line 43
What do I have to do to fix that?

According to the message its about the last line:

        // (#4)
        $rest_url = wp_parse_url(trailingslashit(rest_url()));
        $current_url = wp_parse_url(add_query_arg(array()));
        return strpos($current_url['path'], $rest_url['path'], 0) === 0;
    }

If it’s all fine, is there a possibility to deactivate this warning messages?

Hi @msteinlein,

Try installing this chrome extension: Jam - Chrome Web Store

This will not only create a screen cast of your session, but also copy all environmental information such as console.log, etc. which will hopefully shed some light on your situation.

Email that link to the Cwicly team (support@cwicly.com) and they should be able to get an idea of what is going on. Also, create a temporary admin account for them to jump in and see what is going on. Put the username/password into the support email as well.

1 Like

Hi there @msteinlein,

Sorry for not addressing this sooner.

Could you possibly send me a stack trace for this warning? This will help me debug and see where the issue is being caused.

Thanks in advance.

1 Like

Hi @msteinlein,

A condition has been added to make sure this warning doesn’t appear in 1.2.9.5.1.

Thanks for your report.

Cheers,

1 Like