• Resolved Oglacor

    (@oglacor)


    Hey guys… the thing is this… I installed a new Theme… totally mine… When the theme has the functions file, every time I update something in the code, via the theme editor, or I update a user profile I get a white crash… the consult is done, the data is saved and all but it is annoying that it happens.

    Now you say… WHAT IS IN YOUR FUNCITON FILE DUDE?! Well… the answer is IT DOESN’T MaTTER… I put an empty file and it crashed… Ii put another file I have on the same server with the exact code that works and it crashes…

    I’m using the functions file to update the user meta fields so I can add a couple of extra data…

    Anyone had something similar? It is not a memory issue.. I have 256M configured…

    I am desperate!!! DESPERATE I TELL YOU!! 🙁

    Here is the code so you can telll me if something is giving WordPress a stomachache or something…

    add_filter('user_contactmethods','quakerUserFields');
    function quakerUserFields( $contactmethods ) {
        $contactmethods['iDEmpleado'] = 'ID Empleado';
        $contactmethods['tipoEmpleado'] = 'Tipo de Empleado';
        $contactmethods['cumpleanos'] = 'Cumpleaños DD-MM-AAAA';
        $contactmethods['fechaContratacion'] = 'Fecha de Contratación DD-MM-AAAA';
        $contactmethods['saldoVacaciones'] = 'Saldo de Vacaciones';
        $contactmethods['nivelEmpleado'] = 'Nivel de Empleado';
        $contactmethods['empresa'] = 'Empresa';
        $contactmethods['telefono'] = 'Teléfono';
        $contactmethods['extension'] = 'Extensión';
        $contactmethods['iDNextel'] = 'ID Nextel';
        $contactmethods['area'] = 'Área';
        $contactmethods['centroTrabajo'] = 'Centro de Trabajo';
        $contactmethods['puesto'] = 'Puesto';
        $contactmethods['sindicalizado'] = 'Sindicalizado';
        $contactmethods['autorizaPermiso'] = 'Jefe que autoriza Permiso';
        $contactmethods['entearadoPermiso'] = 'Quién debe estar enterado del permiso';
        return $contactmethods;
    }
    if ( function_exists( 'register_nav_menus' ) ) {
    	register_nav_menus(
    		array(
    		  'main-menu' => 'MainMenu',
    		  'header-menu' => 'Submenu Noticias',
    		  'foot_menu' => 'Submenu Corporativo'
    		)
    	);
    }

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Oglacor

    (@oglacor)

    THANKS!!! Now I have this!! :

    [07-Nov-2012 19:31:12 UTC] PHP Warning: Cannot modify header information – headers already sent by (output started at /mnt/stor08-wc1-ord1/718277/754615/www.cisaintra.com.mx/web/content/site/wp-content/themes/cisaTheme/functions.php:1) in /mnt/stor08-wc1-ord1/718277/754615/www.cisaintra.com.mx/web/content/site/wp-includes/pluggable.php on line 881

    I don’t understan the problem… 🙁 Sorry… Can you helo ?? 😀 Thanks ESMI 😀

    Thread Starter Oglacor

    (@oglacor)

    Ok… SOLVED!!!

    The problem was the file encoding… it took me a lot to find it… Thanks ESMI…

    Guys, just make sure all your files are UTF encoded and there will be no problem!!!…

    Glad I could help 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WordPress crashes when Functions.php is present in Theme’ is closed to new replies.