Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 解析错误:语法错误。意外';{&&&x27;-我不知道怎么了_Php_Wordpress - Fatal编程技术网

Php 解析错误:语法错误。意外';{&&&x27;-我不知道怎么了

Php 解析错误:语法错误。意外';{&&&x27;-我不知道怎么了,php,wordpress,Php,Wordpress,我得到了这个错误: Parse error: syntax error, unexpected '{' in /home/u696221601/public_html/wp-content/themes/oblivion/themeOptions/functions.php on line 3 在这一行: <?php phpif ( !function_exists( 'optionsframework_init' ) ) { /*------------------------

我得到了这个错误:

Parse error: syntax error, unexpected '{' in /home/u696221601/public_html/wp-content/themes/oblivion/themeOptions/functions.php on line 3
在这一行:

<?php
phpif ( !function_exists( 'optionsframework_init' ) )
{
    /*-----------------------------------------------------------------------------------*/     /* Options Framework Theme/*-----------------------------------------------------------------------------------*/       /* Set the file path based on whether the Options Framework Theme is a parent theme or child theme */

    if ( get_stylesheet_directory() == get_template_directory() )
    {
尝试更改此选项

phpif ( !function_exists( 'optionsframework_init' ) )
{

试着改变这个

phpif ( !function_exists( 'optionsframework_init' ) )
{

试试这个

if ( !function_exists( 'optionsframework_init' ) )
{

   if ( get_stylesheet_directory() == get_template_directory() )
   {
      //do somting    
   }
}
试试这个

if ( !function_exists( 'optionsframework_init' ) )
{

   if ( get_stylesheet_directory() == get_template_directory() )
   {
      //do somting    
   }
}