• 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 /><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 );
    }
Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator James Huff

    (@macmanx)

    ax-meta-class.php isn’t a core WordPress file.

    What theme or plugin is that a part of?

    Thread Starter mihalca

    (@mihalca)

    I am using eduma theme

    Moderator James Huff

    (@macmanx)

    Since that is a commercial theme, we ask that you please go to their official support channel, so you can get support from the people who know it best: https://thimpress.com/forums/forum/eduma/

    Forum volunteers are not given access to commercial products, so they would not know why it is not working properly. Other community members who may have faced your issue might be able to help you but your best bet is your product’s developer. Keep in mind we encourage you to use the official support venues, as it allows the developers to be aware of issues with their code and gives back to the community in a more robust way.

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