Parse error: syntax error, unexpected $end in /home/
-
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)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Parse error: syntax error, unexpected $end in /home/’ is closed to new replies.