I've tried some windows wamp platforms because first of all I had problems with the compatible of symfony with my server ...
Now I installed wamp5_1.7.4 and the check_configuration.php file shows this:
- Code: Select all
********************************
* *
* symfony requirements check *
* *
********************************
php.ini used by PHP: C:\wamp\Apache2\bin\php.ini
** Mandatory requirements **
OK PHP version is at least 5.2.4 (5.2.5)
** Optional checks **
OK PDO is installed
OK PDO has some drivers installed: sqlite, sqlite2
OK PHP-XML module is installed
OK XSL module is installed
OK The token_get_all() function is available
OK The mb_strlen() function is available
OK The iconv() function is available
OK The utf8_decode() is available
[[WARNING]] The posix_isatty() is available: FAILED
*** Install and enable the php_posix extension (used to colorized the CLI output) ***
OK A PHP accelerator is installed
OK php.ini has short_open_tag set to off
OK php.ini has magic_quotes_gpc set to off
OK php.ini has register_globals set to off
OK php.ini has session.auto_start set to off
OK PHP version is not 5.2.9
First I want to ask is it OK to work with this warning ?
And another question:why this tutorial -> http://articles.sitepoint.com/article/symfony-beginners-tutorial
when I make the things to show the http://localhost/sf_sandbox/web/frontend_dev.php/photo. for the first time it shows me this:
[sfInitializationException]
Unable to scaffold unexistant model "Photo"
stack trace
* at ()
in SF_ROOT_DIR\lib\symfony\generator\sfCrudGenerator.class.php line 63 ...
60. $error = 'Unable to scaffold unexistant model "%s"';
61. $error = sprintf($error, $modelClass);
62.
63. throw new sfInitializationException($error);
64. }
65.
66. $this->setScaffoldingClassName($modelClass);
* at sfCrudGenerator->generate(array('model_class' => 'Photo', 'theme' => 'default', 'moduleName' => 'photo'))
in SF_ROOT_DIR\lib\symfony\generator\sfGeneratorManager.class.php line 56 ...
53. {
54. $generator = new $generator_class();
55. $generator->initialize($this);
56. $data = $generator->generate($param);
57.
58. return $data;
59. }
* at sfGeneratorManager->generate('sfPropelAdminGenerator', array('model_class' => 'Photo', 'theme' => 'default', 'moduleName' => 'photo'))
in SF_ROOT_DIR\lib\symfony\config\sfGeneratorConfigHandler.class.php line 75 ...
72. $generatorParam['moduleName'] = $match[1];
73. }
74.
75. $data = $generatorManager->generate($config['class'], $generatorParam);
76.
77. // compile data
78. $retval = "<?php\n".
* at sfGeneratorConfigHandler->execute(array('C:\wamp\www\sf_sandbox\sf_sandbox\apps\frontend/modules/photo/config/generator.yml'))
in SF_ROOT_DIR\lib\symfony\config\sfConfigCache.class.php line 103 ...
100. if ($handlerToCall)
101. {
102. // call the handler and retrieve the cache data
103. $data = $handlerToCall->execute($configs);
104.
105. $this->writeCacheFile($handler, $cache, $data);
106. }
* at sfConfigCache->callHandler('modules/photo/config/generator.yml', array('C:\wamp\www\sf_sandbox\sf_sandbox\apps\frontend/modules/photo/config/generator.yml'), 'C:\wamp\www\sf_sandbox\sf_sandbox\cache\frontend\dev\config/modules_photo_config_generator.yml.php')
in SF_ROOT_DIR\lib\symfony\config\sfConfigCache.class.php line 190 ...
187. if (!is_readable($cache) || $mtime > filemtime($cache))
188. {
189. // configuration has changed so we need to reparse it
190. $this->callHandler($configPath, $files, $cache);
191.
192. // clear process cache
193. if ('config/config_handlers.yml' != $configPath && sfConfig::get('sf_use_process_cache') && !$process_cache_cleared)
* at sfConfigCache->checkConfig('modules/photo/config/generator.yml', 1)
in SF_ROOT_DIR\lib\symfony\config\sfConfigCache.class.php line 248 ...
245. */
246. public function import($config, $once = true, $optional = false)
247. {
248. $cache = $this->checkConfig($config, $optional);
249.
250. if ($optional && !$cache)
251. {
* at sfConfigCache->import('modules/photo/config/generator.yml', 1, 1)
in SF_ROOT_DIR\lib\symfony\controller\sfController.class.php line 194 ...
191. }
192.
193. // check for a module generator config file
194. sfConfigCache::getInstance()->import(sfConfig::get('sf_app_module_dir_name').'/'.$moduleName.'/'.sfConfig::get('sf_app_module_config_dir_name').'/generator.yml', true, true);
195.
196. if (!$this->actionExists($moduleName, $actionName))
197. {
* at sfController->forward('photo', 'index')
in SF_ROOT_DIR\lib\symfony\controller\sfFrontWebController.class.php line 48 ...
45. $actionName = $request->getParameter('action');
46.
47. // make the first request
48. $this->forward($moduleName, $actionName);
49. }
50. catch (sfException $e)
51. {
* at sfFrontWebController->dispatch()
in SF_ROOT_DIR\web\frontend_dev.php line 10 ...
7.
8. require_once(SF_ROOT_DIR.DIRECTORY_SEPARATOR.'apps'.DIRECTORY_SEPARATOR.SF_APP.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'config.php');
9.
10. sfContext::getInstance()->getController()->dispatch();
11.
symfony settings ...
---
sf_admin_web_dir: /sf/sf_admin
sf_app: frontend
sf_app_config_dir: C:\wamp\www\sf_sandbox\sf_sandbox\apps\frontend\config
sf_app_config_dir_name: config
sf_app_dir: C:\wamp\www\sf_sandbox\sf_sandbox\apps\frontend
sf_app_i18n_dir: C:\wamp\www\sf_sandbox\sf_sandbox\apps\frontend\i18n
sf_app_i18n_dir_name: i18n
sf_app_lib_dir: C:\wamp\www\sf_sandbox\sf_sandbox\apps\frontend\lib
sf_app_lib_dir_name: lib
sf_app_module_action_dir_name: actions
sf_app_module_config_dir_name: config
sf_app_module_dir: C:\wamp\www\sf_sandbox\sf_sandbox\apps\frontend\modules
sf_app_module_dir_name: modules
sf_app_module_i18n_dir_name: i18n
sf_app_module_lib_dir_name: lib
sf_app_module_template_dir_name: templates
sf_app_module_validate_dir_name: validate
sf_app_module_view_dir_name: views
sf_app_template_dir: C:\wamp\www\sf_sandbox\sf_sandbox\apps\frontend\templates
sf_app_template_dir_name: templates
sf_apps_dir_name: apps
sf_autoloading_functions:
sf_available: 1
sf_base_cache_dir: C:\wamp\www\sf_sandbox\sf_sandbox\cache\frontend
sf_bin_dir: C:\wamp\www\sf_sandbox\sf_sandbox\batch
sf_bin_dir_name: batch
sf_cache:
sf_cache_dir: C:\wamp\www\sf_sandbox\sf_sandbox\cache\frontend\dev
sf_cache_dir_name: cache
sf_calendar_web_dir: /sf/calendar
sf_charset: utf-8
sf_check_lock:
sf_check_symfony_version:
sf_compressed:
sf_config_cache_dir: C:\wamp\www\sf_sandbox\sf_sandbox\cache\frontend\dev\config
sf_config_dir: C:\wamp\www\sf_sandbox\sf_sandbox\config
sf_config_dir_name: config
sf_data_dir: C:\wamp\www\sf_sandbox\sf_sandbox\data
sf_data_dir_name: data
sf_debug: 1
sf_default_action: index
sf_default_module: default
sf_doc_dir: C:\wamp\www\sf_sandbox\sf_sandbox\data\doc
sf_doc_dir_name: doc
sf_enabled_modules:
- default
sf_environment: dev
sf_error_404_action: error404
sf_error_404_module: default
sf_error_reporting: 8191
sf_escaping_method: ESC_ENTITIES
sf_escaping_strategy: bc
sf_etag:
sf_i18n:
sf_i18n_cache_dir: C:\wamp\www\sf_sandbox\sf_sandbox\cache\frontend\dev\i18n
sf_lazy_cache_key: 1
sf_lib_dir: C:\wamp\www\sf_sandbox\sf_sandbox\lib
sf_lib_dir_name: lib
sf_log_dir: C:\wamp\www\sf_sandbox\sf_sandbox\log
sf_log_dir_name: log
sf_logging_enabled: 1
sf_logging_history: 10
sf_logging_level: debug
sf_logging_period: 7
sf_logging_purge: 1
sf_logging_rotate:
sf_login_action: login
sf_login_module: default
sf_max_forwards: 5
sf_model_dir_name: model
sf_model_lib_dir: C:\wamp\www\sf_sandbox\sf_sandbox\lib\model
sf_module_cache_dir: C:\wamp\www\sf_sandbox\sf_sandbox\cache\frontend\dev\modules
sf_module_disabled_action: disabled
sf_module_disabled_module: default
sf_no_script_name:
sf_orm: propel
sf_path_info_array: SERVER
sf_path_info_key: PATH_INFO
sf_plugins_dir: C:\wamp\www\sf_sandbox\sf_sandbox\plugins
sf_plugins_dir_name: plugins
sf_prototype_web_dir: /sf/prototype
sf_rich_text_js_dir: js/tiny_mce
sf_root_cache_dir: C:\wamp\www\sf_sandbox\sf_sandbox\cache
sf_root_dir: C:\wamp\www\sf_sandbox\sf_sandbox
sf_routing_defaults:
sf_culture: en
sf_secure_action: secure
sf_secure_module: default
sf_standard_helpers:
- Partial
- Cache
- Form
sf_strip_comments: 1
sf_suffix: .
sf_symfony_data_dir: C:\wamp\www\sf_sandbox\sf_sandbox\config/../data/symfony
sf_symfony_lib_dir: C:\wamp\www\sf_sandbox\sf_sandbox\config/../lib/symfony
sf_template_cache_dir: C:\wamp\www\sf_sandbox\sf_sandbox\cache\frontend\dev\template
sf_test:
sf_test_cache_dir: C:\wamp\www\sf_sandbox\sf_sandbox\cache\frontend\dev\test
sf_test_dir: C:\wamp\www\sf_sandbox\sf_sandbox\test
sf_test_dir_name: test
sf_timeout: 1800
sf_timer_start: 1287724838.84
sf_unavailable_action: unavailable
sf_unavailable_module: default
sf_upload_dir: C:\wamp\www\sf_sandbox\sf_sandbox\web\uploads
sf_upload_dir_name: uploads
sf_url_format: PATH
sf_use_database: 1
sf_use_flash: 1
sf_use_process_cache: 1
sf_use_security: 1
sf_validation_error_class: form_error
sf_validation_error_id_prefix: error_for_
sf_validation_error_prefix: ↓
sf_validation_error_suffix: ↓
sf_web_debug: 1
sf_web_debug_web_dir: /sf/sf_web_debug
sf_web_dir: C:\wamp\www\sf_sandbox\sf_sandbox\web
sf_web_dir_name: web
request ...
---
parameterHolder:
symfony/default:
action: index
module: photo
attributeHolder:
symfony/default:
response ...
---
cookies:
httpHeaders:
parameterHolder:
global vars ...
---
cookie:
PHPSESSID: 3d079b81a693a28ae4525b2b6208c305
symfony: 5f8166dce8ef13692bbba308a5bb2304
env:
ALLUSERSPROFILE: E:\Documents and Settings\All Users.WINDOWS
AP_PARENT_PID: 1584
CLASSPATH: .;E:\Program Files\QuickTime\QTSystem\QTJava.zip
COMPUTERNAME: FLESHEATER
ComSpec: E:\WINDOWS\system32\cmd.exe
CommonProgramFiles: E:\Program Files\Common Files
DEVMGR_SHOW_DETAILS:
DEVMGR_SHOW_NONPRESENT_DEVICES: 1
FP_NO_HOST_CHECK: NO
NUMBER_OF_PROCESSORS: 1
OS: Windows_NT
PATHEXT: .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE: x86
PROCESSOR_IDENTIFIER: x86 Family 6 Model 22 Stepping 1, GenuineIntel
PROCESSOR_LEVEL: 6
PROCESSOR_REVISION: 1601
Path: E:\WINDOWS\system32;E:\WINDOWS;E:\WINDOWS\System32\Wbem;E:\Program Files\QuickTime\QTSystem\;E:\Program Files\Zend\MySQL51\bin;"E:\Program Files\Zend\ZendServer\bin";"E:\Program Files\Zend\ZendServer\share\ZendFramework\bin";E:\Program Files\TortoiseSVN\bin
ProgramFiles: E:\Program Files
QTJAVA: E:\Program Files\QuickTime\QTSystem\QTJava.zip
SystemDrive: E:
SystemRoot: E:\WINDOWS
TEMP: E:\WINDOWS\TEMP
TMP: E:\WINDOWS\TEMP
USERPROFILE: E:\Documents and Settings\LocalService.NT AUTHORITY.001
windir: E:\WINDOWS
files:
get:
post:
server:
COMSPEC: E:\WINDOWS\system32\cmd.exe
DOCUMENT_ROOT: C:/wamp/www
GATEWAY_INTERFACE: CGI/1.1
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_CHARSET: ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_ACCEPT_ENCODING: gzip,deflate
HTTP_ACCEPT_LANGUAGE: en-us,en;q=0.5
HTTP_CONNECTION: keep-alive
HTTP_COOKIE: symfony=5f8166dce8ef13692bbba308a5bb2304; PHPSESSID=3d079b81a693a28ae4525b2b6208c305
HTTP_HOST: localhost
HTTP_KEEP_ALIVE: 115
HTTP_USER_AGENT: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10
PATH: E:\WINDOWS\system32;E:\WINDOWS;E:\WINDOWS\System32\Wbem;E:\Program Files\QuickTime\QTSystem\;E:\Program Files\Zend\MySQL51\bin;"E:\Program Files\Zend\ZendServer\bin";"E:\Program Files\Zend\ZendServer\share\ZendFramework\bin";E:\Program Files\TortoiseSVN\bin
PATHEXT: .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PATH_INFO: /photo
PATH_TRANSLATED: C:\wamp\www\photo
PHP_SELF: /sf_sandbox/sf_sandbox/web/frontend_dev.php/photo
QUERY_STRING:
REMOTE_ADDR: 127.0.0.1
REMOTE_PORT: 2131
REQUEST_METHOD: GET
REQUEST_TIME: 1287724838
REQUEST_URI: /sf_sandbox/sf_sandbox/web/frontend_dev.php/photo
SCRIPT_FILENAME: C:/wamp/www/sf_sandbox/sf_sandbox/web/frontend_dev.php
SCRIPT_NAME: /sf_sandbox/sf_sandbox/web/frontend_dev.php
SERVER_ADDR: 127.0.0.1
SERVER_ADMIN: webmaster@localhost
SERVER_NAME: localhost
SERVER_PORT: 80
SERVER_PROTOCOL: HTTP/1.1
SERVER_SIGNATURE:
SERVER_SOFTWARE: Apache/2.2.6 (Win32) PHP/5.2.5
SystemRoot: E:\WINDOWS
WINDIR: E:\WINDOWS
argc: 0
argv:
session:
symfony/user/sfUser/attributes:
symfony/user/sfUser/authenticated:
symfony/user/sfUser/credentials:
symfony/user/sfUser/culture: en
symfony/user/sfUser/lastRequest: 1287724833
symfony v.1.0.22 - php 5.2.5
for help resolving this issue, please visit http://www.symfony-project.org/.
can someone help me please ?

