WordPress.org

Ready to get started?Download WordPress

Forums

Parse error: syntax error, unexpected ';', expecting ')' in /var/www/ebuscemi/wp (6 posts)

  1. kiz2004
    Member
    Posted 1 year ago #

    Hi,
    I have this kind of parse error in the goodspace theme:
    Parse error: syntax error, unexpected ';', expecting ')' in /var/www/ebuscemi/wp-content/themes/goodspace/include/page-option.php on line 577

    unfortunately i don't have a backup of theme and page-option.php

    this is the code of that lines

    // create Page Option Meta
    add_action('add_meta_boxes', 'add_page_option');
    function add_page_option(){

    add_meta_box('page-option', __('Page Option','gdl_back_office'), 'add_page_option_element',
    'page', 'normal', 'high');

    }

    Someone can help me?
    thanks

  2. kiz2004
    Member
    Posted 1 year ago #

    this is the code that i was modifing

    'Column-Service'=>array(
    "image" => array( 'title'=>__('IMAGE','gdl_back_office'), 'name'=>'page-option-item-column-service-image',
    'type'=>'upload',
    'description'=>'The proper image size of the column service is 32x32px'),
    'title'=>array(
    'title'=> __('TITLE', 'gdl_back_office'),
    'name'=> 'page-option-item-column-service-title',
    'type'=> 'inputtext'),
    'caption'=>array(
    'title'=> __('CAPTION', 'gdl_back_office'),
    'name'=> 'page-option-item-column-service-caption',
    'type'=> 'textarea'),
    'read-more'=> array(
    'title'=> __('READ MORE LINK', 'gdl_back_office'),
    'name'=> 'page-option-item-column-service-link',
    'type'=> 'inputtext'),
    'read-more-text'=> array(
    'title'=> __('READ MORE TITLE', 'gdl_back_office'),
    'name'=> 'page-option-item-column-service-link-text',
    'type'=> 'inputtext',
    'default'=> 'Learn More',
    'hr'=>'none'),
    ),

  3. Andrew
    Forum Moderator
    Posted 1 year ago #

    Which code is at the line number of the error?

  4. kiz2004
    Member
    Posted 1 year ago #

    line 577, this is the exact code

    function add_page_option(){

  5. Andrew
    Forum Moderator
    Posted 1 year ago #

    Remove the comma on 'hr'=>'none'),

  6. kiz2004
    Member
    Posted 1 year ago #

    no, it does not work.
    the same error

Topic Closed

This topic has been closed to new replies.

About this Topic