Symfony Questions
Ad
Trying to open new window with Authorization header (react) from application to connect user on our website
Context issue : we have an app using react and axios to do some requests from our api. we also have a website which is online and ok. i need to
On edit, FileType is empty even with setting newFile
Filetype on edit stays empty even when setting new file at the beginning. i've tried to put the value in the form, to set the name of the
Laravel 9 SymfonyMailer error - An email must have a "To", "Cc", or "Bcc" header
I've got problems with sending emails after updating a laravel 8 project using the metronic 8 theme to laravel 9. i didn't change any of my code
Laravel - OutputStyle from jobs
I'm running into issues with allowing a laravel job to interact with the console output. at the moment i am passing in the outputstyle
Laravel eloquent get details from related table
I don't understand how to return info back to blade template if i have two related tables: first table is
Guzzle 6 Post upgrade
I recentely update my guzzle version from 3 to 6. the following call was working on 3 but now i need to upgrade it to 6 (as it is not working).
Tailing a log within Laravel never executes Symfony Process callback
I'm trying to tail a log file using a console command to detect specific errors. however, the call back in the run(...) portion of my
Display a switch by a flag
I need to display a switch if a flag in my database is setted to a positive value. <div class="form-group m-form__group row
How to manipulate data by Symfony Form (with JS, AJAX)?
I've got a short question. let's say i have the data from database in my symfony app and on the same page i have a form which is responsible for
PUT/PATCH request with not allowed fields
I have an application which i'm writing in symfony 4 framework. i have a put/patch request which might contain bad request fields. for example
Ad
To use Doctrine entity attributes you'll need PHP 8, doctrine/orm 2.9, doctrine/doctrine-bundle 2.4 and symfony/framework-bundle 5.2
I have a problem on my symfony project version 4.4.9, when i type php bin/console make:entity this errors it display
Upgrading to Symfony 6 from 5.3
I updated my composer.json file to reflect the 6.0.* changes, and ran my composer update "symfony/*" code, and it returned
Laravel 5 Symfony\Component\HttpKernel\Exception\NotFoundHttpException: POST http://localhost/myproject/public/leads
I use laravel 5.8 and have test method like this this public function test_store() { $attribute=
Opcache Preloading with Symfony 5.4 / PHP8 / Platform.sh
I am attempting to set up opcache preloading on symfony 5.4 running on php8 at platform.sh, and running into a fatal error.
Is it possible to use the Symfony form component with React.js?
I am using the symfony form component. i have many forms in my project. to perfectly learn the form component was a long way to go, but now
react native can't subscribe to mercure backend notifications
I'm working on a notifications system with react native and symfony. i configured mercure with docker to handle front subscription to real time
Uncaught reference error require is not defined
I'm trying to use an html page in order to test the connection with my server. i've got no problem with my server.js var
Dynamically generate / omit HTML attribute in Twig
I want to generate a div with a specific html attribute present or absent in it, in function of if a variable my_var has been defined
Why is a variable used by reference to the set_error_handler function closure undefined?
While reading through the laravel framework source code i stumbled upon this code
tempus-dominus doesn't detect moment import
I know that there's a bunch of question about moment and tempudominus-bootstrap-4 but most of the time it is linked to a
Render Javascript in DOMPDF is not working as expected
I am using dompdf for creating pdf documents in the symfony framework. /** * @param string $html
Ad
"SplFileInfo::getSize(): stat failed" exception on Laravel 6.0 when doing file upload
I'm using laravel 6.0 to build a simple image upload system. but for some odd reason, i keep encountering a "splfileinfo::getsize(): stat
How to upgrade Laravel 5.2 to most recent version?
I am a new developer on the website i work on. i have downloaded the source code which is a laravel project- currently version 5.2. i am trying to
Symfony 4 + ReactJS Not Working Without Any Error
I am trying to add google map search capability for my project and i found a very nice react code for this
Change Twig Loader order
So i've created a few twig loaders in my project for templates stored in databases. simply having them implement loaderinterface already
How to display console prompt for "choice()" in columns?
In a laravel command, i am looking for a way to display the 52 options in multiple columns rather than one long list that requires scrolling.
can i use symfony nodeJS and angular in one application
Hello, i am doing an audit platform for applications develop in angular node and symfony, my question is that i can use the 3
select2 does not display correctly (Using cdn)
I'm trying to complete my website with some java's plugin, i'm on symfony 4 and i use the cdn bootstrap twitter. when i put the select2
Laravel Process() with FFMPEG times out for any video that is even kind of large
I am creating an application that lets users upload video files, and once they do it will convert them all to .mp4's (it does some other things,
Firebase on Symfony4
I use firebase on my symfony application.so, i install kreait/firebase-bundle but i don't know which file i can configure this bundle on
Symfony 6 fixtures UserPasswordHasherInterface
How can we use userpasswordhasherinterface in a fixture to create users in symfony 6? //app/datafixtures/appfixtures.php
Remove childless elements (except leafs) from nested array
I've got a table called mappings with id, leaf, parent_id, name and
Ad
Access symfony form widget value by id using javascript
I am using symfony 3 generated forms. in order to validate the form i want to access the form widget value (text inputs in html) using javascript.
Why can't I access/use $this->option('debug') in a artisan command class' __construct method?
I am trying to create a artisan command with a --debug option
Laravel Tinker Error: Symfony\Component\Debug\Exception\FatalThrowableError : Call to undefined method Psy\Configuration::getLoop()
I am trying to run php artisan tinker on my project and get this error:
"onchange" function never called when I load file in form
I am building a form using the bootstrap css in my symfony project. the problem is that when i set up a
Object of class Symfony\Component\HttpFoundation\ParameterBag could not be converted to string -laravel 5.8
My code was working fine before tested it with many ways no errors were there but suddenly it started giving this error. object of
React / Symfony: How to start my project?
It's been a few days since i broke my head to find the right method but i can't make up my mind so i decide to call on your experience :)
Why do we need specific classes to work with Request and Response?
I want to understand why we need specific classes to work with request and response. what's wrong with global variables like $_post, $_get, etc...
Webpack doesn't compile my javascript file due to Regexp
I'm working on a symfony 4 project using webpack encore. using yarn encore dev, i get this error : error failed to
Gitlab CI - Test are OK but the job fail
I'm new to gitlab ci (and ci in general) the unit test pass but the gitlab job fails here is my .gitlab-ci.yml
How to fix: Doctrine not returning properly
I want to make dynamic delete posts function but the result is error because value is null. controller
GTFS-realtime bindigns with Laravel
I am having problem installing google gtfs-realtime
Ad
AngularJS put method to upload files gives no data
I have a symfony application that uses
Laravel Cannot declare class Symfony\Component\HttpFoundation\AcceptHeader, because the name is already in use
I just took a project from a couple of months ago which was made in laravel. this project also utilizes laravel voyager - the admin panel
JavaScript - post request to Symfony
I wrote a function to sent a simple request trough controller via javascript in my symfony project. my alert is triggered when i refresh the page
Adding insert query in symfony migration file:error
I need to insert static data in database during migration. so in my migration file i am adding one insert query but this
Possible to authorize a page only to the disconnected user
I wonder if it is possible on a symfony controller to only allow logged out users (for the login page for example). i tried using:
Unable to auth to api platform with token
I set up an api with symfony api platform, when log in with user credentials (username and password) the api returns me token, but when i want to
Laravel developer toolbar like in Symfony Framework
I have worked with php symfony framework for some time. this framework provide useful toolbar for developer with many information about
(Symfony 4 form types) How do you make an entire subform required/not required based on a <select> value on the form?
Here is my form type class. so the < select> field i am talking about is the 'numsubscriptiontiers': class
Use Javascript variable in Symfony path (Ajax request)
I've created a ajax request who posts data to a symfony path. inside my symfony path i want to use a javascript variable to generate my route.
How to connect to a Redshift database in a Symfony application
I am working on an application built using symfony3 which needs to retrieve data from a redshift database. how can i go about achieving
SQL query result cuts down to a single result if AVG function is used
I have this query where i am trying to fetch all my packages from various different vendors. what i want to do is: with each package, i want to
Ad
TYPO3 Scheduler + Symfony Console Command + Command Arguments
There is a symfony console command which can be executed by cli with an argument „domain“. like: ./typo3cms mycrawler:process
Access Database Symfony2
Does anyone know how to access a database through an interface thats running under a symfony2 application? like in the way you can see a database
Laravel 5.4 environment based config files
I am trying to change the laravel configuration variables based on environment, but i do not know how. code to get config is
Unit test: Mock service class with constructor dependency injection
Is it possible (and recommendable) to create mocks of service classes which load dependencies by constructor injection? class:
Migrate TYPO3 Extbase task to Symfony command
I'm trying to migrate the extension pb_social to typo3 10 lts but
Composer local repository : I can't push because local repository is on my computer
I have two repertories in my computer : versionablebundle and versionabledemo. versionablebundle is
How to update woocommerce product via api with Symfony and Guzzle
Question: how to update the price of a woocommerce product via api using guzzle and guzzle/oauth-subscriber i've used
Select Input TYPO3 v9 Symfony Command
I want to make a scheduler command in typo3 v9, the problem is, that i don't know and can't find how i can make a select input. this is
Use of Extbase Repositories in Symfony Command
Im upgrading an extension to work with typo3 v10. since command controllers can not be used anymore, im migrating them to symfony commands as
How to check the protocol with the new Symfony Expression syntax in a TypoScript condition
I need to check the protocol with the symfony expression langange in typoscript conditions. the old syntax is [globalstring =
How to manage a dev branch and a prod branch for Symfony with Git
I work with friends on a symfony project and we have two branches using git. the origin/master and the origin/dev. the master is used for
Ad
Typo3 Condition => Symfony-Expression Language: IP in List
What's the right symfony-expression-syntax for the "in list" typo3 conditions? (for example ip or language described here:
TYPO3 9 Routing - the parameter gets overwritten by the defaults
I'm trying to create a url-structure like /maincategory/subcategory/ and this works, it looks good but with my code it loses the parameter
Symfony FOSCKE onchange event
I'm making a form field with fosckeditorbundle, which simply generates the ckeditor. the problem is, that i have to catch the onchange event on
The parameter has a dependency on a non-existent parameter
I have a password in parameters in services.yaml, for example "xxx%xxxxx%xx" and when i want to do getparameter it returns me only
Prestashop backoffice started loading very slow
Today my prestashop back office started loading really slow. the information page in advanced parameters isn't even loading. it keeps trying to
Unable to generate a prestashop error 500 invoice
I am coming to you because i have a problem with prestashop, when i try to generate an invoice after purchase, the site sends me back to an error
How to add Login to swagger UI with API PLATFORM (symfony 4)?
I installed & configured lexikjwtauthenticationbundle, it works fine but i've got a small problem. i have include the authorization
Configurate doctrine_migration_versions table in custom schema instead of public
Is there a way for the automatic doctrine_migration_versionsto be stored in a schema other than public? right now
Routing exception after upgrading to TYPO3 v9.5.14
After upgrading to typo3 v9.5.14 our detail pages for news crash with the exception
Typo3 - How to get the extbase context within a symfony commandController
Since typo3 v9.4 the extbase commandcontroller is deprecated so i use the symfony console command replacement according to:
Prestashop Repository not found
Good morning. i have a problem using the new symfony architecture. i created a modern controller where routing is working perfect. now i
Ad
Creating and accessing custom module's REST routes in Prestashop 1.7.5
I am trying to create a custom controller in my prestashop 1.7.5 module. i created a custom controller: #
How to map Product entity so that it is managed by Doctrine?
I am trying to build a module under ps 1.7.6.1. in design, i have a manytoone relationship between a product and a preorder (many
override "src" controller back office in prestashop
Firstly, i tried all the questions & answers related to this topic. additionally and i tried related questions and try to solve it but no
add custom button on customer view twig using custom module in prestashop?
Firstly, i tried all the questions & answers related to this topic. additionally and i tried related questions and try to solve it but no
How to use Symfony\Component\Routing\Annotation\Route?
I am getting the folllowing error in prestashop admin panel in the modules section which does not allow me to configure any of the modules.
TYPO3: Symfony command with arguments AND dependency injection
I made a command in typo3 which has arguments and dependency injection (di). as i understood in symfony di is made with the __construct method.
Debug TYPO3 site configuration
I have to update a complicated realurl configuration to the new site configuration in v9. i get 404 errors and unwanted redirects, so i need
Why does this TypoScript treeLevel condition (symfony syntax) sometimes not work?
The typoscript condition: page.5 = text page.5.value = not level 0 [tree.level == 0] page.5.value = level 0 [end]
How to create a file relation in TYPO3 v9 in a CLI command from Symfony?
I created a migrate command to import data from another cms to typo3 with the new symfony commands in typo3 9.5.4. the only problem is to create a
TYPO3 9.5 - PLESK 17.8 - NGINX
Have someone nginx and plesk without apache running? can someone share his nginx config for typo3 version 9, because mine which i have used so far
Prestashop wrong token generated for symfony created Admin controller
Please if some piece of information is missing or i totally screwed up the explanation of the problem tell me! hi, i wanted to create an
Ad
Laravel artisan down with message parameter with spaces gives Too many arguments, expected arguments "command"
I run the artisan: php artisan down --message "going down for maintenance" --retry=60 [update] or run it like
Get files with server path in application, not over http?
I have upload area for my customers which files should be private and not public accessible. because of non-public availability, how can i get
MySqlBuilder::defaultStringLength()
I have the problem defaultstringlength() despite several seeks. i explain you my procedure. in the file folder database ->
Two tables, two relationships
I have two tables; agency and user. in most cases, a user will belong to an agency otherwise will be null. this relationship is quite
Avoiding .git folder in composer's vendor when installing from a custom Gitlab domain
I have a symfony bundle on a git repository managed by gitlab. the bundle is added to symfony using composer and pointing to the gitlab as an
Catching a 401 response in Symfony
I am trying to customise the error responses in a symfony app (6.0). the app makes as request using http client to an external api using an oauth
Get js variable transpiled by Symfony4 Webpack Encore in twig / FosJsRouting bundle
I use fos_js_routing bundle on symfony4 . i need to get the routing object reachable in my twig view. i defined routing in assets/js/app.js, a
How to properly get a parameter send using ajax in a Symfony controller (annotation)?
I have been struggling for the past 2 days and none of the answer i've find so far on the internet have helped me so far. i'm trying to
Changing Database From Postgre To MySQL In Laravel App Leads To Timeout/Symfony Exception
Haven't found anything helpful on the net. i couldn't get postgre running on a plesk cloud server so i tried switching to mysql on my
How to debug "Symfony\Component\Debug\Exception\FatalErrorException" errors in PHP (Laravel)?
I am getting reports of many errors encountered by clients symfony\component\debug\exception\fatalerrorexception
Symfony Mailer - Migrate addPart from SwiftMailer
I am migrating from swiftmailer to symfony mailer in my application. how to migrate addpart method of swiftmailer to symfony
Ad
PHP Fatal error: Maximum execution time of 60 seconds exceeded in C:\xampp\htdocs\vendor\symfony\process\Pipes\WindowsPipes.php on line 140
When i try to upload video that is larger than 15mb using ajax and laravel i get this error: php fatal error: maximum
AWS front-end back-end communication
I have 2 apps running on asw symfony on port 8000 (local) and react 3000(local) but accessible through tcp on port 80 redirections was achieved by
Ad
Blog Categories
Ad