antiblock
Rodnia | Alpha & Omega
  • Chatbox

    You don't have permission to chat.
    Load More
  • 0
Sign in to follow this  
Anplificador

Erro Em Site

Question

Boas quando entro na pagina de registo deparo me com um erro que lá aparece:

 

"Notice: Undefined index: user_admin in /home/u228028950/public_html/site4/pages/register.php on line 13"

 

Alguém poderia ajudar dou +1 obrigado.

Share this post


Link to post
Share on other sites

6 answers to this question

  • 0
if($serverSettings['register_on'] && (!isset($_SESSION['user_admin']) && !checkInt(@$_SESSION['user_admin']) && !@$_SESSION['user_admin']>=0)) {
 
Corrigido, a funcionar.

Share this post


Link to post
Share on other sites
antiblock
Elveron
  • 0
Boas, tens 3 opções para resolver o problema, ou desativas o display error do php
ou vais ao $_SESSION e metes um @ antes ou então defines todas com um " isset(  ) " .
 
Qualquer dúvida avisa.

Share this post


Link to post
Share on other sites
  • 0

Podes colocar um bocado do código? Iria ajudar um bocado.

Share this post


Link to post
Share on other sites
  • 0

if($serverSettings['register_on'] && (!isset($_SESSION['user_admin']) && !checkInt($_SESSION['user_admin']) && !$_SESSION['user_admin']>=0)) {

Share this post


Link to post
Share on other sites
  • 0

 

if($serverSettings['register_on'] && (!isset(@$_SESSION['user_admin']) && !checkInt(@$_SESSION['user_admin']) && !@$_SESSION['user_admin']>=0)) {

 
Tenta este.

 

 

Se não funcionar, tenta declarar o user_admin a uma variavel.

ex.:

$user_admin_s = '';

$user_admin_s = $_SESSION['user_admin'];

 

(se estiver errado, peço desculpa, a algum tempo que não programo.)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this