[symfony-users] sfPropelAuditPlugin does'nt work in my prod environment.
Hi all, This plugin works very well in my dev environment. But when I am in the prod environment, I got a blank page when I created, update or delete an object. The blank page contains no errors and no source . Here is my index.php and my app/frontend/config/settings.yml : Index.php : ?php define('SF_ROOT_DIR',realpath(dirname(__FILE__).'/..')); define('SF_APP', 'frontend'); define('SF_ENVIRONMENT', 'prod'); define('SF_DEBUG', false); require_once(SF_ROOT_DIR.DIRECTORY_SEPARATOR.'apps'.DIRECTORY_SEPARATOR.SF_APP.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'config.php'); sfContext::getInstance()-getController()-dispatch(); ? settings.yml: prod: .settings: no_script_name: off dev: .settings: # E_ALL | E_STRICT = 4095 error_reporting:4095 web_debug: on cache: off no_script_name: off etag: off #test: # .settings: ## E_ALL | E_STRICT ~E_NOTICE = 2047 #error_reporting:2047 #cache: off #web_debug: off #no_script_name: off #etag: off all: .settings: use_security: on enabled_modules:[default, sfGuardGroup, sfGuardUser, sfGuardPermission, sfGuardAuth, sfYUIPlugin, sfPropelAuditPlugin] standard_helpers: [Javascript, Partial, Cache, Form, ObjectAdminPersonal, Date, Object, I18N] i18n: on charset:utf-8 .actions: default_module: sfGuardAuth login_action: signin login_module: sfGuardAuth login_action: signin secure_module: sfGuardAuth secure_action: secure I don't find the way the resolve the problem. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: sfPropelAuditPlugin does'nt work in my prod environment.
re, Martin has open a new ticket this morning on this subject. I test it and the correction work fine ! Here : http://trac.symfony-project.com/trac/ticket/2275 On 21 sep, 09:01, Julien Levasseur [EMAIL PROTECTED] wrote: Hi all, This plugin works very well in my dev environment. But when I am in the prod environment, I got a blank page when I created, update or delete an object. The blank page contains no errors and no source . Here is my index.php and my app/frontend/config/settings.yml : Index.php : ?php define('SF_ROOT_DIR',realpath(dirname(__FILE__).'/..')); define('SF_APP', 'frontend'); define('SF_ENVIRONMENT', 'prod'); define('SF_DEBUG', false); require_once(SF_ROOT_DIR.DIRECTORY_SEPARATOR.'apps'.DIRECTORY_SEPARATOR.SF_APP.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'config.php'); sfContext::getInstance()-getController()-dispatch(); ? settings.yml: prod: .settings: no_script_name: off dev: .settings: # E_ALL | E_STRICT = 4095 error_reporting:4095 web_debug: on cache: off no_script_name: off etag: off #test: # .settings: ## E_ALL | E_STRICT ~E_NOTICE = 2047 #error_reporting:2047 #cache: off #web_debug: off #no_script_name: off #etag: off all: .settings: use_security: on enabled_modules:[default, sfGuardGroup, sfGuardUser, sfGuardPermission, sfGuardAuth, sfYUIPlugin, sfPropelAuditPlugin] standard_helpers: [Javascript, Partial, Cache, Form, ObjectAdminPersonal, Date, Object, I18N] i18n: on charset:utf-8 .actions: default_module: sfGuardAuth login_action: signin login_module: sfGuardAuth login_action: signin secure_module: sfGuardAuth secure_action: secure I don't find the way the resolve the problem. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Load session
Hi all, I have a GET parameter which contains a session id. I have to load this session. How to? I want to place php code before the session_start. How to? All php codes (filters by example) are processed after session_start. Thanks, Sébastien --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] object_admin_double_list helper and i18n
Greetings, Does anybody know how to handle i18n with an object_admin_double_list helper ? I get PK but I can't get associated values (called in the helper with a __toString() method). --- - My schema : product: _attributes: phpName: Product isI18N: true i18nTable: product_i18n id: type: INTEGER required: true autoIncrement: true primaryKey: true is_active: type: boolean _indexes: is_active: - is_active product_i18n: _attributes: phpName: ProductI18n title: type: VARCHAR size: 255 id: type: INTEGER required: true primaryKey: true foreignTable: product foreignReference: id onDelete: CASCADE culture: isCulture: true type: VARCHAR size: 7 required: true primaryKey: true category: _attributes: phpName: Category isI18N: true i18nTable: category_i18n id: type: INTEGER required: true autoIncrement: true primaryKey: true is_active: type: boolean ... _indexes: is_active: - is_active category_i18n: _attributes: phpName: CategoryI18n title: type: VARCHAR size: 255 ... id: type: INTEGER required: true primaryKey: true foreignTable: category foreignReference: id onDelete: CASCADE culture: isCulture: true type: VARCHAR size: 7 required: true primaryKey: true rel_category_product: _attributes: phpName: RelCategoryProduct category_id: type: INTEGER foreignTable: category foreignReference: id onDelete: CASCADE product_id: type: INTEGER foreignTable: product foreignReference: id onDelete: CASCADE _indexes: rel_category_product_FI_1: - category_id rel_category_product_FI_2: - product_id --- - in Category model : public function __toString() { return $this-getTitle(); } --- - in the template : ?php echo object_my_admin_double_list($product, 'getCategories', array ( 'control_name' = 'product[categories]', 'through_class' = 'RelCategoryProduct', )); ? --- - html output : div div style=float: left div style=font-weight: bold; padding-bottom: 0.5emNon associé/div select name=unassociated_categories[] id=unassociated_categories multiple=multiple class=sf_admin_multiple size=10option value=1/option option value=2/option option value=3/option option value=4/option option value=5/option option value=6/option option value=7/option option value=8/option option value=9/option option value=10/option option value=11/option option value=12/option option value=13/option /select /div div style=float: left input type=image name=commit src=/sf/sf_admin/images/ next.png style=border: 0 onclick=double_list_move($ ('unassociated_categories'), $('associated_categories')); return false; /br / input type=image name=commit src=/sf/sf_admin/images/ previous.png style=border: 0 onclick=double_list_move($ ('associated_categories'), $('unassociated_categories')); return false; / /div div style=float: left div style=font-weight: bold; padding-bottom: 0.5emAssocié/div select name=associated_categories[] id=associated_categories multiple=multiple class=sf_admin_multiple-selected size=10/select /div br style=clear: both / /div As you can see my labels options stays empty... Any idea ? thanks, Alex --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: After clearing cache, application always fail for the first time
Checking the php error log file reports: For Frontend: This named route already exists (homepage). For Backend: This named route already exists (search). And homepage and search are the very first routing rule defined. On Sep 17, 10:34 am, Tamcy [EMAIL PROTECTED] wrote: This morning the problem appears again suddenly, with the patched sfCompileConfigHandler and tokenizer enabled. I have to set memory limit to the old large value. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Simple diagramming?
The diagrams were originally made by myself on Visio, but APress had a professional graphic designer rework them, so I suppose the book version of the diagrams are made with Illustrator. Cheers, Francois 2007/9/21, Carl Vondrick [EMAIL PROTECTED]: On Thursday, September 20, 2007, Eno wrote: Maybe Fabien or Francois can tell us what sotware they used to make those simple block diagrams in the Caching chapter of the book? I need something to quickly make simple diagrams like that when working on a project. Hey, Checkout Dia: http://www.gnome.org/projects/dia/ -- Carl Vondrick [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: object_admin_double_list helper and i18n
Ok...Well... It is better by writing __toString like this : public function __toString() { $this-setCulture(sfContext::getInstance()-getUser()- getCulture()); return $this-getTitle(); } Now it works fine... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Load session
You can configure the session to not auto_start and start it by yourself when you're ready. Just change the factories.yml configuration and add a auto_start entry like this: all: storage: param: auto_start: false Fabien Sébastien CAS wrote: Hi all, I have a GET parameter which contains a session id. I have to load this session. How to? I want to place php code before the session_start. How to? All php codes (filters by example) are processed after session_start. Thanks, **Sébastien** --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Load session
Fabien POTENCIER wrote: You can configure the session to not auto_start and start it by yourself when you're ready. Just change the factories.yml configuration and add a auto_start entry like this: all: storage: param: auto_start: false BTW: Is there any reason to not disable the session layer entirely for all pake tasks? regards, Lukas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: sfSimpleBlog and symfony internal links
As of now, you can't - you have to write an absolute link. But we could imagine a special filter transforming some special markup into a link. Maybe it is time to have a look at Tristan's sfPayloadFilterChainPlugin and create an adapter for the sfSimpleBlogPlugin the same way as it has been done for sfSimpleForumPlugin. François 2007/9/19, Olivier Revollat [EMAIL PROTECTED]: Hello, i've installed sfSimpleBLogPlugin and I wonder how can I include symfony internal links in blog articles ... ?? Any ideas ? Thanks ;) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: sfJobQueuePlugin: managing job queues with Symfony
I make some improvements of your base code, how can I report it to you? maybe you are interested to include the improvements in your plugin code. Beste regards, Oriol On Sep 17, 6:43 pm, Xavier Lacot [EMAIL PROTECTED] wrote: Hello Symfony users, I just released one new plugin, that enables job queues into Symfony. It includes all the common job queues tasks (start, stop, scheduling through job election strategies, etc.), command line tasks, and a graphical interface for managing queues and jobs. Using a job queue can be useful when asynchronised server-side operations have to be performed (periodically grabbing a RSS feed, automatically sending emails, etc.) or in environments without a cron access. The plugin wiki page ishttp://trac.symfony-project.com/trac/wiki/sfJobQueuePlugin Feel free to post comments (and patches !). xavier -- Xavier Lacothttp://www.clever-age.com Clever Age - conseil en architecture technique Tél: +33 1 53 34 66 10 Fax: +33 1 53 34 65 20 Clever Age vous invite à ses petits-déjeunershttp://www.clever-age.com/actualites/petits-dejeuners/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Load session
I don't want to set false the auto_start parameter just for an occasional treatment. Is there any solution to execute php code before session starts? Thanks, Sébastien -Message d'origine- De : symfony-users@googlegroups.com [mailto:[EMAIL PROTECTED] De la part de Lukas Kahwe Smith Envoyé : vendredi 21 septembre 2007 14:40 À : symfony-users@googlegroups.com Objet : [symfony-users] Re: Load session Fabien POTENCIER wrote: You can configure the session to not auto_start and start it by yourself when you're ready. Just change the factories.yml configuration and add a auto_start entry like this: all: storage: param: auto_start: false BTW: Is there any reason to not disable the session layer entirely for all pake tasks? regards, Lukas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: View Layer Questions: Navigation Bar and Content Boxes
On Sep 20, 4:58 pm, [EMAIL PROTECTED] wrote: 2) I want to use 3 or 4 different Content Boxes, which will fill my default layout. In this Content Box i want to display the newest members or newest forum posts for example. For the newest members list i could use partials. But what should i use for the content boxes ? Components ? I want to choose which Content Box i would like to use for displaying the newest members (with a partial) in the View Layer or in the Action Model. Maybe Im just not seeing the problem? - you can make them all partials and make the view include whatever partials it needs to load inside the content box. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Forms API
Is there anything like the Drupal Forms API for symfony? For programmatically writing standards accessible forms? Thanks, Jack --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---