Jump to content

Hub and location missing during registration


Andi170

Recommended Posts

Hello!

Hub and location cannot be selected during registration. The browser reports :

Warning:  Invalid argument supplied for foreach() in /usr/www/users/virtuajj/sachsenexpress/sxp-crew/lib/skins/ocean_blue/registration_mainform.php on line 39

Warning:  Invalid argument supplied for foreach() in /usr/www/users/virtuajj/sachsenexpress/sxp-crew/lib/skins/ocean_blue/registration_mainform.php on line 49

Hello!

Hub and location cannot be selected during registration. The browser reports :

I can't find the error because I didn't change the original files.

Could someone please help. Thank you

Best regards
Andreas

 

 

 

<dt>Hub: *</dt>
	<dd>
		<select name="hub" id="hub">
		<?php
		foreach($hub_list as $hub) {
			echo '<option value="'.$hub->icao.'">'.$hub->icao.' - ' . $hub->name .'</option>';
		}
		?>
		</select>
	</dd>

	<dt>Location: *</dt>
	<dd><select name="location">
		<?php
			foreach($country_list as $countryCode=>$countryName) {
				if(Vars::POST('location') == $countryCode) {
				    $sel = 'selected="selected"';
				} else {
				    $sel = '';
				}

				echo '<option value="'.$countryCode.'" '.$sel.'>'.$countryName.'</option>';
			}
		?>
		</select>
		<?php
			if($location_error == true) {
                echo '<p class="error">Please enter your location</p>';
			}
		?>
	</dd>

t3W0bbG.png

dYutjy2.png

Link to comment
Share on other sites

Long before you open up your site for Public Registration , the following should be already done; First , how many Airports are in your System, Second, how many routes have you done, and have you assigned any of your Airports as a "HUB" ? Standard install of phpvms classic version, installs KJFK as a Hub. You also need to import Airports into the system first or do them by hand, I recommend you import Airports via/csv file format first into your system. You can't do routes, or assign hubs without any airports, this also will show that on the Registration page upon a new registration. 

The install of phpvms DOES NOT install airports for you, only the one I've mentioned above. And also , how many aircraft are in your system ? This is only a start, let me know on this much.

Jim

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...