Questions tagged [symfony-3.2]

This is the Symfony 3.2.x specific tag. Use it in addition to the symfony3 tag if your question is specific to Symfony 3.2.x — not just 3.x.

Symfony is a PHP full-stack web framework developed and maintained by Sensio Labs.

Information

This tag is specific for the 3.2 version of Symfony. See the tag for general Symfony 3.x questions.

The 3.2.0 version was released on the 30th November 2016.

326 questions
2
votes
2 answers

SYMFONY DEV to PROD: \DebugBundle not included by AppKernel.php in PROD case creates issue with all existing dump(...) functions in the code

In SYMFONY3, I use intensively in my code the dump(...) function of The VarDumper Component that works with the DebugBundle Configuration ("debug"). Once you move to the production settings all the dump(...) that are in the code become an issue and…
nyluje
  • 3,573
  • 7
  • 37
  • 67
2
votes
1 answer

the image doesn't appeare on the web page

i use vich uploader bundle to display images added to my data base here is my code config.yml : vich_uploader: db_driver: orm mappings: cours_image: uri_prefix: /images/cours …
2
votes
1 answer

HWIOAuthBundle and Custom UserBundle can't seem to work together

I can't seem to get Hwioauthbundle to work with my custom userbundle in symfony3. I would like to use googleoauth for my application,where a user can signin with google and also use a a registration form. Either method will store the user in the…
andykibz
  • 31
  • 3
2
votes
2 answers

symfony/yaml backed symfony/config not parsing environment variables

I have recreated a simple example in this tiny github repo. I am attempting to use symfony/dependency-injection to configure monolog/monolog to write logs to php://stderr. I am using a yaml file called services.yml to configure dependency…
Justin Dearing
  • 14,270
  • 22
  • 88
  • 161
2
votes
2 answers

Multiple forms for entity instances - symfony3

I'm trying to create a form that would allow a manager to approve a list of time off requests (also planning to have a todo list and want to be able to mark them as done). I have read [Generate same form type on same page multiple times Symfony2 (as…
Hinson
  • 41
  • 5
1
vote
1 answer

Symfony (3.2.6) SQL Error | ([Semantical Error] line 0, col 39 near 'parking_ticket_settings': Error: Class 'parking_ticket_settings' is not defined.)

I have problem with SQL query in Symfony (3.2.6). I am trying to run this code: $em->persist($AxfonePushPayment); $query = $em->createQuery("SELECT parking_ticket_settings.id FROM parking_ticket_settings JOIN zone z ON(z.id =…
kuznecov
  • 25
  • 3
1
vote
1 answer

Symfony catch PHP errors in CLI command

I have a Symfony 3.2 app. I created a command to run some background task. I have to know when the command finished even if it resulted in an exception or fatal error. My first idea was to surround my code with try/catch block. I am able to catch…
Martin Dimitrov
  • 4,796
  • 5
  • 46
  • 62
1
vote
1 answer

How to override errors templates for Symfony

I want to override the error templates in Symfony 3. I've started by creating a TwigBundle folder withe the personalised twig. app/ └─ Resources/ └─ TwigBundle/ └─ Exception/ ├─ error404.html.twig ├─ error403.html.twig …
KubiRoazhon
  • 1,759
  • 3
  • 22
  • 48
1
vote
2 answers

Symfony 3.2 - HTTP 204 when echoing file_get_contents() for an image created with imagejpeg()

I created an image using the imagejpeg() function within my entity class $imageSize = $this->_getDefaultImageSize(); $image = imagecreate($imageSize['width'], $imageSize['height']); imagecolorallocate($image, 54, 175, 105); …
Stefan K.
  • 23
  • 3
1
vote
4 answers

Getting date from a string without time in php

I have to convert a string input to date "1990/07/22" to 22/07/1990 as date,My function is as follows as: public function($date){ $date_format_sec = strtotime($date); $date_of_birth = new \DateTime('@'.$date_format_sec); } It uploads date…
A.JRJ
  • 331
  • 1
  • 5
  • 16
1
vote
1 answer

Non-mapped field is valid whilst it is required and empty

I have a field which is non-mapped and required. $builder->add('termsAndConditions', CheckboxType::class, [ 'required' => true, 'mapped' => false, 'attr' => [ 'class' => 'c-custom-option', ], ]); Clientside validation will…
Quisse
  • 646
  • 1
  • 6
  • 24
1
vote
1 answer

CORS issue on accessing API with JWT token

I am facing a CORS issue when accessing Symfony REST API from angular with JWT token. IIS server has been configured to access the application with domain name and IP address. The Front end code is in the same directory of Symfony. Front end calls…
KV90
  • 89
  • 1
  • 11
1
vote
1 answer

How to display result in success ajax to twig file

I'm new in Symfony! I use symfony 3. I have a search input when i type in search i want display the result in the twig file. I got the correct result send from ajax and i have a problem with display data result from ajax to twig file and use loop in…
chinhnguyen
  • 73
  • 1
  • 16
1
vote
0 answers

JMS Serializer Error: Call to a member function getUser() on null

I want to serialize a object in Symfony 3. So I wrote this code: $serializer = $this->getContainer()->get('jms_serializer'); $context = SerializationContext::create()->enableMaxDepthChecks()->setGroups([...]); $jsonObject =…
1
vote
0 answers

How to user symfony-cmf/simple-cms-bundle in symfony3

I want to use symfony-cmf/simple-cms-bundle in symfony3.2 but It's support only symfony2. So I am looking to avoid check version at the time of development and will update on production. Is it possible by pass validation through any configuration…
Yogesh Karodiya
  • 225
  • 5
  • 15