Foros del Web » Programando para Internet » PHP » Symfony »

[SOLUCIONADO] Symfony2 problemas crear bundle

Estas en el tema de Symfony2 problemas crear bundle en el foro de Symfony en Foros del Web. Buenas, estoy intentando crear mi primer Bundle en Symfony2 y a la hora de hacer en línea de comando php app/check.php me sale la siguiente ...
  #1 (permalink)  
Antiguo 17/12/2012, 02:26
 
Fecha de Ingreso: noviembre-2010
Mensajes: 234
Antigüedad: 13 años, 5 meses
Puntos: 2
Symfony2 problemas crear bundle

Buenas, estoy intentando crear mi primer Bundle en Symfony2 y a la hora de hacer en línea de comando php app/check.php me sale la siguiente lista de errores.

Warning: date_default_timezone_get(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in /Applications/MAMP/htdocs/symblog/app/SymfonyRequirements.php on line 434

Warning: date_default_timezone_get(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in /Applications/MAMP/htdocs/symblog/app/SymfonyRequirements.php on line 435

* WARNING: No configuration file (php.ini) used by PHP!

** ATTENTION **
* The PHP CLI can use a different php.ini file
* than the one used with your web server.
* To be on the safe side, please also launch the requirements check
* from your web server using the web/config.php script.

** Mandatory requirements **

OK PHP version must be at least 5.3.3 (5.3.15 installed)
OK PHP version must not be 5.3.16 as Symfony won't work properly with it
OK Vendor libraries must be installed
OK app/cache/ directory must be writable
OK app/logs/ directory must be writable
ERROR date.timezone setting must be set
Set the "date.timezone" setting in php.ini* (like Europe/Paris).

OK Configured default timezone "Europe/Berlin" must be supported by your installation of PHP
OK json_encode() must be available
OK session_start() must be available
OK ctype_alpha() must be available
OK token_get_all() must be available
OK simplexml_import_dom() must be available
ERROR detect_unicode must be disabled in php.ini
Set detect_unicode to off in php.ini*.

OK PCRE extension must be available

** Optional recommendations **

OK Requirements file should be up-to-date
OK You should use at least PHP 5.3.4 due to PHP bug #52083 in earlier versions
OK When using annotations you should have at least PHP 5.3.8 due to PHP bug #55156
OK You should not use PHP 5.4.0 due to the PHP bug #61453
OK PCRE extension should be at least version 8.0 (8.02 installed)
OK PHP-XML module should be installed
OK mb_strlen() should be available
OK iconv() should be available
OK utf8_decode() should be available
OK posix_isatty() should be available
WARNING intl extension should be available
Install and enable the intl extension (used for validators).

WARNING a PHP accelerator should be installed
Install and enable a PHP accelerator like APC (highly recommended).

WARNING short_open_tag should be disabled in php.ini
Set short_open_tag to off in php.ini*.

WARNING magic_quotes_gpc should be disabled in php.ini
Set magic_quotes_gpc to off in php.ini*.

OK register_globals should be disabled in php.ini
OK session.auto_start should be disabled in php.ini
OK PDO should be installed
OK PDO should have some drivers installed (currently available: mysql, pgsql, sqlite, sqlite2)

Me he centrado en los 3 últimos del php.ini, lo he modificado el .ini y no ocurre nada sigue apareciendo lo mismo y ya no sé que más hacer incluso he creado un script en php y no me vale para nada.
Pero continuo haciendo el check a symfony y me continua dando error, incluso he probado meterle un script en php para el tema de magic_quotes_gpc y no me lo pilla, he pillado todos los php.ini del ordenador y los he modificado, y nada, también he reiniciado el ordenador y la terminal desde donde hago las comprobaciones donde veo si el check funciona y nada.

Última edición por ramondevesa; 17/12/2012 a las 03:56
  #2 (permalink)  
Antiguo 17/12/2012, 05:26
Avatar de masterpuppet
Software Craftsman
 
Fecha de Ingreso: enero-2008
Ubicación: Montevideo, Uruguay
Mensajes: 3.550
Antigüedad: 16 años, 3 meses
Puntos: 845
Respuesta: Symfony2 problemas crear bundle

Estas modificando el php.ini correcto ?, ejecuta en la consola:

Código BASH:
Ver original
  1. php -i | grep php.ini

y modifica el .ini acorde a lo que te indica el check.

Saludos.
__________________
http://es.phptherightway.com/
thats us riders :)
  #3 (permalink)  
Antiguo 17/12/2012, 10:12
 
Fecha de Ingreso: noviembre-2012
Mensajes: 29
Antigüedad: 11 años, 5 meses
Puntos: 4
Respuesta: Symfony2 problemas crear bundle

mira el libro desarrollo agil con symfony2 esta muy bueno para comenzar.. ahi te van explicando cada una de las cosas que debes hacer desde el inicio... cuando comence, lo hice con ese libro y me fue de maravilla...

saludos
  #4 (permalink)  
Antiguo 18/12/2012, 05:03
 
Fecha de Ingreso: noviembre-2010
Mensajes: 234
Antigüedad: 13 años, 5 meses
Puntos: 2
Respuesta: Symfony2 problemas crear bundle

Muy interesante el comando, lo cierto es que no estaba modificando el php.ini que me indica el comando, yo estuve modificando el php.ini que me ofrece el servidor MAMP que es donde estoy corriendo Symfony.

Mi duda ahora, en la carpeta donde me indica el comando que se encuentra el php.ini solamente veo php.ini.default, he alterado este documento me vuelvo a ir a la linea de comando ha realizar el check y me continua dando el mismo problema, es cierto que este php.ini no estaba correctamente configurado.

Me voy a poner a la búsqueda del libro que me nombras yfmartinez.

Gracias a ambos, un saludo.

Etiquetas: mysql, sql, symfony2
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 15:22.