Site.php Update broke the Site

Permalink
Hey Guys,

I am currently using a 5.5+ site. I can't find the exact version as my site broke. I tried to add a MAIL FROM option so that my clients form submissions would show her email and not mine. I've used this in the past with 5.4 and below and now it completely wrecked the site.

define('FORM_BLOCK_SENDER_EMAIL','info@mhbphoto-graf.com');

Seehttp://mhbphoto-graf.com for error.

I restored the site.php back to the way it was and nothing... My backup failed and I'm really screwed. Is there ANY way to convince the site to go back to the way it was before?

Thaaaaanks....

1 Attachment

creativeorange
 
ScottSandbakken replied on at Permalink Reply
ScottSandbakken
Remove your database info and post the site.php contents so we can see it.
creativeorange replied on at Permalink Reply
creativeorange
Will this help?

define('DB_SERVER', '###########');
define('DB_USERNAME', '##############');
define('DB_PASSWORD', '#################');
define('DB_DATABASE', '#######');
define('PASSWORD_SALT', '#####################################################################################');
define('PERMISSIONS_MODEL', 'advanced');
define('CACHE_LIBRARY', 'apc');


I had the MAIL FORM definition but this is what is looks like now that I deleted it.
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
Line one should have <?php
Did you forget to add it to the post or is it missing from your site.php file?
creativeorange replied on at Permalink Reply
creativeorange
Yes, sorry it does contain the php tag. Just forgot to include it.

_________________________
Roz Murphy
(403) 467-9210

Sent from a miraculous device called an "iPhone"
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
Okay,
The other thing to check is that you have no empty lines after the last line of code i.e. after the define('CACHE_LIBRARY', 'apc');
ConcreteOwl replied on at Permalink Best Answer Reply
ConcreteOwl
You could also try using a closing php tag thus
define('CACHE_LIBRARY', 'apc');?>
creativeorange replied on at Permalink Reply
creativeorange
No empty lines :/
I reverted it back to the old php file and the site wouldn't load despite calling up the original file

_________________________
Roz Murphy
(403) 467-9210

Sent from a miraculous device called an "iPhone"
mhawke replied on at Permalink Reply
mhawke
Your site is currently throwing this error:

Fatal error: Cannot redeclare class DateHelper in /home/content/13/3354913/html/helpers/date.php on line 24


Have a look in "[root]/helpers/" and rename date.php to something else like date-broken.php.
mhawke replied on at Permalink Reply
mhawke
You must have done something cuz your site is now lookin' good!
creativeorange replied on at Permalink Reply
creativeorange
I love you guys so much, I could kiss you!!!!
There was an extra spacing after the ?> tag.

Danke, Danke!

On 10/30/2012 4:53 PM, concrete5 Community wrote:
dominic132 replied on at Permalink Reply
http://www.concrete5.org/community/forums/chat/site.php-update-broke-the-site/#discussionpost