Support » Plugin: WP-Live Chat by 3CX » background image heading errors

  • Resolved mihalca

    (@mihalca)


    hello, when i try to change a category image i get a bunch of warnings related to those lines of code in this file: ax-meta-class.php :

    Illegal string offset ‘url’ line 721 :
    Cannot assign an empty string to a string offset line 721:
    Illegal string offset ‘id’ line 723
    Cannot assign an empty string to a string offset 723:
    Illegal string offset ‘url’ line 724:
    Cannot assign an empty string to a string offset line 724
    Cannot assign an empty string to a string offset line 724
    Illegal string offset ‘url’ line 733
    llegal string offset ‘id’ line 734
    Illegal string offset ‘url’ line 735

    719`//backwords capability
    if ( !isset( $value[‘url’] ) )
    $value[‘url’] = ”;
    if ( !isset( $value[‘id’] ) )
    $value[‘id’] = ”;
    $value[‘url’] = isset( $value[‘src’] ) ? $value[‘src’] : $value[‘url’];
    $has_image = empty( $value[‘url’] ) ? false : true;
    $w = isset( $field[‘width’] ) ? $field[‘width’] :
    ‘auto’;
    $h = isset( $field[‘height’] ) ? $field[‘height’] : ‘auto’;
    $PreviewStyle = “style=’width: $w; height: $h;” . ( ( !$has_image ) ? “display: none;'” : “‘” );
    $id = $field[‘id’];
    $multiple = isset( $field[‘multiple’] ) ? $field[‘multiple’] : false;
    $multiple = ( $multiple ) ? “multiFile ” : “”;

    echo “<span class=’simplePanelImagePreview’><img {$PreviewStyle} src='{$value[‘url’]}’><br/></span>”;
    echo “<input type=’hidden’ name='{$name}[id]’ value='{$value[‘id’]}’/>”;
    echo “<input type=’hidden’ name='{$name}[url]’ value='{$value[‘url’]}’/>”;
    if ( $has_image )
    echo “<input class='{$multiple} button simplePanelimageUploadclear’ id='{$id}’ value='” . __( ‘Remove Image’ ) . “‘ type=’button’/>”;
    else
    echo “<input class='{$multiple} button simplePanelimageUpload’ id='{$id}’ value='” . __( ‘Upload Image’ ) . “‘ type=’button’/>”;
    $this->show_field_end( $field, $meta );
    }//741
    `

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @mihalca,

    Thank you for getting in touch with us.

    Please open wp-live-chat-support/wp-live-chat-support.php file and find this line:

    wp_localize_script('wplc-user-script', 'wplc_gravatar_image', $wplc_grav_image);

    Replace it with this:

    if (! empty($wpcl_grav_image) ) {
      wp_localize_script('wplc-user-script', 'wplc_gravatar_image', $wplc_grav_image); 
    }

    Hope that helps. Thank you for your time in this.

    Best regards,
    Jarek

    hello,
    thanks for your reply,
    i managed to accomplish what i was looking for, i also tried to make the changes suggested but i can’t find wp-live-chat-support file (i don’t have the wp-lice-chat-support plugin installed).

    Hi again,

    We are only support here WP Live Chat Support plugin. If you are having any issues with other WordPress plugin please open your thread on this plugin support forum.

    Kind regards

    ok, thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘background image heading errors’ is closed to new replies.