Add to Google

Trap17.net Service Error - Getting an Internal Server Error

free web hosting
Open Discussion > Xisto Network Sites > Trap17 dot NET Forum (Archive)

Trap17.net Service Error - Getting an Internal Server Error

Sarteck
I'm getting the following error when submitting a PHP form on my site:

QUOTE
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, server@xisto.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


This only happens when I am trying to submit my new announcement to my mysql database. All of my other queries seem to work perfectly fine on the site, so I was wondering if it could perhaps be a coding error on my part? (Although it does work fine on my home computer, when tested.)

Below is a snippet of the code for the announcement changing:

CODE
<?php

session_start();

/*
*
* My Includes
*
*
*/

$PAGE_OUT = Linkage();
// "Linkage()" is just a function that returns navigation links for the logged-in user




Login_Only();
/*
* Just a function that destroys an existing session
* and re-directs user to login page if the user is
* not logged in (determined by a $_SESSION variable)
*/




if (@$_POST['announce_submit'] != "")     {$_POST['status'] = "new announcement";}
if (@$_POST['announce_exec'] != "")       {$_POST['status'] = "exec announcement";}
// $_POST['status'] keeps track of the actions performed on my pages
 // If the "Change Announcement" submit was clicked, it
 // loads a textarea to enter a new announcement in.
 //
 // If the "Submit New Announcement" in that page was clicked,
 // it enters the new announcement into the database.






if ($_POST['status'] == "exec announcement")
{
 /*
  *  If a new announcement was submitted, first check to see if the
  * line breaks are to be changed to HTML Line Break elements.
  *  "_Announcement_Insertion()" takes the submission and adds line
  * breaks and escapes the entire string.
  *  Finally, update the table that holds the Admin/Default information.
  */
 if (@$_POST['f_line_breaks'] == "TRUE") {$breaks = TRUE;} else {$breaks = FALSE;}
 $_announcement = _Announcement_Insertion($_POST['f_announcement'], $breaks);
 $update_query = "UPDATE admin SET announcement='$_announcement'";
 $update_result = mysql_query($update_query) or die ("Couldn't execute query:<BR>$update_query");
 $_POST['message'] = "Announcements have been Updated";
}







if ($_POST['status'] == "new announcement")
{
 /*
  *  Get the old announcement from the database and display it in the TEXTAREA.
  *  Display a submit button.
  *  --($COLUMN1 is part of what later gets assigned to my $PAGE_OUT variable,
  *  -- which is echoed near the end of the script to the browser.)
  */
 $get_announce_query = "SELECT * FROM admin";
 $get_announce_result = mysql_query($get_announce_query) or die ("Couldn't execute query:<BR>$get_announce_query");
 $get_announce_row = mysql_fetch_array($get_announce_result, MYSQL_ASSOC);
 extract($get_announce_row);
 $COLUMN1_OUT .= "
     <FORM NAME='Announcement' METHOD='POST' ACTION='index.php'>
       <TEXTAREA NAME='f_announcement' COLS='42' ROWS='12'>$announcement</TEXTAREA>
       <INPUT TYPE='checkbox' NAME='f_line_breaks' VALUE='TRUE'>Blank lines to &lt;BR&gt; elements<BR>
       <INPUT TYPE='submit' NAME='announce_exec' VALUE='Submit New Announcement'>
     </FORM>";
}






$PAGE_OUT .= $COLUMN1; // (and other stuff)





echo Write_HTML($PAGE_OUT);
// Write_HTML() is in my main include to give default values on title, background, etc.
// -- $PAGE_OUT, again, is the actual HTML outputted.





function _Announcement_Insertion($value, $breaks)
{
 $value = Escape($value);
 if ($breaks) {$value = Line_Breaks_to_HTML($value);}
 return $value;
}






// unrelated functions

?>



Any help, thoughts, or comments would be appreciated. It's not a "OMG I MUST HAVE THIS DONE BY TOMORROW OR I'LL DIE" type of thing, either, so I'm really in no hurry. happy.gif THanks again.

