Conversation
supportHi, We got this fatal error when activating plugin in our site. “Parse error: syntax error, unexpected T_FUNCTION in /home2/mewaasso/public_html/wp-content/plugins/keyring/keyring.php on line 50”. I have upgraded php in the site to 5.6 version but still getting this error. Need some quick assistance. please help.
That error is definitely coming from a PHP compatibility issue. Can you please double-check/confirm that you’ve activated PHP 5.6 properly on that site? Create a file called “test.php”, which contains the code below. Put it in the root of your WordPress install, and then access it via your browser ( http://yourwebsite.com/test.php ). It should output a bunch of information about your server, including the version of PHP being run. Make sure you delete it once you’ve confirmed the version number. <?php phpinfo(); ?> You might need to restart your webserver to get the new version to kick in properly.
That error is definitely coming from a PHP compatibility issue. Can you please double-check/confirm that you’ve activated PHP 5.6 properly on that site? Create a file called “test.php”, which contains the code below. Put it in the root of your WordPress install, and then access it via your browser ( http://yourwebsite.com/test.php ). It should output a bunch of information about your server, including the version of PHP being run. Make sure you delete it once you’ve confirmed the version number. <?php phpinfo(); ?> You might need to restart your webserver to get the new version to kick in properly.