juanrodriguezfreire
Member
Posted 2 years ago #
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
paxmanpwnz
Member
Posted 2 years ago #
Remove ' before ICL_PLUGIN_PATH.
juanrodriguezfreire
Member
Posted 2 years ago #
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