WordPress.org

Ready to get started?Download WordPress

Forums

Google+ Crossposting
[resolved] Undefined Index Notice (6 posts)

  1. mgs000
    Member
    Posted 1 year ago #

    I'm getting a frequent notice in my debug.log based on the manual import functionality of G+ Crossposting.

    PHP Notice: Undefined index: g_crossposting_manual_import in /home/content/70/7126070/html/wordpress/wp-content/plugins/g-crossposting/admin.php on line 24

    That correlates to this line in admin.php.
    if ($_GET['g_crossposting_manual_import']) {

    I'm not sure what the issue is, unless it is getting a null response to the function. I have never used the manual import function, but it is showing quite frequently in my log.

    http://wordpress.org/extend/plugins/g-crossposting/

  2. Sebastian
    Member
    Plugin Author

    Posted 1 year ago #

    Mmmh, not good to hear that my plugin is spamming your log files. But at least I can assure you that it is not a big problem. But of course I should use a better function to test whether the environment contains the manual import flag.

    I just submitted a fix. It would be great if you can test it before I make the official 1.1.3 release.

    Can you please replace in admin.php line 24 with:

    if (array_key_exists('g_crossposting_manual_import', $_GET)) {

    You can view the complete file at:

    http://plugins.svn.wordpress.org/g-crossposting/trunk/admin.php

  3. mgs000
    Member
    Posted 1 year ago #

    Sebastian,

    I appreciate the quick feedback, that seems to have resolved it, however I've found another notice now that was also there all of the time:

    PHP Notice: Undefined property: stdClass::$error in /home/content/70/7126070/html/wordpress/wp-content/plugins/g-crossposting/gplus-crosspost.php on line 228

    Sorry I missed that one earlier.

    I'm very happy with this plugin, it has allowed us to multiply our distribution channels without extra work.

    Thanks,

    mgs

  4. Sebastian
    Member
    Plugin Author

    Posted 1 year ago #

    Ok, but this one should only happen if G+ API returns not a single post. Anyway, I fixed it and the new version 1.1.3 should be on it's way now!

  5. mgs000
    Member
    Posted 1 year ago #

    Interesting. I have numerous posts that have been pulled in, yet I was getting up to 2 per second and at least every 21 minutes over the last day.

    I installed the update and they seem to have gone away. I really appreciate the help, and I like your idea for donations!

  6. Sebastian
    Member
    Plugin Author

    Posted 1 year ago #

    Hi mgs00,

    so everything is fine or are you experiencing problems with the latest update?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic