Your Time:
Our Time:
← Back to discussions

Button Shortcode

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

This topic has 7 replies, 2 voices, and was last updated 10 years, 7 months ago by Anonymous.

  • 2016-02-09 at 1:47 am
    Support Expired
    #12801
    dctmac
    Participant
    • Topics: 5
    • Replies: 16
    • Total posts: 21
    • Post count: 16

    Hi – I am getting a series of error messages when I try to create a button thorugh the Aivah Shortcodes. I tried loading the theme on a test server, and it gave the same errors. Do you have any idea how I might fix this? Thank you!

    Warning: Illegal string offset ‘class’ in /wp-content/themes/hopes/page_builder/aivah_sc/shortcode-generator.php on line 3010

    Warning: Illegal string offset ‘id’ in /wp-content/themes/hopes/page_builder/aivah_sc/shortcode-generator.php on line 3011

    Warning: Illegal string offset ‘class’ in /wp-content/themes/hopes/page_builder/aivah_sc/shortcode-generator.php on line 3011

    Warning: Illegal string offset ‘id’ in /wp-content/themes/hopes/page_builder/aivah_sc/shortcode-generator.php on line 3012

    2016-02-09 at 10:02 am
    #12804
    Anonymous
    Inactive
    • Topics: 0
    • Replies: 3227
    • Total posts: 3227
    • Post count: 0

    If you can provide us WP Logins to your website with URL then we can take a closer look at it. Make sure you set the post as private reply so that only admin can see your wp-logins.

    2016-02-10 at 10:32 pm
    Support Expired
    #12856
    dctmac
    Participant
    • Topics: 5
    • Replies: 16
    • Total posts: 21
    • Post count: 16
    This reply has been marked as private.
    2016-02-12 at 11:25 am
    #12884
    Anonymous
    Inactive
    • Topics: 0
    • Replies: 3227
    • Total posts: 3227
    • Post count: 0

    Find the following path: hopes/page_builder/aivah_sc/shortcode-generator.php on line 2991
    Replace this,

    foreach( $sub_shortcode['options'] as $option ){
    	if( ! isset( $option['id'] ) ) { $option['id']=''; }
    	echo '<tr class="'.$option['id'].'">';
    	$option['id']=''.$shortcodes['value'].'_'.$sub_shortcode['value'].'_'.$option['id'];
    	if( !isset( $option['desc'] ) ) { $option['desc']=''; }								
    	if( ! isset( $option['inputsize'] ) ) { $option['inputsize']=''; }
    	if( ! isset( $option['std']) ) { $option['std']=''; }
    	if( ! isset( $option['options']) ) { $option['options']=''; }
    	if( ! isset( $option['info']) ) { $option['info']=''; }
    								typeeditor($option['type'],$option['id'],$option['options'],$option['name'],$option['desc'],$option['info'],$option['std'],$option['inputsize']);	
    								echo '</tr>';
    }

    With,

    foreach( $sub_shortcode['options'] as $option ){
            if( ! isset( $option['class'] ) ) { $option['class']=''; }
    	if( ! isset( $option['id'] ) ) { $option['id']=''; }
    	echo '<tr class="'.$option['id'].' '.$option['class'].'">';
    	$option['id']=''.$shortcodes['value'].'_'.$sub_shortcode['value'].'_'.$option['id'];
    	if( !isset( $option['desc'] ) ) { $option['desc']=''; }								
    	if( ! isset( $option['inputsize'] ) ) { $option['inputsize']=''; }
    	if( ! isset( $option['std']) ) { $option['std']=''; }
    	if( ! isset( $option['options']) ) { $option['options']=''; }
    	if( ! isset( $option['info']) ) { $option['info']=''; }
    								typeeditor($option['type'],$option['id'],$option['options'],$option['name'],$option['desc'],$option['info'],$option['std'],$option['inputsize']);	
    								echo '</tr>';
    }

    Once try with this 1 and let me know because i’m unable to access your files due to allocated memory size is limited.

    2016-02-16 at 2:58 am
    Support Expired
    #12918
    dctmac
    Participant
    • Topics: 5
    • Replies: 16
    • Total posts: 21
    • Post count: 16
    This reply has been marked as private.
    2016-02-18 at 12:36 pm
    #12949
    Anonymous
    Inactive
    • Topics: 0
    • Replies: 3227
    • Total posts: 3227
    • Post count: 0

    Fixed your issue.

    2016-02-19 at 10:09 am
    Support Expired
    #12968
    dctmac
    Participant
    • Topics: 5
    • Replies: 16
    • Total posts: 21
    • Post count: 16

    That worked great. Thank you for the help!

    2016-02-19 at 10:17 am
    #12972
    Anonymous
    Inactive
    • Topics: 0
    • Replies: 3227
    • Total posts: 3227
    • Post count: 0

    Topic is set 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.