Sarteck

 

 

 


Reply

Saint_Michael
it could be a connection error someone where in your script from what i can tell the script looks fine unless i am missing something, did make sure your config script has the mysql info that it needs?

Reply

shadowdemon
i get the same problem with all my copes (php codes)
i would love if i could get a real answer also

Reply

wassie
well just do as the error says, send a mail to server@xisto.com

Reply

Dooga
What is your site url?

Reply

Sarteck
QUOTE(Dooga @ Dec 2 2005, 09:30 PM)
What is your site url?
*


Wow, great, they got the .net forum up. biggrin.gif

My site is sarteck.trap17.net. And now, I am getting the same error when trying to insert ANY entry into ANY of my databases, even manually via the phpMyAdmin tool (using the SQL query box).

And that kinda bites, hard. ;_;



[Sorry I've not been around, I finally got myself a job.]

Reply

Sarteck
Oi... E-mailed Xisto about it and still (after a few days or so) have yet to recieve a reply. Gah. If this keeps up, I'll really have no choice but to find a different host. A database is useless if you can't add or change data to it, after all.

Reply

BuffaloHELP
There is a remote probability that some functions are disabled from dot net site to prevent possible outbreak of unwanted SQL injections. Please refer to the main dot net site to see if you are using one of those.

I am sorry that you feel dot net service is not rendering for you. However, the dot net service is this: it's simple way to obtain a quick hosting service without any hassle. And thus, the functions are limited in some ways. That is the fundamental difference between dot net and dot com service.

Reply

DreamCore
Well In an other topic (What do you think of trap17.net?) I have addad a reply on things in trap17.net that are good and things that are not good. I here is it
QUOTE
I have checking out the Trap17.net hosting better and I just finding more and more awful things. And I will list the under here, and just hope that admin fixes it.

1. Website tells that the Php version is 4.3.9 but why does it says in phpmyadmin Please Upgrade to Php 4.1.0 -BAD
2. Tested to install IPB 2.1.3 and it fails, have same version on Trap17.com - Awful
3. 1 MySql -OK
4. MySql does not support Query Insert, File Insert -Awful
5. Adds - OK
6. Max File Size is acctually 340kb (not 500 as it says) -Awful
7. Xpanel look -OK
8. Ftp: You get errors when you upload many files and then the files dissapear and then comes back -BAD
9. SQL/Server Uptime atleast better than Trap17.com -OK

Well as I sumbited this information proves that the Php version is not corecctley intalled or the website says wrong. Beacuse I couldent install IPB and it needs PHP 4.1.0 and the website says that the version is 4.3.9.

Many things are realy wrong and I hope you admin kan fix this, then I will start to use Trap17.net

Hope that you fix it soon

Hope this will answer you problem, beacuse the SQL Query does not work in Trap17.net wink.gif

 

 

 


Reply

giggigsales
if you are on a network then that might be causing the problem when i was using my old site select a flag i was on a network and it did not work
dry.gif

Notice from mayank:
There's no need of so many smilies.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

Recent Queries:-
  1. nvarchar linebreak textarea - 1327.84 hr back. (1)
Similar Topics

Keywords : Trap17net Service Error Internal Server Error

  1. Phpmyadmin Problem! Internal Server Error - (3)
  2. There Appears To Be A Problem With The Database Server. - There appears to be a problem with the database server. (1)
    "There appears to be a problem with the database server. We should be back up shortly."
    http://tdk.trap17.net/php_raid/ This is happening way too often. ...
  3. Login Error - (9)
    I've been trying to login to trap17.net, and i keep getting the error:
    -------------------------- Internal Server Error The server encountered an internal error or
    misconfiguration and was unable to complete your request. Please contact the server administrator,
    server@xisto.com and inform them of the time the error occurred, and anything you might have done
    that may have caused the error. More information about this error may be available in the server
    error log. -------------------------- any ideas? ...
  4. Internal Server Errors With Phpmyadmin - (0)
    Receive Internal Server Error message in the following circumstances: 1) I try to insert data by
    writing a MySQL query (rather than by using the insert button). The reason I wish to do this, btw,
    is to enable me to copy data from another MySQL database without making individual inserts -
    There's no import function in phpMyAdmin in Trap17.net. NB If I copy and paste a table creation
    query, it works. 2) I try making individual inserts using the insert button. The screen now
    suggests that data is present in the fields where I have inserted, but if I try to browse, I ...
  5. Trap17 Dot Net Demo Page - dot NET service is ad supported service (7)
    Trap17's little sister service Trap17 dot NET is our ad supported, no posting required instant
    hosting service. Click here for the demo page (please do not bookmark this page in case it may
    change in the future) And since this is a demo page, it is limited in functionality. But I hope
    this will give you an idea what the dot NET service is like. Furthermore, dot NET offers xPanel
    and NOT cPanel. For previewing what your pages are like with ad banners, visit
    http://demo.trap17.net Trap17 dot NET PHP version information Added sample page view. Ap...
  6. Wordpress Blog Installation Error In Writing Db - (8)
    I've tried installing an older version of he blog (WP 1.2) At first seemed everything ok, but
    when i tried to install, at step 3 i got error in writing DB.. so i've deleted the database,
    restored it and start again.. but same problem.. the WP blog requires: * PHP 4.2 or greater *
    MySQL 3.23.23 or greater * The mod_rewrite Apache module is it ok for this MySQL DB? /huh.gif"
    style="vertical-align:middle" emoid=":huh:" border="0" alt="huh.gif" /> thanks guys...
  7. Trouble Removing Account - Get an "Unknown" error. (1)
    I have been trying to remove my http://step.trap17.net account so I may instead register a
    nhbfan.trap17.net account, but for some reason, when I click the "remove account" button, I get
    transferred to a page that just says "Unknown" and my website is not removed....
  8. Trap17.net Account As A Hosting Service - I want to change from subdomain to domain (4)
    Hi, I have just registered on trap17.net for website hosting. My subdomain is solanky.trap17.net
    but I want to host it on my domain that is owned by me. But I have see no option for it on
    trap17.net. Please tell me what to do in this regard. I want only free hosting ( Banner supported
    on trap17.net). But on signup page there is no option for entering domain name, there is only one
    option for subdomain. And now I have already registered for solanky.trap17.net than how can I change
    it, or I have to delete it and register for a new account once again. I have tried to del...
  9. Mysql Error - (1)
    a friend of a friend wrote a "dkp" program for a gaming guild. i managed to get everything setup on
    a free trap17.net server fine. the link is here http://coh.trap17.net/dkp/ so on the trap17
    phpmyadmin query sql function the make_db.sql that i have wasnt working right. i had to break it
    apart and add everything using phpmyadmin. the result was success. so, i decided to buy webspace
    from computinghost.com so i could get our guilds website up, the same make_db.sql errored out at
    "default charset = latin1" i took all of those entries out of the script and tried ag...
  10. Database Error On Trap17 Dot Net - (3)
    hi, i'm trying to get some help with a mysql data base... when i enter the following into the
    query it errors out.. tell me to contact an admin to find out what wrong, i wrote them an email and
    wrote out a trouble ticket, but not help yet. i think it might have something to do with the "mode"
    the sql server is running on. any idea on how to change that or if i can? LOCK TABLES `Classes`
    WRITE; INSERT INTO `Classes` VALUES
    ('Druid'),('Hunter'),('Mage'),('Paladin'),('Priest'),('R
    ogue'),('Shaman'),('War...






Looking for trap17, net, service, error, internal, server, error






*SIMILAR VIDEOS*
Searching Video's for trap17, net, service, error, internal, server, error

*MORE FROM TRAP17.COM*
advertisement



Trap17.net Service Error - Getting an Internal Server Error