I recently started using the excellent ComwaysFormExtraBundle and discovered
today after coming back from a short vacation that it's apparently been
deleted from Github. Does anyone know if there are plans to add some of the
form extensions found in this bundle to another bundle or if
Oops. It looks like it's just moved and will probably be getting renamed...
https://github.com/simplethings/FormExtraBundle
Ok, done panicking now. ;)
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message
Very cool indeed! :D I currently use Netbeans for development (mainly for
the Twig plugin and better UI) but a Symfony2 plugin for Eclipse may get me
to switch back to using that. I'm watching this as well.
Thank you!
--
If you want to report a vulnerability issue on symfony, please send it
The good news is that this is a known issue:
https://github.com/symfony/symfony/issues/1051
https://github.com/symfony/symfony/issues/1115
The bad news is it isn't fixed yet. What I've done as a temporary solution
is I manually render all of my hidden fields and just avoid using
form_rest()
Which version of Swiftmailer are you using?
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to
Which version of Symfony2 are you using?
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to
Hi Matt,
For some reason your post just showed up. I didn't mean to ignore you. The
problem in my first post definitely went away by disabling
JMSSecurityExtraBundle but a related problem just showed up to replace it.
It was definitely an issue with Doctrine Common not being updated. I'm not
It looks like this has been fixed (don't think it's been merged yet):
https://github.com/symfony/symfony/issues/1081
Thanks for fixing this so quickly, Fabien! :)
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this
If you want to ensure that table names remain constant in Windows and Linux
and not have to worry about the case of table names (e.g., you develop on a
Windows machine but your production server runs Linux), you can set
lower_case_table_names to 1 in the global my.cnf config file (Linux):
I'm not having a problem with form_rest not rendering repeated fields but I
am having an issue with it. If I manually render a form and then call
form_rest, the entire form is output again despite the fact that I've
already manually rendered it. And since this is how you manually render the
I just recently updated to the latest master of Symfony2 and now I'm getting
the above exception error. I've made sure to update my entities to match the
new way that annotations work but I'm still having problems. I'm sure it's
probably something simple but I'm having difficulty tracking it
Yeah, I'm using the latest master from Github. I've run the latest version
of vendors.php too. I'm going to try wiping all of the vendors and then try
adding them again.
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received
Well, it looks like the error means exactly what it says it means. There
really isn't such a class called FileCacheReader as part of Doctrine Common.
The only classes that exist in that namespace are Annotation,
AnnotationException, AnnotationReader, Lexer, and Parser. FileCacheReader
doesn't
I thought of that but it worked before the recent update to annotations.
@Assert\True works with the True constraint that comes with Symfony2. It
looks like Doctrine is trying to parse all annotations regardless of whether
they're relevant to Doctrine. Unless @Assert\True is built into
I think isGranted() requires that there be an entry for the object in the
database for it to work properly. Otherwise how would it know whether
someone has the right permissions to access the object? I'm pretty sure that
what you have there will always fail since there isn't an entry in the
In that case, that's probably the problem right there. The schema metadata
files have been renamed for beta2 and the latest version of UserBundle has
been updated accordingly. Not only have the files been renamed, but their
location has changed as well. So the mapping for the base User entity
I've fixed this. Basically, it was a security context issue. In case someone
runs into a similar problem, here is the problem and my solution.
A Twig_Error_Runtime exception was getting thrown due to there not being an
authentication token set. This gets triggered when attempting to render my
While I'm spamming my own thread (sorry about that...), is there a way to
alter my firewall configuration so that exceptions are included in same
security context as the rest of my site? The problem is that if a user is
logged in and an exception is thrown, it appears to log them out due to the
That's perfect! Thanks. :D
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to
This probably isn't incredibly new behavior but I just recently updated to
the latest master of Symfony2 and I noticed that NotFoundHttpException is no
longer caught when it's thrown unless I use the dev environment.. I just get
a blank white page instead. I've tried to keep up with the changes
I'm using the current master branch. Until I added the init() function found
in the SE to my AppKernel class, the raw PHP error was being displayed
instead of the exception being intercepted, which is rather troubling in a
production environment. I've made certain to clear my cache, rebuild my
It looks like the MethodNotAllowedException (I think that's the name) is
affected as well. If I try to access a route that requires the method to be
POST via the GET method, I just get a blank white page. If I enable error
handling, a raw PHP error message is displayed saying that the exception
Does your User entity extend the User entity that comes with the UserBundle?
Also, have you configured UserBundle to use your User entity in config.yml?
fos_user:
db_driver: orm
firewall_name: main
class:
model:
user: CFP\Bundle\MyBundle\Entity\User
--
If you
Ok, I guess the other questions I'd ask are: which version of Symfony2 are
you using and which version of UserBundle are you using? Are both completely
up-to-date? From the configuration you posted on Stackoverflow it looks like
you're probably using a fairly recent version of each but it can't
I finally fixed this. I can't believe it took me half a week to solve this
but it was simply a matter of Doctrine being unable to convert a date string
to a DateTime object. That's it. I have no idea why this error wasn't
showing up in custom PHP error functions or why PDO wouldn't at least
I've been looking for a way to do something similar. I want to highlight a
menu item if the user is in a particular category on the site. I use the
Knplabs MenuBundle for menus on my site but it uses the full URL for
checking to see if it should highlight a particular menu item. Without
adding
Speaking of roles, is there a way to update the list of roles a user has in
the token after a user has logged in? For example, lets say a user is given
a ROLE_MEMBER role after subscribing to a portion of a website. The user is
updated and persisted in a database.
However, the list of roles
Interestingly, the following code works without trouble:
public function saveSubscription(SubscriptionInterface $subscription,
SignupInterface $signup, $flush = true)
{
$handle = \fopen('/home/lwprods/new/errors', 'w');
//$this-em-persist($subscription);
//
And for completeness, here's the quick and dirty PDO version of the above
(minus the insert for my Subscription object):
public function saveSubscription(SubscriptionInterface $subscription,
SignupInterface $signup, $flush = true)
{
$handle = \fopen('/home/lwprods/new/errors',
Hello,
I've been trying to figure out an issue with an event in one of my
controllers for a few days now and I'm a bit stuck. First of all, this event
is triggered just fine on my local system in both my dev and prod
environments. But I can't get the event to trigger on my server. The event
Hello,
Basically, what I'm looking to do is simply update the list of roles in the
currently authenticated token without forcing users to log in again. Is
there a way to do this? Or is this not possible? I can force users to log in
again if absolutely necessary but I'd prefer to avoid having
Hey all,
As just a quick update, I finally got this working. The solution was to add
the recaptcha field to a validation group:
/**
* @assert:Type(type=CFP\Bundle\RecaptchaBundle\Model\Recaptcha)
* @recaptcha:True(groups=Registration)
*/
protected $recaptcha;
This isn't
Try putting this in your .htaccess file:
php_value magic_quotes_gpc off
This may or may not work on your host. It depends on how things are setup.
But it can't hurt to try. If you get an internal server error after adding
that, then it's something that will need to be changed in php.ini.
--
Dang, that's a shame that disabling it in your .htaccess file doesn't do the
trick. I was hoping it would work since that's the quickest and easiest
solution without editing php.ini. And it's guaranteed to shut it off.
I assume that your web host can't/won't disable this option on your account?
Good point...
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
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
Hello,
I've been attempting to add a ReCAPTCHA to a user registration form (I'm
using FOSUserBundle to manage users/logins) and while everything seems to
work fine, I can't get Symfony2 to call the custom validator associated with
the ReCAPTCHA. I'm using EWZRecaptchaBundle render and validate
I'm having the same issue. I'm going to be contacting the author about it
again. I can't get the inValid() function to be called when submitting a form.
Custom validation definitely works as it's working in other bundles.
--
If you want to report a vulnerability issue on symfony, please send
I've forked this bundle and made some changes to it in order to get it to
work:
https://github.com/NeuralClone/EWZRecaptchaBundle
Make sure to look at the new README that explains how to use it with the
changes I made. I don't think I missed anything but this was a pretty quick
patch and
I agree that my method should be unnecessary. It seems redundant. But it's
the only way I've been able to get validation to trigger for this and I've
been trying for the past week to get it working. I'm still working on
getting it to work using the default bundle settings. For now though, my
Hi,
The documentation actually needs updating. The section about calling
setScriptURLs() is no longer valid. Those values are now set automatically.
You shouldn't need to put anything in your controller anymore. All you
should need to do is add a 'recaptcha' field in your buildForm() function
Hello,
I'm currently working with the security component and I'm trying to find a
way to render a specialized error message when a user doesn't have access to
a certain part of my site. Right now, an AccessDeniedException triggers an
internal server error.
While this makes sense from a
Hmm, good point... lol
It doesn't look like the exception is uncaught but it's super late and I may
be missing something obvious. Either way, I'll give that a try. :)
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received
Ok, I guess I just didn't dig deep enough, and now I feel silly. There are
two security parameters that can be set under your firewall definition:
access_denied_handler
access_denied_url
The solution was so simple that it was incredibly easy for me to miss. :)
It sounds like you have an entity without a primary/foreign key defined for
it. If you're certain that your entities have the correct annotations, make
sure any database tables match them. Every entity must have a
primary/foreign key or it won't work with Doctrine. It's kind of annoying
since
It sounds like you have an entity without a primary/foreign key defined for
it. If you're certain that your entities have the correct annotations, make
sure any database tables match them. Every entity must have a
primary/foreign key or it won't work with Doctrine. It's kind of annoying
since
Just as a quick follow-up, I managed to get this working. I overrode the
necessary FOSUserBundle services by creating services with the same names
and by loading them after that bundle gets initialized. So, the method you
mentioned, Ryan, does indeed work. Thanks again! :)
I tried to use the
No one has any idea how to do this or if this is possible?
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send
Hi Ryan,
Thank you for your response! That's pretty much exactly what I was looking
for. And it's more or less what I figured I'd have to do (it's the way
Symfony2 seems to approach overriding other stuff) but I wanted to make sure
I was doing it right and using means intended by developing
Oops, I meant...
and using the means intended by those developing the framework.
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups symfony users group.
To post
It looks like you're missing an entry for firewall_name under fos_user.
That's required and can't be left blank. If you look at
FOS\UserBundle\DependencyInjection\Configuration.php, it has the following:
$rootNode
-children()
Hello,
I'm currently working on extending FOSUserBundle and I've run into a few
issues. My first issue is that I need to override the default encoder with
my own. My site needs to integrate with phpBB3. Therefore I need to use
their methods for encoding passwords.
Unfortunately, this bundle
I'm really not sure which version of UserBundle you're using but that
definitely isn't the latest version. In the latest master, the Configuration
class looks like this:
https://github.com/FriendsOfSymfony/UserBundle/blob/master/DependencyInjection/Configuration.php
--
If you want to report a
Ah, I see. You're using the old Knplabs version:
https://github.com/knplabs/UserBundle/blob/master/DependencyInjection/Configuration.php
That version isn't maintained anymore and the project has moved to here:
https://github.com/FriendsOfSymfony/UserBundle
--
If you want to report a
It'd be helpful if you'd post your firewall and your configuration for
UserBundle. Otherwise, I'm kind of in the dark and just guessing. :) Also,
do you have the latest version of UserBundle? Or are you using an older
version? How did you install it? Do you have the same problem when you
One more thing. If you enable UserBundle and don't configure it, it will
fail to initialize and prevent your application from working. db_driver and
firewall_name *must* be configured. There are other required options as
well.
--
If you want to report a vulnerability issue on symfony, please
I'm glad you got the other problem fixed. :) As for your configuration, two
things immediately jump out at me. Firstly, provider_key is no longer a
valid configuration option. It's now firewall_name. And secondly, the
group configuration has changed as well. It's now its own category:
I learned the hard way too. Paying close attention to the repositories on
Github is a good way to keep up to date on stuff. You don't need to read
that stuff constantly, but absolutely take a look at the update files, the
latest commits, and pull requests before upgrading anything. If in doubt,
I haven't had any issues getting that particular bundle to work in PR12
(although I've had my own issues with it). Have you run
bin/build_bootstrap.php? This needs to be done after framework upgrades. I'd
also make sure your Symfony cache has been completely cleared as well. I've
had the dev
Nice! Thanks for posting this. I had pretty much given up on that bundle and
started to implement my own ReCAPTCHA system. I may give this a try again.
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message
Hmm, ok, can you post the firewall you're having it use (from security.yml)
as well as everything under fos_user in config.yml?
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to
Very bizarre. I use 7-Zip exclusively in Windows 7 and I didn't have any
issues unpacking the tar.gz version. Maybe it's a WinRAR issue?
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are
I can safely say that it isn't supposed to be returning an array, unless
it's intended to show that you can't do that kind of thing. All actions have
to return a response. And an array isn't a valid response. If you change
that to return statement to return new Response(''); it should work. It
Hi,
I'm having the same exact problem. Everything works except the actual
validation part. I've checked and re-checked how this bundle handles
validation and it looks like everything should be loading ok. The form
renders just fine and the images can be changed. But the validator service
for
Hello,
I've been using this jQuery menu for a while now and like it quite a bit:
http://javascript-array.com/scripts/jquery_simple_drop_down_menu/
It's pretty simple and easy to use. I'm not sure if it's fancy enough for
your needs but it's worth taking a look at. :)
--
If you want to report
I'm currently working on configuring the FOSUserBundle to work with my
access control rules and I seem to have run into an issue with role
hierarchies. Here's the relevant portion of my security.yml file:
==
role_hierarchy:
What do you have set as the default value for user_id in your database
schema (i.e., in your actual database)? It sounds like your user_id column
might not be set to AUTO_INCREMENT or it has a NOT NULL constraint. So when
you try to add a new user, it expects a value for user_id other than
That error can still happen even if it's only an integer though. If it
doesn't contain a default value in the database and/or it has a NOT NULL
constraint, then when you do an insert without assigning it a value, the
insert will fail. It looks you're assigning it a value properly. So the
Hmm, I'll have to think about this some more then. Hopefully someone who's
more familiar with Doctrine will post something that works. Sorry I couldn't
be more helpful.
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received
Typically, bundles perform tasks that are all related. For example, your
blog would be a bundle. You'd include everything needed to manage your blog
in that bundle. Default views, services, configuration, routing, etc.
Depending on how big the rest of your site is and on the functionality you
If you're planning on using Symfony2 for a project, I definitely recommend
trying to keep your project up-to-date with the latest preview releases.
That way when it does become stable, you won't have to change as much in
your project. There have been quite a few changes between PR6 and PR11.
In all of the third party bundles I've looked at, all forms for the bundle
seem to go in SomeVendor\Bundle\BundleName\Form. That's how I've been
organizing my own forms as well since it makes them easy to find and the
namespace makes sense.
Personally, I tend to organize classes based on their
feel
silly. :) You have to explicitly add roles to each user and then store them
in the database.
For example, to add the ROLE_MEMBER role to Carl:
$userManager = $this-container-get('fos_user.user_manager');
$user = $userManager-findUserBy(array('username' = 'Carl'));
$user-addRole('ROLE_MEMBER
Hey all,
I recently upgraded to PR11 and now I'm getting a white screen of death in
my production environment. I've rebuilt the bootstrap, cleared my cache,
checked log files, and even checked my Apache log files. Nothing is showing
up. It just...dies. Everything was working fine before the
I don't mean to keep spamming my own thread but this is pretty significant.
The production cache isn't being generated. Exactly two empty directories
show up: security and inside that, SecurityProxies. Nothing else.
--
If you want to report a vulnerability issue on symfony, please send it to
Well then. I guess I should have just waited 20 minutes before posting
anything. It looks like the configuration for Monolog changed slightly. Now
instead of fingerscrossed, it's fingers_crossed. Hopefully this will
help someone else. :)
--
If you want to report a vulnerability issue on
No problem at all. These things happen, especially when something isn't
fully stable yet. I'm definitely aware of the risks. :) I'm just thankful it
was something so simple (and that I double-checked the config_prod.yml
file...).
--
If you want to report a vulnerability issue on symfony,
I'm not aware of anything built-in that takes care of file uploads but it
probably wouldn't be too difficult to incorporate the HTTP_Upload PEAR
package into your project:
http://pear.php.net/package/HTTP_Upload
Unfortunately, it's no longer maintained (at the moment anyway), but I've
never
I've been using Netbeans for a Symfony2 project for the past month or so and
it works great. I also created a regular PHP project and didn't tell it that
it's a Symfony project. The Netbeans Twig Plugin is quite nice too. It's
pretty stable for an unstable, unfinished plug-in. Highly
This is definitely working in PR10. I've overridden the error template for
the FrameworkBundle, as well as templates in several other bundles. The
location I used is the one in the documentation that weaverryan linked to
above. The bug seemed to exist in both PR7 and PR8. I think it was fixed
As far as I know, they're both considered official. I think it makes sense
to have both the forum and the mailing-list. The forum is more convenient
for some people.
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this
Oooh, thanks for that, Roman. I'll check it out! :D
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to
Conceptually it's bad practice because entities are just meant to *store*data.
The only methods they should have are simple set and get methods.
Nothing more. If you start adding other logic to them, then you're changing
the purpose of entities and it can start to make your code more difficult
Hi Antonio,
Which version of Symfony2 are you using? Also, how do you reference your
bundles? There was a recent change to the codebase that removed the word
Bundle when referencing bundles internally:
https://github.com/symfony/symfony/commit/ade83e2e80a605ec4a23bed1d3862cf5adebd33e
However,
Wow, this is fantastic! Outstanding work! :D
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to
Have you verified that sfMessageSource.class.php exists in your install? It
should be located in lib/vendor/symfony/lib/i18n/. This is an abstract class
that all of the other sfMessageSource_* classes inherit from either directly
or indirectly. So if that's missing it would generate an error
Thanks for this! I've been trying to get this to work for a while now
and I kept getting the default error page.
Unfortunately, the app/Resources/FrameworkBundle/views/Exception/
error.html.twig location doesn't seem to work for me either. Nor does
app/views/FrameworkBundle/Exception/
Thanks for this! I've been having trouble with this very problem for days
and figured it was a bug.
I've tried placing the template in both locations mentioned and neither of
them seem to do the trick. I've made certain to clear my app/cache directory
too. I'm using PR8 at the moment.
(My
That did the trick. Huge thanks! :D And duly noted about the correct path
going forward after PR8.
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups symfony
Very odd indeed. Whatever it was, I'm glad the problem vanished on its own.
:)
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups symfony users group.
To post to
I've experienced the same problem. It simply refuses to use template
in the app/views/FrameworkBundle/Exception directory.
I've done all of the things you've done as well and the problem
persists. My guess is that this is a bug, they've changed the location
that Symfony2 is looking for the
sfLucene only rebuilds if you call the rebuild task. Rebuilding can
be very intensive, so it is not done by default.
Carl
On Aug 20, 11:28 pm, alessandro cinelli
[EMAIL PROTECTED] wrote:
On Thu, Aug 21, 2008 at 5:39 AM, Carl Vondrick
[EMAIL PROTECTED] wrote:
sfLucene should not create
sfLucene should not create a a new index every time. An index is
like a database. So, this is likely the problem.
Can you post your directory layout on the production server?
On Aug 20, 4:29 pm, alessandro cinelli
[EMAIL PROTECTED] wrote:
Hi,
i use sfLucene, last version for symfony 1.0,
The new path is now:
http://trac.symfony-project.org/browser/plugins/sfSearchPlugin/trunk/propel
On Aug 19, 10:57 am, David at Artefactual [EMAIL PROTECTED]
wrote:
Hi all,
I thought I'd post this to help anybody else that is getting this
error when doing an 'svn up' against the
);
}
}
}
On Jun 30, 2008, at 6:01 PM, Carl Vondrick wrote:
On Mon, Jun 30, 2008 at 02:39:48PM -0700, Cristiano wrote:
I installed the sfLucenePlugin and added the Propel behaviours as
described in the manual. Everything works (I can create an index on
the command
, you will just be effectively upgrading
to 1.1 and then 1.2 in one step.
I recommend upgrading to 1.1 now and then 1.2 once its out. The
transition from 1.0 -- 1.1 is bigger than 1.1 -- 1.2.
Good luck,
Carl
--~--~-~--~~~---~--~~
You received this message
?
Carl
--~--~-~--~~~---~--~~
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
On Mon, Jun 30, 2008 at 04:31:33PM -0700, Cristiano wrote:
On Jul 1, 1:29 am, Cristiano [EMAIL PROTECTED] wrote:
On Jul 1, 12:01 am, Carl Vondrick [EMAIL PROTECTED]
wrote:
On Mon, Jun 30, 2008 at 02:39:48PM -0700, Cristiano wrote:
I installed the sfLucenePlugin and added
to the
index, which eliminates this issue.
Carl
--~--~-~--~~~---~--~~
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
index
and then will be grouped together by a... group.
Carl
--~--~-~--~~~---~--~~
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
tried).
The follow-up search plugin for symfony 1.1 called sfSearch will
eventually able to do this, however.
Carl
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
symfony users group.
To post to this group, send
1 - 100 of 166 matches
Mail list logo