Quantcast
Channel: Active questions tagged symfony4 - Stack Overflow
Browsing all 3924 articles
Browse latest View live

Symfony update 4.3 to 4.4 The content-type is not supported

I have updated Symfony project (api platform) from 4.3 to 4.4, but now I receive this error in some POST/PUT requests:Status Code: 415 Unsupported Media TypeThe content-type “application/json” is not...

View Article


Doctrine Add column onSchemaCreateTable Event

I have some ManyToMany table relations. I'd like those to have a "created_at" field set when INSERT INTO.Following Symfony and Doctrine Documentation, i tired this :app/config/services_dev.yaml[...]...

View Article


Symfony 4 console: Environment variable not found in prod env

Every time I run bin/console cache:clear --env=prod got an error Environment variable not found: "LOCALE" or any other variable. If a run it on the dev environment I wont see any error.I can always run...

View Article

symfony 4 build API GraphQL : overblog/GraphQLBundle vs ApiPlatform

I wish to set up a GraphQL API on a symfony 4 application, according to you between its two two solutions (overblog/GraphQLBundle vs ApiPlatform) which should I choose to build my API and why do you...

View Article

Symfony Functional Test on a controller with LoginFormAuthenticator

I have a Symfony4 app that is basically done and now am writing some tests for it. I'm trying to see if I can get a success http 200 from this controller route using this command vendor/bin/phpunit...

View Article


Symfony 4 - route : "The requested URL was not found on this server"

this is my first post so i'll try to be understandable.I am starting with symfony, and there is a problem i can't resolve alone. This is my controller, and I am working with WAMP. When my Url is...

View Article

Doctrine fails with column can't be null error; Can't see how the value _can_...

I have a Symfony 4 application that uses Doctrine for all database access. The table in question has a number of columns that are defined with "NOT NULL".All of the getter methods in the entity class...

View Article

FOS Rest bundle - Not able to use customized error controller

I have a project with Symfony 4.4 and FosRestBundle. I'm trying to customize the exception handling by changing the json output. In this particular case I have a controller that receives a query string...

View Article


Notice: A non well formed numeric value encountered on authentication Symfony...

Hello devs when I try to connect with my login form ( when I submit the form ) it doesn't work and gives me the following error: Notice: A non well formed numeric value encounteredso thank you in...

View Article


How to properly use '%' for escaping YAML configuration in Symfony?

When it comes to creating bundles, it's often necessary to support some configuration for the developers who'll use the bundle.In this case, I need the configuration's value to support %someText%,...

View Article

Ckeditor - using twig code within FOSCKEditor wysiwyg

I wanted to know if it was possible to put twig code in ckeditor and that it interprets correctly the code in order to generate the HTML code.I've already seen some configurations (using...

View Article

Functional Testing Events and Subscribers in Symfony 4

I need to functionally test the a subscriber in Symfony 4 and I'm having problems finding how. The Subscriber has the following structure /** * Class ItemSubscriber */ class ItemSubscriber implements...

View Article

Authentification probleme Symfony 4 (Security component )

I have a little problem with my Symfony 4 login page. When users submits the form, the following error appears:Notice: A non well formed numeric value encounteredand yet when I go to the data base the...

View Article


Call to a member function guessExtension() on string with relation one to many

I'm trying to upload several pictures in Symfony 4.4 but I got this error:Call to a member function guessExtension() on stringI have ManyToOne relation between Event and Picture. Each Event can be...

View Article

Error multiple insert Symfony5 with JSON field

I have a problem with EntityType Multiple a register in database a result is : [{}, {}] because type is json but this json is empty... I don't fond a solve, can you help me ?Controller:public function...

View Article


Symfony 4 TypeForm submit dont update db with select id

Here I meet a small problem with my code.What I doIn my application I have normal users and technicians users. A user must have a technician. When creating a new user: In my form type 'UserType.php' I...

View Article

Symfony 4.4 before create /{slug} check existing routes

I have the entity Page identified by slug. Also I have the action to view a page in the Page controler :class PageController extends AbstractController { /** * @Route("/{slug}", name="fronend_page") */...

View Article


Authentification probleme Symfony 4

I have a little problem with my Symfony 4 login page. When users submits the form, the following error appears:Notice: A non well formed numeric value encounteredand yet when I go to the data base the...

View Article

API Platform Logging Headers from requests

I have an authentication issue on a production server, the issue is very likely to be non-code related but rather an IT configuration issue...To prove this I would like to check if API Platform...

View Article

Symfony Cache Component configure persistent connection

I'm trying to figure it out how configure symfony + memcached adapter to use persistent connections.In memcached documentation I found that it has a constructor argument Memcached::__construct ([...

View Article
Browsing all 3924 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>