Jump to content
  • 0

Error logging in to fluxCP


Tio Akima

Question


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  191
  • Reputation:   138
  • Joined:  09/24/12
  • Last Seen:  

Hi guys

I made some edits to the fluxcp layout, but now I have the following error:

Does anyone know why you are giving this error while trying to login?

FluxCP is complex, I can not solve it.

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Forum Manager
  • Topic Count:  282
  • Topics Per Day:  0.06
  • Content Count:  3123
  • Reputation:   1617
  • Joined:  03/26/12
  • Last Seen:  

It means you've removed this: (themes/default/account/login.php)

<?php if (count($serverNames) > 1): ?>
		<tr>
			<th><label for="login_server"><?php echo htmlspecialchars(Flux::message('AccountServerLabel')) ?></label></th>
			<td>
				<select name="server" id="login_server"<?php if (count($serverNames) === 1) echo ' disabled="disabled"' ?>>
					<?php foreach ($serverNames as $serverName): ?>
					<option value="<?php echo htmlspecialchars($serverName) ?>"><?php echo htmlspecialchars($serverName) ?></option>
					<?php endforeach ?>
				</select>
			</td>
		</tr>
		<?php endif ?>

Or that you've changed something so that the code skips over the server selection. If you only have one server defined in your config/servers.php file then it won't be displayed anyway, so it's safe to add it back.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  191
  • Reputation:   138
  • Joined:  09/24/12
  • Last Seen:  

On 2017-6-18 at 2:52 PM, Akkarin said:

It means you've removed this: (themes/default/account/login.php)


<?php if (count($serverNames) > 1): ?>
		<tr>
			<th><label for="login_server"><?php echo htmlspecialchars(Flux::message('AccountServerLabel')) ?></label></th>
			<td>
				<select name="server" id="login_server"<?php if (count($serverNames) === 1) echo ' disabled="disabled"' ?>>
					<?php foreach ($serverNames as $serverName): ?>
					<option value="<?php echo htmlspecialchars($serverName) ?>"><?php echo htmlspecialchars($serverName) ?></option>
					<?php endforeach ?>
				</select>
			</td>
		</tr>
		<?php endif ?>

Or that you've changed something so that the code skips over the server selection. If you only have one server defined in your config/servers.php file then it won't be displayed anyway, so it's safe to add it back.

 

Hello akkarin

thanks for your message.
You helped me to clarify some doubts.
And about my error, I had created two users in the database with the same name. Then the conflict was happening.
I delete a user and resolved. Thanks for the clarification.

solved!

Link to comment
Share on other sites

×
×
  • Create New...