Everytime I have installed Jetpack on either of the two sites I have running I get this error after a day or two and can only regain access to the site by going into the FTP and deleting jetpack files.
Error:
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /homepages/34/xxxxxx/htdocs/wp-content/plugins/jetpack/modules/sharedaddy/sharing.php on line 4
Using 1&1 with phpversion: 4.4.9
I have just noticed that it is php version 4.4.9. This is odd because I have edited the hta.access file to include the two lines that change it to php 5...
any help?
re-added the two lines in the hta.access file:
AddHandler x-mapp-php5 .php
AddType x-mapp-php5 .php
and now the site is back up and working. Does that file get over written? should I make it read-only? any 1&1 users that can help?
Thank you in advance!
Andy Peatling
Member
Posted 1 year ago #
Sharedaddy only supports PHP5. In 1.1.1 you should not be able to active Sharedaddy on a PHP4 host.
Doing some work for someone with the same problem - they are on 1and1 hosting and Sharedaddy (in Jetpack) has hijacked the administration area of the site.
@Drayu, thanks for sharing your fix. That was the trick for me, too.
I re-edited the .htaccess file to force PHP5 and the site works again.
Does anyone know what might have caused this, or how to prevent it from happening in the future?