/    Sign up×
Community /Pin to ProfileBookmark

I just uploaded the completed site to my churches web server which is hosted by godaddy. And when I tried to view the site I got a boatload of errors, I dont understand what the problem is. I had been developing the site on a server hosted by siteground and everything worked fine. Im pretty sure it has something to do with the php.ini file or the htaccess, I just dont know what to do…HELP!!

to post a comment
PHP

4 Comments(s)

Copy linkTweet thisAlerts:
@ghipplehJul 03.2007 — can you post the script or the site where we can take a look at it.
Copy linkTweet thisAlerts:
@novemberGreyauthorJul 03.2007 — ahh my bad...I actually figured out some of them, but this page still does not work at all

http://www.ccgulfbreeze.com/contact/

Here is the actual script:

[code=php]<?php
$title = "Us";
$image = "Contact-Us";
$width = "128";
$height = "19";

switch ($_GET['who']){
case john:
$title = "Pastor John";
$contact = "checked";
$john = "selected";
$image = "contactJohn";
$width = "237";
$height = "18";
break;

case steve:
$title = "Steve Feeley";
$contact = "checked";
$steve = "selected";
$image = "contactSteve";
$width = "251";
$height = "23";
break;

case doug:
$title = "Doug Kimsal";
$contact = "checked";
$doug = "selected";
$image = "contactDoug";
$width = "245";
$height = "23";
break;

$staffEmails = array(
'[email protected]');

switch ($_POST['purpose']){
case general:
$to = "[email protected]";
break;

case staff:
$to = isset($_POST['staff']) && array_key_exists($_POST['staff'], $staffEmails) ? $staffEmails[$_POST['staff']] : $_POST[0];
break;

case issue:
$to = "[email protected]";
break;
}

$fullName = $_POST['name'];
$senderEmail = $_POST['email'];
$senderSubject = $_POST['subject'];
$senderMessage = $_POST['message'];
$subject = "Website Message: {$senderSubject}";
$body = "This is a message from the Calvary Chapel Gulf Breeze Website."."n".
"Full Name: {$fullName}"."n".
"E-mail Address: {$senderEmail}"."n".
"Message: {$senderMessage}.";
$headers = "From: {$senderEmail}";

mail($to, $subject, $body, $headers);
?>[/code]


[code=html]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Calvary Chapel Gulf Breeze</title>
<?php include "http://www.ccgulfbreeze.com/global/includes/meta.inc"; ?>
<!-- End: Meta Tags -->
<?php include "http://www.ccgulfbreeze.com/global/includes/head.inc"; ?>
<link rel="stylesheet" type="text/css" href="http://www.ccgulfbreeze.com/contact/contact.css" media="screen" />
<?php include "http://www.ccgulfbreeze.com/global/includes/IEhead.inc"; ?>
<script type="text/javascript" src="http://www.ccgulfbreeze.com/global/scripts/alert.js"></script>
<script type="text/javascript" src="http://www.ccgulfbreeze.com/global/scripts/validate.js"></script>
<script type="text/javascript" src="http://www.ccgulfbreeze.com/global/scripts/enable.js"></script>
</head>

<body onLoad="enable()">
<div id="preWrapper"><!--Start: Pre-Wrapper-->
<div id="wrapper"><!--Start: Wrapper-->
<div id="header"><!--Start: Header-->
</div><!--End: Header-->
<div id="horizontal"></div><!--Start and End: Horizontal -->

<div id="navigation"><!--Start: Navigation-->
<?php include "http://www.ccgulfbreeze.com/global/includes/navigation.inc"; ?>
</div><!--End: Navigation-->

<div id="leftColumn"><!--Start: Left Column-->
<?php include "http://www.ccgulfbreeze.com/global/includes/column.inc"; ?>
</div><!--End: Left Column-->

<div id="breadCrumb">Contact <?php echo $title ?></div><!--Start and End: Bread Crumb-->
<div id="contactContent"><!--Start: Content-->
<img src ="http://www.ccgulfbreeze.com/contact/images/<?php echo $image ?>.jpg" width="<?php echo $width ?>" height="<?php echo $height ?>" class="push left clear" alt="Contact <?php echo $title ?>"/>
<div id="contentBox"><!--Start: Content Box-->
<div id="address"><!--Start: Address-->
<img src ="http://www.ccgulfbreeze.com/contact/images/churchFront.jpg" width="214" height="122" alt="Front of Calvary Chapel"/>
<p>
<span class="header">Address:</span><br/>
Calvary Chapel Gulf Breeze<br/>
1140 Harrison Ave.<br/>
Gulf Breeze, FL 32563<br/>
</p>
<p>
<span class="header">Phone:</span> (850) 932-8197<br/>
<span class="header">Fax:</span> (850) 934-3340 <br/>
</p>
<p>
<span class="header">Hours:</span> Mon-Thur 8:00-5:00

</p>
</div><!--End: Address-->
<form action="<?php echo(basename(htmlentities($_SERVER['PHP_SELF']))); ?>" method="POST" name="webForm" id="contactForm" onSubmit="return validate(this);">
<label>Full Name:*</label><input name="name" type="text" class="field">
<label>E-mail Address:*</label><input name="email" type="text" class="field" >
<ul>
<li class="title">Purpose:*</li>
<li class="radio"><label><input type="radio" name="purpose" value="general" onclick="enable()"/>General Information</label></li>
<li class="radio"><label><input type="radio" name="purpose" value="issue" onclick="enable()"/>Website Issue</label></li>
<li class="radio"><label><input type="radio" name="purpose" value="staff" onclick="enable()" <?php echo $contact ?>/>Contact Staff Member</label></li>
</ul>
<span id="sendTo">Staff Member:</span>
<select name="staff" id="member" DISABLED>
<option value="choose" selected>Choose Staff Member...</option>
<option value="0" <?php echo $john ?>>John Spencer - Senior Pastor</option>
<option value="1" <?php echo $steve ?>>Steve Feeley - Assistant Pastor</option>
<option value="2" <?php echo $doug ?>>Doug Kimsal - Worship Director</option>
<option value="3" <?php echo $randy ?>>Randy Pitman - Ministry Assistant</option>
<option value="4" <?php echo $joe ?>>Joe Prestridge - Assistant Pastor</option>
<option value="5" <?php echo $bob ?>>Bob Rockwell - Asstistant Pastor</option>
<option value="6" <?php echo $neil ?>>Neil Spencer - Focused Youth</option>
<option value="7" <?php echo $dale ?>>Dale Waltman - Children's Ministry</option>
<option value="8" <?php echo $brenton ?>>Brenton Collyer - Youth Alive</option>
<option value="9" <?php echo $austin ?>>Austin Bodiford - Maintenance</option>
<option value="10" <?php echo $jill ?>>Jill Brogdon - Ministry Assistant</option>
<option value="11" <?php echo $terri ?>>Terri Busey - Ministry Assistant</option>
<option value="12" <?php echo $cd ?>>C.D. Corbin - Accounting</option>
<option value="13" <?php echo $chad ?>>Chad Erwins - Ministry Assistant</option>
<option value="14" <?php echo $carol ?>>Carol Feeley - Secretary</option>
<option value="15" <?php echo $brad ?>>Brad Harrison - Maintenance</option>
<option value="16" <?php echo $paul ?>>Paul Kimsal - Audio Technician</option>
<option value="17" <?php echo $keith ?>>Keith King - Multimedia</option>
<option value="18" <?php echo $clay ?>>Clay Smith - Maintenance</option>
<option value="19" <?php echo $ceci ?>>Cecilea Spencer- Graphic Design</option>
<option value="20" <?php echo $lynn ?>>Lynn Spencer - Women's Ministry</option>
<option value="21" <?php echo $ryan ?>>Ryan Spencer - Video Production</option>
<option value="22" <?php echo $grey ?>>Grey Stephenson - Web Developer</option>
<option value="23" <?php echo $sara ?>>Sara Thurber - Ministry Assistant</option>
</select><br/>
<label>Subject:</label><input name="subject" type="text" class="field" >
<label id="message">Message:*</label><textarea name="message" id="messageBox"></textarea>
<input type="submit" name="submit" value="Submit" class="button">
<input type="reset" value="Reset" class="button" onclick="disable()">
</form>
</div><!-- End: Content Box-->
</div><!--End: Content-->

</div><!--End: Wrapper-->

<div id="footer"><!--Start: Footer-->
<?php include "http://www.ccgulfbreeze.com/global/includes/footer.inc"; ?>
</div><!--End: Footer-->

</div><!-- End: Pre-Wrapper-->

<!--Start: CSS Image Preloading-->
<?php include "http://www.ccgulfbreeze.com/global/includes/preload.inc"; ?>
<!--End: CSS Image Preloading-->

</body>
</html>[/code]
Copy linkTweet thisAlerts:
@ghipplehJul 03.2007 — Just a quick reply to that... I don't get any errors for the about page. However I get an 500 internal server error for the second link (the contact page) which is technically defined as http://textpattern.com/faq/52/500-internal-server-error


To rectify this try ftp'ing into your site and changing the permissions to the target to 777 and see if this permission setting fixes anything.
Copy linkTweet thisAlerts:
@ghipplehJul 03.2007 — scratch that last post, just now saw the new code posted.
×

Success!

Help @novemberGrey spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.24,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...