• Callum

    (@aic_technologies)


    Hi Everyone,

    So last night i purchased a theme (from themeforest.net) and chucked the files in the WordPress theme files. The theme ‘installed’ fine but when i activate it; i get this error on an otherwise empty page

    “Parse error: syntax error, unexpected ‘{‘ in /home/tasmania/public_html/wp-content/themes/entrepeneur/functions/widget_areas.php on line 1”

    The website and the WordPress admin no longer work until i remove the theme from the WordPress files.

    Opening up the widget_areas.php gives me this LINE of coding

    <?phpif ( function_exists(‘register_sidebar’) ) { register_sidebar(array( ‘name’ => ‘Sidebar’, ‘before_widget’ => ‘<li id=”%1$s” class=”widget %2$s”>’, ‘after_widget’ => ”, ‘before_title’ => ‘<h3 class=”widgettitle”>’, ‘after_title’ => ‘</h3>’, ));}if ( function_exists(‘register_sidebar’) ) register_sidebar(array( ‘name’ => ‘Homepage’, ‘before_widget’ => ”, ‘after_widget’ => ”, ‘before_title’ => ‘<h3 class=”icon_header”>’, ‘after_title’ => ‘</h3>’,));if ( function_exists(‘register_sidebar’) ) register_sidebar(array( ‘name’ => ‘Footer’, ‘before_widget’ => ‘<div class=”footer_widget”>’, ‘after_widget’ => ‘</div>’, ‘before_title’ => ‘<h4>’, ‘after_title’ => ‘</h4>’,));if ( function_exists(‘register_sidebar’) ) register_sidebar(array( ‘name’ => ‘Contact Page’, ‘before_widget’ => ‘<li id=”%1$s” class=”widget %2$s”>’, ‘after_widget’ => ‘<div class=”widget-divider”></div>’, ‘before_title’ => ‘<h3 class=”widgettitle”>’, ‘after_title’ => ‘</h3>’,));?>

    Does anybody know what is causing this error? I have no idea about coding and I would really appreciate any help. I have googled it and nothing relevant comes up.

    Thanks in advance for anyone that posts, muchly appreciated..

    Callum.

    Note:

    The theme im trying to get live is called “entrepeneur”.

Viewing 1 replies (of 1 total)
  • could be a missing space after the php here:
    <?phpif ( function_exists('register..........

    however, as you’ve just bought the theme, did you check with the theme author/seller?

Viewing 1 replies (of 1 total)
  • The topic ‘Parse error: syntax error, unexpected?’ is closed to new replies.