WordPress crashes when Functions.php is present in Theme
-
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' ) ); }
- The topic ‘WordPress crashes when Functions.php is present in Theme’ is closed to new replies.