Wednesday, February 9, 2011

Symfony: Import Project

1. Can't find PHPLIB_***
/UX_inPulseAd/config/config.php

Solved:

ini_set('include_path', '/root/workspace/phplib:' . ini_get('include_path'));


2. [sfCacheException]
Unable to read cache file "/root/workspace/ProjectName/cache/appName/dev/config/config_config_handlers.yml.php"

Warning: copy(/root/workspace/UX_inPulseAd/cache/cm/dev/config/config_autoload.yml.php) [function.copy]: failed to open stream: Permission denied in /opt/symfony/symfony10/lib/cache/sfFileCache.class.php on line 553

Warning: chmod() [function.chmod]: No such file or directory in /opt/symfony/symfony10/lib/cache/sfFileCache.class.php on line 559

Fatal error: Class 'sfDatabaseConfigHandler' not found in /root/workspace/UX_inPulseAd/cache/cm/dev/config/config_config_handlers.yml.php on line 25

Solved:
The permissions of the project files and directories can be broken if you use a checkout from an SVN repository. The project:permissions task fixes directory permissions, to change the log/ and cache/ permissions to 0777, for example (these directories need to be writable for the framework to work correctly).

http://www.symfony-project.org/book/1_2/16-Application-Management-Tools


symfony12 project:permissions


doesn't use symfony10 project:permissions
[pakeException]
Task "project:permissions" is not defined.

or use
chmod -R 777 cache/
3. Memcache
Notice: Memcache::connect() [memcache.connect]: Server localhost (tcp 11211, udp 0) failed with: Connection refused (111) in /root/workspace/PHPLIB_CommonAdapter/CommonAdapter/support/COM_MemcacheCache.php on line 30

comments out in config.xml
localhost
11211

4. CVS out of sync
Refresh the directory in eclipse

No comments:

Post a Comment