Warning: Cannot modify header information - headers already sent by (output started at /home/amhconst/public_html/amh/admin/admin-header.php:26) in /home/amhconst/public_html/amh/admin/settings.php on line 45
Verifique en todos los archivos relacionados que no existieran espacios al final e inicio de las sentencias php, a pesar de esto continua generando el error. Si alguno tiene una idea de como puedo solucionarlo les agradeceria.
settings.php
Código PHP:
Ver original
<?php $action = ''; include ('../loader.php'); require_once (JMPATH . 'jm-config.php'); require_once ('functions.php'); JM_ADMIN_INI(); ?> <?php admin_header(); ?> <section id="content"> <div class="wrapper"> <?php jm_menu(); ?> <div id="wrap-content" class="wrap"> <?php $update = 1; } else { $update = $_GET["update"]; } if($update == 'true') echo '<div class="success-box">Ajustes guardados correctamente.</div>'; ?> <?php open_connect(); general_settings(); 'site_name'=>$_POST['site_name'], 'site_description'=>$_POST['site_desc'], 'site_keywords'=>$_POST['site_keywords'], 'copyright'=>$_POST['site_copy'], 'site_email'=>$_POST['site_email'], 'phone'=>$_POST['site_phone'], 'movil'=>$_POST['site_movil'], 'address'=>$_POST['site_address'] ); foreach($modify as $setname=>$value){ } } ?> <form class="settings" method="post"> <div class="module"> <h3 class="site"><span>Opciones Generales</span></h3> <div class="mods"> <div> <label>Nombre del sitio:</label> <input type="text" name="site_name" value="<?php echo sitename; ?>"> </div> <div> <label>Descripción corta:</label> <textarea name="site_desc"><?php echo sitedesc; ?></textarea> </div> <div> <label>Palabras clave:</label> <textarea name="site_keywords"><?php echo keys; ?></textarea> </div> <div> <label>Copyright:</label> <input type="text" name="site_copy" value="<?php echo copyr; ?>"> </div> </div> </div> <div class="module"> <h3 class="proyect"><span>Contacto</span></h3> <div class="mods"> <div> <label>E-mail:</label> <input type="text" name="site_email" value="<?php echo siteemail; ?>"> </div> <div> <label>Telefono:</label> <input type="text" name="site_phone" value="<?php echo phone; ?>"> </div> <div> <label>Celular:</label> <input type="text" name="site_movil" value="<?php echo movil; ?>"> </div> <div> <label>Dirección:</label> <textarea name="site_address"><?php echo address; ?></textarea> </div> </div> </div> <div class="module"> <h3 class="gallery"><span>Social Media</span> --No activado--</h3> <div class="mods"> <div> <label>Facebook:</label> <input name="facebook" type="text" disabled> </div> <div> <label>Twitter:</label> <input name="twitter" type="text" disabled> </div> </div> </div> <input class="submit bottom" type="submit" name="Submit" value="Guardar cambios"> </form> </div> <div class="clearfix"></div> </div> </section> <?php close_connect(); admin_footer(); ?>
admin-header.php
Código PHP:
Ver original
<!DOCTYPE HTML> <html> <head> <meta charset="utf-8"> <title>Administrador</title> <link rel="stylesheet" type="text/css" href="css/cpanel.css"> <!--[if IE]> <link rel="stylesheet" type="text/css" href="css/all-ie-only.css" /> <![endif]--> <link rel="stylesheet" type="text/css" href="css/media.css"> <link rel="stylesheet" type="text/css" href="css/normalize.css"> <link rel="stylesheet" type="text/css" href="css/style-elements.css"> <link href="css/skins/grey.css" rel="stylesheet" type="text/css" /> <link href="css/dcaccordion.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> <script type='text/javascript' src='js/jquery.cookie.js'></script> <script type='text/javascript' src='js/jquery.hoverIntent.minified.js'></script> <script type='text/javascript' src='js/jquery.dcjqaccordion.2.7.min.js'></script> <script type='text/javascript' src='js/custom.js'></script> <script type='text/javascript' src='js/modernizr-2.5.3.min.js'></script> </head> <body> <header> <div class="wrapper"> <div id="login-admin">Hola, <a href="profile.php"><?php echo $_SESSION["name"] ?></a> <a href="logout.php">Cerrar sesión</a> <a class="bottom2" href="../index.php">Ver el sitio</a></div> <div class="log_jango">Jango Panel</div> <div class="breadcrumb"><h4>Administración del sitio</h4></div> </div> </header>