- This topic has 3 replies, 2 voices, and was last updated 13 years, 10 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember Troubleshooting › Fatal error when activating on 1and1 hosting
Hi
I installed eMember on my apache development server on my desktop running windows 7
but when I try to activate it “live” on a 1and1 hosting package (unix), I get the following:
Plugin could not be activated because it triggered a fatal error.
Parse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /homepages/36/d320429163/htdocs/wp-content/plugins/wp-eMember/emember_config.php on line 5
I have had a look at the code in that file, but I am not experienced enough to know what needs tweaking.
All pointers or help Much appreciated
Plugin could not be activated because it triggered a fatal error
Amin needs to look into this. He wil be contacting you later today.
Hi
I did a bit of rummaging around in my hosts control panel and found that they had not upgraded from php 4.4.9. so taking a chance, I uploaded a file called htaccess.txt and renamed it .htaccess this contained the following line of code
AddType x-mapp-php5 .php .php4
This forces all pages with an old .php extension to be parsed as php 5+
consequently the problem in my original post is now solved.
Many thanks to WZP for such a prompt reply
( and a pat on the back for me for self help)
Again, many thanks
stennyskid