[symfony-users] Re: admin generator cache files disappearing?
The problem is autocleaning of cache folder.. which doesn't remove correctly. This happends once in 500 times by default Add following lines in class sfGeneratorManager $cacheParameters = array('automaticCleaningFactor' = 0); $this-cache-initialize($cacheParameters); like this public function initialize() { // create cache instance $this-cache = new sfFileCache(sfConfig::get('sf_module_cache_dir')); $cacheParameters = array('automaticCleaningFactor' = 0); $this-cache-initialize($cacheParameters); $this-cache-setSuffix(''); } Jacob Coby wrote: Xavier, No, the Articles module doesn't have any PHP in the generator.yml. On Jul 7, 2008, at 4:42 PM, Xavier GORSE wrote: Did you have PHP code in your generator.yml ? I have the same trouble , and I think it's about that not solutions yet , just clear the cache after each update Xavier Gorse On Jul 7, 9:12 pm, Jacob Coby [EMAIL PROTECTED] wrote: I've got a client with an odd problem with the admin generator - files are randomly disappearing. This is on symfony 1.0.17. [Tue Jun 24 13:43:07 2008] [error] [client 24.39.130.8] PHP Fatal error: require_once() [a href='function.require'function.require/ a]: Failed opening required '/var/www/site/cache/admin/prod/modules/ autoArticles/actions/actions.class.php' (include_path='/var/www/site/ lib:/var/www/site:/var/www/site/apps/admin/lib:/usr/share/pear/ symfony/ vendor:/usr/share/pear') in /var/www/site/cache/admin/prod/config/ modules_articles_config_generator.yml.php on line 4 Has anyone run across anything like this before? A symfony cc; symfony fix-perms; fixes the problem for a bit, only to reappear later. Thanks, -- Jacob Coby [EMAIL PROTECTED] -- Jacob Coby [EMAIL PROTECTED] -- Haris Zukanovic CEO Software development and research International Business Development, SOFTING ltd. office +387 36 318 339 GSM +387 61 839 069 http://www.eu-softing.com CONFIDENTIALITY NOTICE This e-mail and any attached files, sent by a company e - mail system, contains company confidential and/or privileged information and is intended only for the person or entity to which it is addressed and only for the purposes therein set forth. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure, distribution or other use of, or taking of any action in reliance upon, the material in this e-mail by persons or entities other than the intended recipient is strictly forbidden. --~--~-~--~~~---~--~~ 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: sfLucene is sbeing slow.
Any errors in your logs ? James wrote: I think I figured out part of the problem with. The index is defitely dying, but at 65000 indexes. Not sure how to get lucene to start rebuilding at 65001. James On Jun 26, 2008, at 11:26 PM, James wrote: Hi Everyone, We've had sfLucene working in our site for a while. We had basic search and indexing working and since have made some modification to allow indexing of tags and refinded search from a tag cloud. We have a couple problems that we are trying to resolve, and I am hoping you can point us in the right direction. 1) We have 1.4 million charity records in a table. When I run symfony lucene-rebuild-index via cronjob it gets to about 633000 records and stops indexing, and I am not sure how to debug this? Any thoughts? 2) Exact phrase searches. When we search for things like Babson College and Horizon's for Homeless Children first off the search is really show, second neither of these show up at the top of the search even thought they are typed word for word. Any thoughts would be much appreciated. Thanks, James -- Haris Zukanovic CEO Software development and research International Business Development, SOFTING ltd. office +387 36 318 339 GSM +387 61 839 069 http://www.eu-softing.com CONFIDENTIALITY NOTICE This e-mail and any attached files, sent by a company e - mail system, contains company confidential and/or privileged information and is intended only for the person or entity to which it is addressed and only for the purposes therein set forth. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure, distribution or other use of, or taking of any action in reliance upon, the material in this e-mail by persons or entities other than the intended recipient is strictly forbidden. --~--~-~--~~~---~--~~ 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: Credentials for fields and validation
I think that action is never reached when there are validation errors. There may be other places where to insert such a hack :) Ian P. Christian wrote: Haris Zukanovic' wrote: If anyone from symfony team would confirm this to be right conclusion maybe we can discuss on where to solve it. The problem is that validation for required is done way ahead of even knowing if the operation is create or edit (or in other words if the propel_object-isNew() ) In a very hack-ish kinda way, you could override a function in your actions class that conditionally removes the errors from the request. I've done this before in the past, I'm almost certain it will work :) --~--~-~--~~~---~--~~ 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] Measuring memory usage how?
Is there a way to track a leak or even legitimate allocations of a lot of memory in a symfony application ? I am having trouble with memory consumption when generating cache for admin generator and I can't figure what is using so much memory TIA --~--~-~--~~~---~--~~ 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: Is there any way to terminate an action in preExecute?
Can you set a flag in form of a member var and then exit the action in it's executeAction() Balaji Srinivasan wrote: Hi there I am trying to terminate an action in preExecute. I tried returning sfView::NONE from it but it didnt work. Basically I want to check a condition. If that condition is not met, I want to render a text block into the response and then terminate the action. But right now even after returning sfView::NONE it still goes to execute the action. Is there any way of terminating the action without having to throw an exception or redirecting/forwarding to another URL? Thanks Balaji --~--~-~--~~~---~--~~ 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: Going away from credentials in generator.yml's
Well, ymls can be read and written easily with sfYaml::load($path_to_file); and written with sfYaml::dump($yaml_array_of_data); But I am looking after a way of storing all credential info in the db Lee Bolding wrote: You could have easily done this if the sfYaml class had functions to WRITE yaml. This is something I've considered whilst looking at extending the sfSimpleBlog plugin - creating a YAML config file for each blog, rather than storing the config for each blog in a DB. Otherwise, you could maybe do something with embedding PHP inside of your generator.yml's -Original Message- From: symfony-users@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Haris Zukanovic Sent: 11 December 2007 10:47 To: symfony-users@googlegroups.com Subject: [symfony-users] Going away from credentials in generator.yml's I wish to go away from having credentials staticaly stored inside generator.yml's for each module.. This makes it difficult for me to update yml's while at the same time preserving credentials which are dynamicaly altered on production site. Has anyone done this ? Thanx for any suggestions on how to go about it... regards -- Haris Zukanovic CEO Software development and research International Business Development, SOFTING ltd. office +387 36 318 339 GSM +387 61 839 069 http://www.eu-softing.com CONFIDENTIALITY NOTICE This e-mail and any attached files, sent by a company e - mail system, contains company confidential and/or privileged information and is intended only for the person or entity to which it is addressed and only for the purposes therein set forth. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure, distribution or other use of, or taking of any action in reliance upon, the material in this e-mail by persons or entities other than the intended recipient is strictly forbidden. --~--~-~--~~~---~--~~ 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: Going away from credentials in generator.yml's
Yes I can, but that would not the only place where I need to modify since we use admin generator for backend. Admin generator theme is full of references to credentials inside ymls. If I make changes these I loose updates that come with symfony evolution Alistair Stead wrote: Can you identify the point in the action stack where the current modules credentials are loaded from the settings cache. The override that function with your own DB query to establish the credentials set for that module? Alistair On 11/12/2007, *Haris Zukanovic'* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Well, ymls can be read and written easily with sfYaml::load($path_to_file); and written with sfYaml::dump($yaml_array_of_data); But I am looking after a way of storing all credential info in the db Lee Bolding wrote: You could have easily done this if the sfYaml class had functions to WRITE yaml. This is something I've considered whilst looking at extending the sfSimpleBlog plugin - creating a YAML config file for each blog, rather than storing the config for each blog in a DB. Otherwise, you could maybe do something with embedding PHP inside of your generator.yml's -Original Message- From: symfony-users@googlegroups.com mailto:symfony-users@googlegroups.com [mailto:symfony-users@googlegroups.com mailto:symfony-users@googlegroups.com] On Behalf Of Haris Zukanovic Sent: 11 December 2007 10:47 To: symfony-users@googlegroups.com mailto:symfony-users@googlegroups.com Subject: [symfony-users] Going away from credentials in generator.yml's I wish to go away from having credentials staticaly stored inside generator.yml 's for each module.. This makes it difficult for me to update yml's while at the same time preserving credentials which are dynamicaly altered on production site. Has anyone done this ? Thanx for any suggestions on how to go about it... regards -- Haris Zukanovic CEO Software development and research International Business Development, SOFTING ltd. office +387 36 318 339 GSM +387 61 839 069 http://www.eu-softing.com CONFIDENTIALITY NOTICE This e-mail and any attached files, sent by a company e - mail system, contains company confidential and/or privileged information and is intended only for the person or entity to which it is addressed and only for the purposes therein set forth. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure, distribution or other use of, or taking of any action in reliance upon, the material in this e-mail by persons or entities other than the intended recipient is strictly forbidden. -- Haris Zukanovic CEO Software development and research International Business Development, SOFTING ltd. office +387 36 318 339 GSM +387 61 839 069 http://www.eu-softing.com CONFIDENTIALITY NOTICE This e-mail and any attached files, sent by a company e - mail system, contains company confidential and/or privileged information and is intended only for the person or entity to which it is addressed and only for the purposes therein set forth. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure, distribution or other use of, or taking of any action in reliance upon, the material in this e-mail by persons or entities other than the intended recipient is strictly forbidden. --~--~-~--~~~---~--~~ 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: Conditions object_actions in admin generator
I think you will have to modify the admin generator theme.. _list_actions.php I think ... Georg Sorst wrote: Hey list! I am currently looking for a way make the object_actions of the admin generator conditional so that they are only displayed when the object in that row matches a certain condition. In my case this condition is a flag saying whether the user wants to be notified of changes to this object. So when this flag is set there should be a do not notify anymore-button and when it is not set there should obviously be a please notify-button. Of course the state of this flag can be different for each row / object. Extending the object with a suitable getter that returns the status of this flag is no problem. However looking at the documentation and the source code I haven't found any way to tell the generator.yml that it should only display an object_action if a condition is true. I have also found this question a number of times on the web however it was never answered. So, is this possible with the current admin generator or will I have to extend it? The change is probably rather small but I'd feel much safer sticking with the vanilla admin generator :) Cheers and thanks, Georg --~--~-~--~~~---~--~~ 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: Cache files - deletion where?
No, not yet but I have so much problems with this that I am willing to invest hours in solving it.. I think it might be a race condition type problem, but I have difficulties in figuring jout how exactly it is solved in the first place. How is it ensured that files in cache get deleted in one transaction? If I understand the code correctly: If there the module.yml for the module in action is allready compiled the generator.yml will not be handled (regenerated) even if the actions and template files are missing. I am trying to figure out if cache parameters like automaticCleaningFactor and other might ne the trigger for the inconsistencies that we are having with cache Ian P. Christian wrote: Haris Zukanovic' wrote: I apologize, for not being precise.. I was refering to where inside the symfony code does symfony do the cache regeneration? I wish to trace these thing because I am having big problems with inconsistent cache fron time to time, rendering my symfony site unusable This is a long standing problem in symfony, that has never been tracked down - have you found a consistent way of causing this problem? -- Haris Zukanovic CEO Software development and research International Business Development, SOFTING ltd. office +387 36 318 339 GSM +387 61 839 069 http://www.eu-softing.com CONFIDENTIALITY NOTICE This e-mail and any attached files, sent by a company e - mail system, contains company confidential and/or privileged information and is intended only for the person or entity to which it is addressed and only for the purposes therein set forth. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure, distribution or other use of, or taking of any action in reliance upon, the material in this e-mail by persons or entities other than the intended recipient is strictly forbidden. --~--~-~--~~~---~--~~ 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: Cache files - deletion where?
Hi Ian, Fabien.. I have found the bug regarding cache inconsistency using admin generator. Let's think together about the right solution as I really do not think I know enough about the internals of symfony. As I see it, it might just be a misconfiguration of cache when instantiated for admin-generator or an unforeseen sideeffect of automaticCleaningFactor + lifeTime cache configuration options.. I have managed to reproduce this error using the Zend debugger. This is what happens: 1. Cache for admin generator is created for each module the first time any of it's actions is called. 2. When sfGeneratorManager initiates, it instantiates a sfFileCache without any options, which means that default value of 500 is taken for automaticCleaningFactor class sfGeneratorManager { protected $cache = null; /** * Initializes the sfGeneratorManager instance. */ public function initialize() { // create cache instance $this-cache = new sfFileCache(sfConfig::get('sf_module_cache_dir')); $this-cache-setSuffix(''); } 3. sfGenerator.php writes cache files using sfFileCache instantiated with automaticCleaningFactor = 500 /** * Generates PHP files for a given module name. * * @param string The name of module name to generate * @param array A list of template files to generate * @param array A list of configuration files to generate */ protected function generatePhpFiles($generatedModuleName, $templateFiles = array(), $configFiles = array()) { // eval actions file $retval = $this-evalTemplate('actions/actions.class.php'); // save actions class $this-getGeneratorManager()-getCache()-set('actions.class.php', $generatedModuleName.DIRECTORY_SEPARATOR.'actions', $retval); // generate template files foreach ($templateFiles as $template) { // eval template file $retval = $this-evalTemplate('templates/'.$template); // save template file $this-getGeneratorManager()-getCache()-set($template, $generatedModuleName.DIRECTORY_SEPARATOR.'templates', $retval); } // generate config files foreach ($configFiles as $config) { // eval config file $retval = $this-evalTemplate('config/'.$config); // save config file $this-getGeneratorManager()-getCache()-set($config, $generatedModuleName.DIRECTORY_SEPARATOR.'config', $retval); } } 4. inside the set() function of sfFileCache there is code that every 500th time clears the cache directory of old files which are old when older than lifeTime which in this case also has defaulted to 86400 seconds 5. Conclusion: Lets say we have 2 modules, 1 and 2. We start from a symfony clear-cache! If I call any action in module 1 (and thus it's cache is generated) 1 day before the first time I call any action in module 2, so module 2 generates it's cache 1 day after the module 1. In this case there is 1 in 500 chance that cache generation of the module 2 will erase the old files which belong to the module 1 which has been generated more than 1 day ago. Once the actions file of admin-generated cache is missing it will never be regenerated again because the module.yml file is still in the cache. So the temporary solution for this was to clear the whole cache. Since our app has a lot of modules this has occured very often recently. Any sugestions on how to fix this?! A quick fix for me would be to initiate the sfFileCache inside sfGeneratorManager with automaticCleaningFactor = 0 :) What do you think the right solution would be? regards Haris Ian P. Christian wrote: Haris Zukanovic' wrote: I apologize, for not being precise.. I was refering to where inside the symfony code does symfony do the cache regeneration? I wish to trace these thing because I am having big problems with inconsistent cache fron time to time, rendering my symfony site unusable This is a long standing problem in symfony, that has never been tracked down - have you found a consistent way of causing this problem? -- Haris Zukanovic CEO Software development and research International Business Development, SOFTING ltd. office +387 36 318 339 GSM +387 61 839 069 http://www.eu-softing.com CONFIDENTIALITY NOTICE This e-mail and any attached files, sent by a company e - mail system, contains company confidential and/or privileged information and is intended only for the person or entity to which it is addressed and only for the purposes therein set forth. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure, distribution or other use of, or taking of any action in reliance upon, the material in this e-mail by persons or entities other than the intended recipient is strictly forbidden. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups
[symfony-users] Re: Cache files - deletion where?
I am not sure about the rest of the system.. The keys to it's manifestation are that different files inside the cache are generated at different times and the automaticCleaningFactor + lifeTime options are used on the entire directory tree containing the admin-generated files. Whenever adding a new file to the cache others might get deleted is too old. And if they are not regenerated then you have an inconsistent cache state :( In fact if we have such a situation elsewhere the same bug would potentially manifest itself. sfFileCache is used in many places I think. So finally yes, I would guess this bug might be connected to other cache related problems, but I think we should wait for Fabien or someone else involved deeper with the project to give us their opinions What do you cache in your app? I am not sure if it Ian P. Christian wrote: Haris Zukanovic' wrote: Hi Ian, Fabien.. I have found the bug regarding cache inconsistency using admin generator. Let's think together about the right solution as I really do not think I know enough about the internals of symfony. As I see it, it might just be a misconfiguration of cache when instantiated for admin-generator or an unforeseen sideeffect of automaticCleaningFactor + lifeTime cache configuration options.. Its great that you've found this - but Does this problem exist elsewhere in the cache system? I ask because I've seen my cache corrupted many times, and I don't use the generator :) -- Haris Zukanovic CEO Software development and research International Business Development, SOFTING ltd. office +387 36 318 339 GSM +387 61 839 069 http://www.eu-softing.com CONFIDENTIALITY NOTICE This e-mail and any attached files, sent by a company e - mail system, contains company confidential and/or privileged information and is intended only for the person or entity to which it is addressed and only for the purposes therein set forth. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure, distribution or other use of, or taking of any action in reliance upon, the material in this e-mail by persons or entities other than the intended recipient is strictly forbidden. --~--~-~--~~~---~--~~ 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: Cache misteriously deleted
To be sincere, I can't imagine PHP being the source of the problem. Can anyone hypothesize on how it could be related to PHP? Ian P. Christian wrote: Ian P. Christian wrote: I need to get in touch with my former employer, but I think this is happening on a 5.2.2 install confirmed - issue exists with PHP 5.2.2. -- Haris Zukanovic CEO Software development and research International Business Development, SOFTING ltd. office +387 36 318 339 GSM +387 61 839 069 http://www.eu-softing.com CONFIDENTIALITY NOTICE This e-mail and any attached files, sent by a company e - mail system, contains company confidential and/or privileged information and is intended only for the person or entity to which it is addressed and only for the purposes therein set forth. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure, distribution or other use of, or taking of any action in reliance upon, the material in this e-mail by persons or entities other than the intended recipient is strictly forbidden. --~--~-~--~~~---~--~~ 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: Same session for All subdomains
Nope! I had to inherit from sfSessionStorage to make it work.. Also, I just couldn't get it to work with domain limitations in that Explorer seems to send the cookies of the main domain to all subdomains. So I had to use a subdomain-based session name Here is the code bit, at the end it came out pretty simple, but I used hours trying to get it to work with domain limiting the cookies class mySessionStorage extends sfSessionStorage { /** * This override sets the exact (sub)domain for session cookie and then initializes this Storage instance. * * @param sfContext A sfContext instance * @param array An associative array of initialization parameters * * @return boolean true, if initialization completes successfully, otherwise false * * @throws bsfInitializationException/b If an error occurs while initializing this Storage */ public function initialize($context, $parameters = null) { //$parameters['session_cookie_domain'] = $_SERVER['SERVER_NAME']; // This doesn't work $parameters['session_name'] = 'symfony_'.$_SERVER['SERVER_NAME']; // This works // initialize parent parent::initialize($context, $parameters); } } Ian P. Christian wrote: Haris Zukanovic' wrote: I know, but I want to have different sessions for each subdomain! I have more subdomains poining at the same application. I imagine you can probably change this on a per domain basis using a Filter. -- Haris Zukanovic CEO Software development and research International Business Development, SOFTING ltd. office +387 36 318 339 GSM +387 61 839 069 http://www.eu-softing.com CONFIDENTIALITY NOTICE This e-mail and any attached files, sent by a company e - mail system, contains company confidential and/or privileged information and is intended only for the person or entity to which it is addressed and only for the purposes therein set forth. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure, distribution or other use of, or taking of any action in reliance upon, the material in this e-mail by persons or entities other than the intended recipient is strictly forbidden. --~--~-~--~~~---~--~~ 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: Same session for All subdomains
Hi, I have not setup any params for sfSessionStorage in factories.yml and when using Internet Explorer 6 is using the same session for following domains test.website.com nr1.test.website.com nr2.test.website.com In firefox, the sessions are different for each of the domains? Why is this? I need different sessions for each subdomain TIA Haris Francois Zaninotto wrote: Muhammad, Take a look at this post: http://groups.google.com/group/symfony-users/msg/e8b39c394458acb7 Francois *De :* symfony-users@googlegroups.com [mailto:[EMAIL PROTECTED] *De la part de* Muhammad Asif Ali *Envoyé :* jeudi 3 mai 2007 10:27 *À :* symfony-users *Objet :* [symfony-users] Same session for All subdomains Hi All, I am using wild card DNS. every register user will get his own subdomain. The session is different for each subdmain. How can i make the common session to all the subdomains . Thanks in advance :o) Regards Muhammad Asif Ali -- Haris Zukanovic CEO Software development and research International Business Development, SOFTING ltd. office +387 36 318 339 GSM +387 61 839 069 http://www.eu-softing.com CONFIDENTIALITY NOTICE This e-mail and any attached files, sent by a company e - mail system, contains company confidential and/or privileged information and is intended only for the person or entity to which it is addressed and only for the purposes therein set forth. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure, distribution or other use of, or taking of any action in reliance upon, the material in this e-mail by persons or entities other than the intended recipient is strictly forbidden. --~--~-~--~~~---~--~~ 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: Same session for All subdomains
Comments bellow .. Eno wrote: On Oct 2, 6:20 am, Haris Zukanovic' [EMAIL PROTECTED] wrote: I have not setup any params for sfSessionStorage in factories.yml and when using Internet Explorer 6 is using the same session for following domains test.website.com nr1.test.website.com nr2.test.website.com In firefox, the sessions are different for each of the domains? Why is this? It shouldn't be if you set the cookie name to use a wildcard for the domain in factories.yml, i.e. session_name: sitename session_cookie_domain: .example.com I know, but I want to have different sessions for each subdomain! I have more subdomains poining at the same application. Firefox is acting as I expect. But Explorer is not. It is sending the same session cookies to all subdomains --~--~-~--~~~---~--~~ 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] Google Analytics PHP Api
Hi ppl, Has anybody been working with this ? Anygood? I was thinking about a plugin for this kind of funcionality, what do you think http://googling.phpmagazine.net/2007/01/google_analytics_php_api.html --~--~-~--~~~---~--~~ 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
What was your large mem limit again? Tamcy 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. On Sep 14, 11:06 am, Tamcy [EMAIL PROTECTED] wrote: Hi all, I'm sorry that I'm not able to help because my system admin had rebuilt the php yesterday and seems he enabled tokenizer support in this build, so even the unpatched code works. What an coincidence. Tamcy On Sep 13, 3:29 pm, noel guilbert [EMAIL PROTECTED] wrote: Hi, Fabien had just committed a patch (http://trac.symfony-project.com/trac/changeset/5061), related to a similar issue discussed in the forum (http://www.symfony-project.com/forum/index.php/t/4167/ ). Please, can you try it and tell us if it fixes the problem? If you don't use the /branches/1.0/ subversion repository, you can change the sfCompileConfigHandler.class.php by this one here:http://trac.symfony-project.com/trac/browser/branches/1.0/li b/config/sfCompileConfigHandler.class.php?format=txt http://trac.symfony-project.com/trac/browser/branches/1.0/lib/config/... On 9/11/07, Haris Zukanovic' [EMAIL PROTECTED] wrote: What is the recommended mem size? Tamcy wrote: Dustin, Thank you very much. Disable strip_comments doesn't help, but increasing memory limit solves the problem :) Tamcy On Sep 7, 11:57 pm, Dustin Whittle [EMAIL PROTECTED] project.com [EMAIL PROTECTED] wrote: Tamcy, Increase memory limit or disable strip_comments in settings.yml , this issue is being worked on. - Dustin On 9/7/07 1:33 PM, Tamcy [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I found my Linux server always emitting a 500 internal server error (symfony decorated one) at the first request after clearing symfony cache (symfony cc), and goes away at the second. There isn't any significant problem, but this glitch doesn't make me feel good. This doesn't happen on my development machine, which makes me difficult to trace it out. There may be some hints - the error occurs on controllers with SF_DEBUG set to false. Another hint is, this is a symfony 1.0 application migrated from 0.6 long time ago. Any suggestion on what may cause this happening? Thanks in advance. Tamcy -- Haris Zukanovic CEO Software development and research International Business Development, SOFTING ltd. office +387 36 318 339 GSM +387 61 839 069 http://www.eu-softing.com CONFIDENTIALITY NOTICE This e-mail and any attached files, sent by a company e - mail system, contains company confidential and/or privileged information and is intended only for the person or entity to which it is addressed and only for the purposes therein set forth. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure, distribution or other use of, or taking of any action in reliance upon, the material in this e-mail by persons or entities other than the intended recipient is strictly forbidden. -- Noel --~--~-~--~~~---~--~~ 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
Is this patch related to occasionaly corrupted cache when using admin generator? Tamcy wrote: Hi all, I'm sorry that I'm not able to help because my system admin had rebuilt the php yesterday and seems he enabled tokenizer support in this build, so even the unpatched code works. What an coincidence. Tamcy On Sep 13, 3:29 pm, noel guilbert [EMAIL PROTECTED] wrote: Hi, Fabien had just committed a patch (http://trac.symfony-project.com/trac/changeset/5061), related to a similar issue discussed in the forum (http://www.symfony-project.com/forum/index.php/t/4167/ ). Please, can you try it and tell us if it fixes the problem? If you don't use the /branches/1.0/ subversion repository, you can change the sfCompileConfigHandler.class.php by this one here:http://trac.symfony-project.com/trac/browser/branches/1.0/li b/config/sfCompileConfigHandler.class.php?format=txt http://trac.symfony-project.com/trac/browser/branches/1.0/lib/config/... On 9/11/07, Haris Zukanovic' [EMAIL PROTECTED] wrote: What is the recommended mem size? Tamcy wrote: Dustin, Thank you very much. Disable strip_comments doesn't help, but increasing memory limit solves the problem :) Tamcy On Sep 7, 11:57 pm, Dustin Whittle [EMAIL PROTECTED] project.com [EMAIL PROTECTED] wrote: Tamcy, Increase memory limit or disable strip_comments in settings.yml , this issue is being worked on. - Dustin On 9/7/07 1:33 PM, Tamcy [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I found my Linux server always emitting a 500 internal server error (symfony decorated one) at the first request after clearing symfony cache (symfony cc), and goes away at the second. There isn't any significant problem, but this glitch doesn't make me feel good. This doesn't happen on my development machine, which makes me difficult to trace it out. There may be some hints - the error occurs on controllers with SF_DEBUG set to false. Another hint is, this is a symfony 1.0 application migrated from 0.6 long time ago. Any suggestion on what may cause this happening? Thanks in advance. Tamcy -- Haris Zukanovic CEO Software development and research International Business Development, SOFTING ltd. office +387 36 318 339 GSM +387 61 839 069 http://www.eu-softing.com CONFIDENTIALITY NOTICE This e-mail and any attached files, sent by a company e - mail system, contains company confidential and/or privileged information and is intended only for the person or entity to which it is addressed and only for the purposes therein set forth. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure, distribution or other use of, or taking of any action in reliance upon, the material in this e-mail by persons or entities other than the intended recipient is strictly forbidden. -- Noel -- Haris Zukanovic CEO Software development and research International Business Development, SOFTING ltd. office +387 36 318 339 GSM +387 61 839 069 http://www.eu-softing.com CONFIDENTIALITY NOTICE This e-mail and any attached files, sent by a company e - mail system, contains company confidential and/or privileged information and is intended only for the person or entity to which it is addressed and only for the purposes therein set forth. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure, distribution or other use of, or taking of any action in reliance upon, the material in this e-mail by persons or entities other than the intended recipient is strictly forbidden. --~--~-~--~~~---~--~~ 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
What is the recommended mem size? Tamcy wrote: Dustin, Thank you very much. Disable strip_comments doesn't help, but increasing memory limit solves the problem :) Tamcy On Sep 7, 11:57 pm, Dustin Whittle [EMAIL PROTECTED] project.com wrote: Tamcy, Increase memory limit or disable strip_comments in settings.yml , this issue is being worked on. - Dustin On 9/7/07 1:33 PM, Tamcy [EMAIL PROTECTED] wrote: Hi, I found my Linux server always emitting a 500 internal server error (symfony decorated one) at the first request after clearing symfony cache (symfony cc), and goes away at the second. There isn't any significant problem, but this glitch doesn't make me feel good. This doesn't happen on my development machine, which makes me difficult to trace it out. There may be some hints - the error occurs on controllers with SF_DEBUG set to false. Another hint is, this is a symfony 1.0 application migrated from 0.6 long time ago. Any suggestion on what may cause this happening? Thanks in advance. Tamcy -- Haris Zukanovic CEO Software development and research International Business Development, SOFTING ltd. office +387 36 318 339 GSM +387 61 839 069 http://www.eu-softing.com CONFIDENTIALITY NOTICE This e-mail and any attached files, sent by a company e - mail system, contains company confidential and/or privileged information and is intended only for the person or entity to which it is addressed and only for the purposes therein set forth. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure, distribution or other use of, or taking of any action in reliance upon, the material in this e-mail by persons or entities other than the intended recipient is strictly forbidden. --~--~-~--~~~---~--~~ 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: New Symfony Facebook Application
Is this really made with symfony? Mat wrote: Hi everyone, Firstly thankyou for all the support everyone has given me, both in the google group and on #symfony. I finally just released my first symfony website/application, Sponsor-Me. You can find it at http://apps.facebook.com/sponsor-me/ I have to say it has been fantastic to develop with symfony and would have been impossible without such a flexible framework! Thanks Guys. Any positive or negative comments are most welcome, and I would highly appreciate any feedback people can give. Thanks, Mat --~--~-~--~~~---~--~~ 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: New Symfony Facebook Application
I can't be sure... Just a feeling... can be 100% wrong Mat wrote: Yes entirely :) Out of interest what made you think it wasn't? Mat -Original Message- From: Haris Zukanovic' [mailto:[EMAIL PROTECTED] Sent: 05 August 2007 21:10 To: symfony-users@googlegroups.com Subject: [symfony-users] Re: New Symfony Facebook Application Is this really made with symfony? Mat wrote: Hi everyone, Firstly thankyou for all the support everyone has given me, both in the google group and on #symfony. I finally just released my first symfony website/application, Sponsor-Me. You can find it at http://apps.facebook.com/sponsor-me/ I have to say it has been fantastic to develop with symfony and would have been impossible without such a flexible framework! Thanks Guys. Any positive or negative comments are most welcome, and I would highly appreciate any feedback people can give. Thanks, Mat --~--~-~--~~~---~--~~ 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: Integer defaults to 0 in admin generator - How to change?
Is 0 the default value for the field in your database ? Daniel Staver wrote: When I leave an integer field blank in a form generated by the admin generator the actual value stored in the database is 0. However, this breaks validation with the sfNumberValidator as the permitted values for this particular field is a nubmer between 1960-2020 if a number is entered. Is there a way to change this so that it doesn't try to store the value 0 when the field is actually blank? If I try to create this object directly with propel it's stored as expected, I only run into the problem when I save through the admin generator. -- Haris Zukanovic CEO Software development and research International Business Development, SOFTING ltd. office +387 36 318 339 GSM +387 61 839 069 http://www.eu-softing.com CONFIDENTIALITY NOTICE This e-mail and any attached files, sent by a company e - mail system, contains company confidential and/or privileged information and is intended only for the person or entity to which it is addressed and only for the purposes therein set forth. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure, distribution or other use of, or taking of any action in reliance upon, the material in this e-mail by persons or entities other than the intended recipient is strictly forbidden. --~--~-~--~~~---~--~~ 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: Disabling default module
I hve also tried to disable the default module since my layout.php consists of components only. No need for calling an module/action by default. But I was also unsuccessfull like Alexander Stefan Koopmanschap wrote: Hi, Tried accessing the default module through the _dev version of your site? That will tell you which exception happens. There's a fair chance though that you get the exception because the 404 handling (IIRC) goes through the default module, unless you've created your own 404 handling. So it should give a 404 but the module handling the 404 is gone, resulting in a 500. keep in mind, I'm just thinking out loud here, I'm not entirely sure this is it, but this may just be it. Stefan On Jul 25, 4:45 pm, Alexander Deruwe [EMAIL PROTECTED] wrote: Hey everyone, After disabling the default module, when trying to access it I get an exception 'default module not enabled' - on production this goes to a symfony error 500 page. Why does this not just cause a 404? I think I can change the error 500 page by updating web/error500.php, but that's beside the point - I've disabled the default module to get rid of it, not to get exceptions about it being disabled. Is there any way around this? Cheers, Alexander --~--~-~--~~~---~--~~ 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: how to automatically trim form parameters ?
Maybe you are thinking about a solution in form of an excution filter to be applied automaticaly to all fields scube wrote: better use trim() On Jul 10, 11:16 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hadrien Boyé schrieb: Is there a simple way to trim (on the server side) every field content typed by the user in a form ? like this? foreach($this-getRequest()-getParameterHolder()-getAll() as $key = $value) { $newvalue = ltrim($value, _); } -- /jonas -- Haris Zukanovic CEO Software development and research International Business Development, SOFTING ltd. office +387 36 318 339 GSM +387 61 839 069 http://www.eu-softing.com CONFIDENTIALITY NOTICE This e-mail and any attached files, sent by a company e - mail system, contains company confidential and/or privileged information and is intended only for the person or entity to which it is addressed and only for the purposes therein set forth. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure, distribution or other use of, or taking of any action in reliance upon, the material in this e-mail by persons or entities other than the intended recipient is strictly forbidden. --~--~-~--~~~---~--~~ 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] Workig with admin generator templates
How can I make it regenerate the cache on each call without having to clear the cache? TIA --~--~-~--~~~---~--~~ 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: Workig with admin generator templates
No, I do wish to generate cache, this is what admin generator does. But I wish to regenerate it each time the action is called because I make changes to admin generator theme. When I make a chenge I must do a clear cache before changes are reflected in the cached code Alexander Deruwe wrote: On 26 Jun 2007, at 16:22, Haris Zukanovic' wrote: How can I make it regenerate the cache on each call without having to clear the cache? I may be totally misreading you, but what you are asking seems to be how things work when caching is turned off... Alexander --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---