• Resolved NITROFOX

    (@nitrofox)


    After update from php 7.4 to 8.0 and 8.1, get this erros in search page wordpress “/?s=”

    Warning: Undefined array key "settings_key" in /home/user/public_html/wp-content/plugins/social-rocket/includes/class-social-rocket.php on line 3562
    
    Warning: Undefined array key "before" in /home/user/public_html/wp-content/plugins/social-rocket/includes/class-social-rocket.php on line 3677
    
    Warning: Trying to access array offset on value of type null in /home/user/public_html/wp-content/plugins/social-rocket/includes/class-social-rocket.php on line 3677
    
    Warning: Trying to access array offset on value of type null in /home/user/public_html/wp-content/plugins/social-rocket/includes/class-social-rocket.php on line 3677
    
    Warning: Undefined array key "before" in /home/user/public_html/wp-content/plugins/social-rocket/includes/class-social-rocket.php on line 3678
    
    Warning: Trying to access array offset on value of type null in /home/user/public_html/wp-content/plugins/social-rocket/includes/class-social-rocket.php on line 3678
    
    Warning: Trying to access array offset on value of type null in /home/user/public_html/wp-content/plugins/social-rocket/includes/class-social-rocket.php on line 3678
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support MeganSupport

    (@megan891)

    Hi @nitrofox

    Sorry you’re having trouble. For issues like this please log a support ticket via our website here https://wpsocialrocket.com/support/ and we will assist you further.

    Thanks in advance,
    WP Social Rocket Support

    PHP 8 compatibility

    /wp-content/plugins/social-rocket/includes/class-social-rocket.php
    //ME
    if (isset($loc[‘settings_key’])) {
    if ( $this->isset( $this->settings[‘floating_buttons’][‘position‘.$loc[‘settings_key’]], ‘default’ ) !== ‘default’ ) {
    $placement = $this->settings[‘floating_buttons’][‘position_’.$loc[‘settings_key’]];
    }
    }

    Thread Starter NITROFOX

    (@nitrofox)

    @dbase66

    Thank you, but not working get this error now,

    Warning: Use of undefined constant ‘settings_key’ – assumed ‘‘settings_key’’ (this will throw an Error in a future version of PHP) in /home/user/public_html/wp-content/plugins/social-rocket/includes/class-social-rocket.php on line 3225

    Your actual is not really compatible with PHP 8.1
    My code-example is only suggestion!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Error in php 8.0/8.1’ is closed to new replies.