Your Time:
Our Time:
← Back to discussions

warning: illegal strings after uploading

Need help with a different issue? Search the forums or open a new ticket.
Open a support ticket

This topic has 12 replies, 6 voices, and was last updated 9 years, 4 months ago by Anonymous.

  • 2017-04-01 at 11:12 am
    Support Expired
    #19724
    HabibZakaria
    Participant
    • Topics: 9
    • Replies: 2
    • Total posts: 11
    • Post count: 2

    Hi

    I uploaded the image after carefully reading the documentation and I failed.
    I visit the site and I see 5 lines of warning: illegal string offset “image”
    warning: illegal string offset “repeat”
    warning: illegal string offset “position”
    warning: illegal string offset “color”
    warning: illegal string offset “attachment”

    Can you help me to correct these warning

    Thank you

    2017-04-03 at 10:27 am
    #19737
    Anonymous
    Inactive
    • Topics: 0
    • Replies: 3227
    • Total posts: 3227
    • Post count: 0

    Find for this code in labora/css/skin.php file on line no around 75

    $labora_sh_bg_properties = get_post_meta( $post->ID,'labora_subheader_img', true );
    $labora_sh_bg_properties = array(
    	'image' => $labora_sh_bg_properties['0']['image'],
    	'repeat' => $labora_sh_bg_properties['0']['repeat'],
    	'position' => $labora_sh_bg_properties['0']['position'],
    	'color' => $labora_sh_bg_properties['0']['color'],
    	'attachment' => $labora_sh_bg_properties['0']['attachement'],
    );

    and replace it with the below code,

    $labora_sh_bg_properties = get_post_meta( $post->ID,'labora_subheader_img', true );
    if( !empty( $labora_sh_bg_properties ) ){
    	$labora_sh_bg_properties = array(
    		'image' => $labora_sh_bg_properties['0']['image'],
    		'repeat' => $labora_sh_bg_properties['0']['repeat'],
    		'position' => $labora_sh_bg_properties['0']['position'],
    		'color' => $labora_sh_bg_properties['0']['color'],
    		'attachment' => $labora_sh_bg_properties['0']['attachement'],
    	);
    }
    2017-04-10 at 6:05 pm
    Support Expired
    #19873
    ehazard
    Participant
    • Topics: 0
    • Replies: 2
    • Total posts: 2
    • Post count: 2

    I am getting the same problem… I replaced the code with what you stated and now I’m getting illegal strings on lines 525–>529

    2017-04-10 at 6:28 pm
    Support Expired
    #19874
    cko
    Participant
    • Topics: 0
    • Replies: 2
    • Total posts: 2
    • Post count: 2

    same here

    2017-04-10 at 6:38 pm
    Support Expired
    #19876
    cko
    Participant
    • Topics: 0
    • Replies: 2
    • Total posts: 2
    • Post count: 2

    …but with eventra theme

    2017-04-11 at 10:27 am
    #19885
    Anonymous
    Inactive
    • Topics: 0
    • Replies: 3227
    • Total posts: 3227
    • Post count: 0

    @HabibZakaria, @cko:
    If you can provide us WP Logins to your website with URL then we can fix the issues. Make sure you set the post as private reply so that only admin can see your wp-logins.
    Note: Before providing the wp-logins to any support staff, kindly please make sure you take a backup of everything including wordpress content, theme options, widgets etc.


    @cko
    : Kindly post your question in a specified category of the theme so that it may be helpful for others too.

    2017-04-12 at 6:56 pm
    Support Expired
    #19921
    mch1369
    Participant
    • Topics: 2
    • Replies: 2
    • Total posts: 4
    • Post count: 2

    I am getting same errors on many pages after setting up labora on my website. screenshot attached.

    2017-04-12 at 11:49 pm
    Support Expired
    #19926
    ehazard
    Participant
    • Topics: 0
    • Replies: 2
    • Total posts: 2
    • Post count: 2
    This reply has been marked as private.
    2017-04-13 at 10:23 am
    #19927
    Anonymous
    Inactive
    • Topics: 0
    • Replies: 3227
    • Total posts: 3227
    • Post count: 0

    @all: If you are getting the illegal string offset problems in labora theme, kindly replace the skin.php file with the given attached file.


    @ehazard
    : Fixed your problems. Edited file: skin.css

    2017-04-13 at 10:27 am
    #19930
    Anonymous
    Inactive
    • Topics: 0
    • Replies: 3227
    • Total posts: 3227
    • Post count: 0

    @cko: If you are getting the illegal string offset errors in eventra theme, kindly replace the skin.php file with the given attached file.

    2017-04-13 at 2:34 pm
    Support Expired
    #19950
    mch1369
    Participant
    • Topics: 2
    • Replies: 2
    • Total posts: 4
    • Post count: 2

    updated skin.php, but still getting naked code in header

    2017-04-13 at 4:35 pm
    #19956
    Wajid Khan
    Keymaster
    • Topics: 5
    • Replies: 1543
    • Total posts: 1548
    • Post count: 1876
    2017-04-24 at 10:58 am
    #20109
    Anonymous
    Inactive
    • Topics: 0
    • Replies: 3227
    • Total posts: 3227
    • Post count: 0

    We are setting this topic to be resolved. If you wish to update this topic please reply here instead of creating another topic.

You must be logged in to reply to this topic.