# Registration / Adding Fleet / Adding Airports Errors

**URL:** <https://forum.phpvms.net/t/registration-adding-fleet-adding-airports-errors/2878>\
**Category:** phpVMS Legacy Support (v2/v5)\
**Created:** [June 17, 2010, 6:41pm UTC](https://forum.phpvms.net/t/registration-adding-fleet-adding-airports-errors/2878 "2010-06-17T18:41:50Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![COAVA0001](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/c/278dde/32.png) [@COAVA0001](https://forum.phpvms.net/u/COAVA0001)\
**Post date:** [June 17, 2010, 6:41pm UTC](https://forum.phpvms.net/t/registration-adding-fleet-adding-airports-errors/2878/1 "2010-06-17T18:41:50Z")

</div>

I have received reports that when a user tries to register with the site it gives them the following error: Unknown column ‘lastip’ in ‘field list’

Also,

When i try to add an aircraft i fill out all of the fields correctly and it says “There is an Error when adding aircraft”

Lastly,

When I try to add an Airport it adds but i can not see it in the Add/Edit Airport page.

If anyone knows how to fix this that would be great.

Thanks,

Austin C

COAVA CEO

---

<div class="post-metadata">

**Author:** ![nabeel](https://forum.phpvms.net/user_avatar/forum.phpvms.net/nabeel/32/2971_2.png) [@nabeel](https://forum.phpvms.net/u/nabeel)\
**Post date:** [June 17, 2010, 7:05pm UTC](https://forum.phpvms.net/t/registration-adding-fleet-adding-airports-errors/2878/2 "2010-06-17T19:05:15Z")

</div>

Hey,

Can you paste the /install/checkdb.php script here?

---

<div class="post-metadata">

**Author:** ![COAVA0001](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/c/278dde/32.png) [@COAVA0001](https://forum.phpvms.net/u/COAVA0001)\
**Post date:** [June 17, 2010, 7:19pm UTC](https://forum.phpvms.net/t/registration-adding-fleet-adding-airports-errors/2878/3 "2010-06-17T19:19:23Z")

</div>

When i logged into the Admin Panel it told me to delete the install. Would you like me to restore this then paste it?

---

<div class="post-metadata">

**Author:** ![TennShadow](https://forum.phpvms.net/user_avatar/forum.phpvms.net/tennshadow/32/16_2.png) [@TennShadow](https://forum.phpvms.net/u/TennShadow)\
**Post date:** [June 17, 2010, 7:49pm UTC](https://forum.phpvms.net/t/registration-adding-fleet-adding-airports-errors/2878/4 "2010-06-17T19:49:32Z")

</div>

> When i logged into the Admin Panel it told me to delete the install. Would you like me to restore this then paste it?

Yes, upload the install folder again and then run it.

---

<div class="post-metadata">

**Author:** ![COAVA0001](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/c/278dde/32.png) [@COAVA0001](https://forum.phpvms.net/u/COAVA0001)\
**Post date:** [June 17, 2010, 7:53pm UTC](https://forum.phpvms.net/t/registration-adding-fleet-adding-airports-errors/2878/5 "2010-06-17T19:53:47Z")

</div>

Ok, This is what is inside the checkdb.php

\<?php

include ‘../core/codon.config.php’;

?\>

\<html\>

\<head\>

\<title\>phpVMS Install Checker\</title\>

\<style\>

body { font-family: “Lucida Grande” , Verdana, Geneva, Sans-serif; font-size: 11px; line-height: 1.8em; }

span { font-weight: bold; }

.style1 { color: #F60; font-size: x-large; filter: DropShadow(Color=#000, OffX=5, OffY=5, Positive=10); }

.style2 { font-size: small; }

\</style\>

\</head\>

\<body\>

\<strong\>\<span class=“style1”\>phpVMS\</span\> \<span class=“style2”\>Virtual Airline Administration Software\</span\>\</strong\>\<br /\>

\<strong\>Database Check\</strong\>

\<br /\>\<br /\>

\<?php

function error($title, $txt)

{

echo “\<span style="color: red"\>[{$title}]\</span\> {$txt}”;

}

function success($title, $txt)

{

echo “\<span style="color: #006600"\>[{$title}]\</span\> {$txt}”;

}

/\* Check database \*/

$db = simplexml\_load\_file(dirname(\_\_FILE\_\_).‘/structure.xml’);

foreach($db-\>database-\>table\_structure as $table)

{

$tablename = str\_replace(‘phpvms\_’, TABLE\_PREFIX, $table[‘name’]);

echo “\<strong\>Checking {$tablename}…\</strong\>”;

DB::query(‘SELECT \* FROM ‘.$tablename.’ WHERE 1=1 LIMIT 1’);

if(DB::$errno == ‘1146’)

{

echo ‘\<br \>’;

error(‘ERROR’, “The table \<strong\>{$tablename}\</strong\> is missing!\<br /\>\<br /\>”);

continue;

}

/\* loop through all the columns returned by the above query and all the columns

from the fields in the xml file, and make sure they all match up, with the

fieldlist from the xml being the “master” outside loop which it looks up against \*/

$anyerrors = false;

$colinfo = DB::$DB-\>col\_info;

foreach($table-\>field as $field)

{

$found = false;

foreach($colinfo as $column)

{

if($column-\>name == $field[‘Field’])

{

$found = true;

break;

}

}

if($found == false)

{

echo '\<br \> ';

error(‘ERROR’, “The column \<strong\>{$field[‘Field’]}\</strong\> is missing!”);

$anyerrors = true;

}

}

if($anyerrors == false)

{

echo ‘OK’;

}

echo ‘\<br /\>’;

}

?\>

\</body\>

\</html\>

---

<div class="post-metadata">

**Author:** ![nabeel](https://forum.phpvms.net/user_avatar/forum.phpvms.net/nabeel/32/2971_2.png) [@nabeel](https://forum.phpvms.net/u/nabeel)\
**Post date:** [June 17, 2010, 7:59pm UTC](https://forum.phpvms.net/t/registration-adding-fleet-adding-airports-errors/2878/6 "2010-06-17T19:59:31Z")

</div>

Sorry, I meant to actually run it, in your browser, [yourcompany.com&nbsp;-&nbsp;This website is for sale!&nbsp;-&nbsp;yourcompany Resources and Information.](http://www.yoursite.com/install/checkdb.php)

---

<div class="post-metadata">

**Author:** ![COAVA0001](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/c/278dde/32.png) [@COAVA0001](https://forum.phpvms.net/u/COAVA0001)\
**Post date:** [June 17, 2010, 8:02pm UTC](https://forum.phpvms.net/t/registration-adding-fleet-adding-airports-errors/2878/7 "2010-06-17T20:02:46Z")

</div>

says the page cannot be found

---

<div class="post-metadata">

**Author:** ![nabeel](https://forum.phpvms.net/user_avatar/forum.phpvms.net/nabeel/32/2971_2.png) [@nabeel](https://forum.phpvms.net/u/nabeel)\
**Post date:** [June 17, 2010, 8:03pm UTC](https://forum.phpvms.net/t/registration-adding-fleet-adding-airports-errors/2878/8 "2010-06-17T20:03:18Z")

</div>

> says the page cannot be found

Reupload the /install folder

---

<div class="post-metadata">

**Author:** ![COAVA0001](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/c/278dde/32.png) [@COAVA0001](https://forum.phpvms.net/u/COAVA0001)\
**Post date:** [June 17, 2010, 8:10pm UTC](https://forum.phpvms.net/t/registration-adding-fleet-adding-airports-errors/2878/9 "2010-06-17T20:10:12Z")

</div>

Still says page can not be found
