Home Forums WP Content Resharer Pro "Illegal offset type"

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #15403
    Avatarkip
    Participant

    Hi…

    I noticed a near-constant error being thrown in my error logs:

    PHP Warning: Illegal offset type in […]wp-content/plugins/wpsite-content-resharer-pro/wpsite-content-resharer-pro.php on line 1034

    It doesn’t seem to be affecting anything with the functionality of the plugin, but it’s building large error logs. Is there something I can do to correct it? Any help would be greatly appreciated. Thanks in advance.

    #15404
    AvatarCharlie
    Keymaster

    Hello kip,

    Welcome to the community :)

    I had a quick look at that exact line of code and it is actual a blank line, which leads me to believe that you are not running the latest version of Content Resharer Pro. The latest version is v3.2.0. If you have any version lower than that then please update the plugin :)

    #15405
    Avatarkip
    Participant

    I double checked and I’m using v3.2.0. When I look at line 1034, I see:

    $account = $settings[‘accounts’][$account_key];

    One other thing I’ll mention is that I’ve commented out the appropriate lines to get rid of the WP-Cron warning (lines 658-665, because I have a manual CRON job rather than the automatic WP run ). I may have inadvertently added an extra line that knocked subsequent code down by a line.

    Here’s what my changes look like:

    // Show error message is WP Cron is turned off

    /** if ( defined(‘DISABLE_WP_CRON’) && DISABLE_WP_CRON ) {
    ?>
    <div class=”error”>
    <p><?php _e(‘WP Cron is DISABLED! Content Resharer Pro needs WP Cron to be enabled in order to automatically reshare your content. Please read our’ , WPSITE_RESHARE_PLUGIN_TEXT_DOMAIN); ?> <?php _e(‘post’ , WPSITE_RESHARE_PLUGIN_TEXT_DOMAIN); ?> <?php _e(‘about how to enable WP Cron.’ , WPSITE_RESHARE_PLUGIN_TEXT_DOMAIN); ?></p>
    </div>
    <?php
    }
    */

    #15406
    AvatarCharlie
    Keymaster

    One other thing I’ll mention is that I’ve commented out the appropriate lines to get rid of the WP-Cron warning (lines 658-665, because I have a manual CRON job rather than the automatic WP run ). I may have inadvertently added an extra line that knocked subsequent code down by a line.

    Ok that makes sense.

    Let me have a look at and I will get back to you soon.

    #15418
    AvatarCharlie
    Keymaster

    I just updated the plugin and that error message you are seeing should be removed. Please update to version 3.2.1 and let me know if the problem persists :)

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘WP Content Resharer Pro’ is closed to new topics and replies.
-