• Resolved juanrodriguezfreire

    (@juanrodriguezfreire)


    Hello,

    New to this. Getting the following error with a php file (sitepress)
    :

    Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/balume/public_html/wp-content/plugins/sitepress-multilingual-cms/sitepress.php on line 40

    The code I have is the following:

    PHP Code:

    if(defined('WP_ADMIN')){
        require('ICL_PLUGIN_PATH . '/inc/php-version-check.php');
        if(defined('PHP_VERSION_INCOMPATIBLE')) return;
    }

    Could anyone inform me what could be the problem with the code.

    Thank You

Viewing 2 replies - 1 through 2 (of 2 total)
  • Remove ‘ before ICL_PLUGIN_PATH.

    Thread Starter juanrodriguezfreire

    (@juanrodriguezfreire)

    Thanks. Did that but I’m now getting the following error:

    Warning: require(/home/balume/public_html/wp-content/plugins/sitepress-multilingual-cms/inc/php-version-check.php) [function.require]: failed to open stream: No such file or directory in /home/balume/public_html/wp-content/plugins/sitepress-multilingual-cms/sitepress.php on line 39

    Fatal error: require() [function.require]: Failed opening required ‘/home/balume/public_html/wp-content/plugins/sitepress-multilingual-cms/inc/php-version-check.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/balume/public_html/wp-content/plugins/sitepress-multilingual-cms/sitepress.php on line 39

    Thanks

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