Plugin could not be activated because it triggered a fatal error.
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /homepages/13/d223675081/htdocs/dev/auditz/wp-content/plugins/contact-form-7-to-database-extension/CF7DBPlugin.php on line 15
I really don't know what I'm doing wrong. It seems to be specific to my environment, I tried activating it on my personal server and blog and it seemed to work just fine.
Ideas?
-Alison
http://wordpress.org/extend/plugins/contact-form-7-to-database-extension/
It's definitely related to the hosting environment, though I can't figure out why it's doing this. I'm on a shared account with 1&1. After moving it to Media Temple, I had no issues. sigh*, 1&1 is so frustrating!
This is because it is executing using PHP4 instead of PHP5.
For 1and1, edit/create the .htaccess file at the root of your wordpress install and put the following text in it (this what I have in my file for 1and1)
Options All -Indexes
AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
You are my knight in shining armor, msimpson! Worked like a charm! I had suspected that might be the case-- but I figured everyone was already on php5 already. Bad assumption. I should have ran phpinfo.
Thanks so much! Good to keep this info laying around for other people as frustrated as me. :)
Well it sort of worked. I got all my stuff working- it just threw my permalinks off. Going to rack my brain over that one.
I changed
RewriteBase /
to the name of my directory, and same with this line:
RewriteRule . /index.php [L]
I'm a n00b at this apache stuff. :)
Glad you got it worked out. I'm not sure if you need all the rewrite stuff or just the top few lines to make it PHP5. I'm just passing on what I got from someone else...