• Hello,

    I have installed wordpress successfully on my new domain.
    In front end it all good but in admin panel if I do click on any page or anything error massage shows something like:

    Parse error: syntax error, unexpected $end in /home/a9299653/public_html/wp-content/themes/evolve/library/functions/options.php on line 1

    ooptions.php file as below:

    <?php
    /**
     * A unique identifier is defined to store the options in the database and reference them from the theme.
     * By default it uses the theme name, in lowercase and without spaces, but this can be changed if needed.
     * If the identifier changes, it'll appear as if the options have been reset.
     *
     */
    
    function evolve_option_name() {
    
    	// This gets the theme name from the stylesheet (lowercase and without spaces)
    	$themename = wp_get_theme();
    	$themename = $themename['Name'];
    	$themename = preg_replace("/\W/", "", strtolower($themename) );
    
    	$evolve_settings = get_option('evolve');
    	$evolve_settings['id'] = $themename;
    	update_option('evolve', $evolve_settings);
    
    }
    
    /**
     * Defines an array of options that will be used to generate the settings page and be saved in the database.
     * When creating the "id" fields, make sure to use all lowercase and no spaces.
     *
     */

    [Please post code or markup snippets between backticks or use the code button. As it stands, your posted code may now have been permanently damaged/corrupted by the forum’s parser.]

    how to solve this?

    Thanks in Advance..!!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi,

    What you pasted here is not the full content of option.php file. But I downloaded this theme and checked the file…

    It’s clear that the <?php directive is not closed at the end (or so I don’t know where is the error)
    This is what the error message says. It looks for the end of <?php.

    The message says that the error is at line 1 because <?php is seen, but not ?>

    I tested this theme in my WordPress, I do not get the error.

    I suggest you to deactivate all your plugins to test if the error message disappear.

    [Excessive code removed]

    I have being getting error.
    Parse error: syntax error, unexpected $end in /home/content/18/9016118/html/wp-content/themes/options/framework/functions/common.php on line 339

    Help needed
    Opening and closing tag of <?php. ?> properly closed.Now where is the issue.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    @wahgra786, we don’t support the “options” theme so we can only suggest you contact the theme’s vendors or use a theme we support.

    @wahgra786 – this thread is way outdated and you don’t have the same issue as you are not using the same theme. Please contact whoever you got the theme from for help. Also see:

    https://codex.www.ads-software.com/Forum_Welcome#Posting_Code

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Parse error: syntax error, unexpected $end in /home/’ is closed to new replies.