74,346 questions
0
votes
0
answers
24
views
.env is being hashed? [duplicate]
I am resolving .env like this.
$dotenv = new Dotenv();
$dotenv->load(__DIR__ . '/../.env');
$_ENV seems to be loaded as expcted, when I dumping it. However getenv('') just returns false for any of ...
0
votes
0
answers
10
views
How to access the Paginator in Controller in Api Platform 4 after upgrading?
I followed the Upgrade Guide to upgrade Api Platform from version 3.4 to 4.0.
Before Api Platform 4.0, I was able to inject the Api Platform Paginator directly into my custom controller like this:
...
-1
votes
0
answers
16
views
very slow ajax request with Symfony 6 in local environment
I got trouble developing a Symfony 6 / PHP 8 project. I use AJAX lots of time on my page, and from the start of development the slightest request took several seconds. I use to got a response anyways, ...
-1
votes
0
answers
27
views
Why "Notice: Undefined index:" exceptions occur for all Beans after composer update to Symfony 4.4 [closed]
I am dealing with a step-by-step Symfony upgrade starting from Symfony 4.2.7 to recommended latest Symfony 4.x (namely, 4.4) before major upgrade to 5.x and so on.
The site has an ORM layer enabled by ...
0
votes
0
answers
25
views
DQL query : LOWER function suddenly stopped working [duplicate]
Recently updated a backend service from a Symfony 5.4 / php 7 to a Symfony 6.4 / php 8.3 config.
The database is using Postgresql 14.
Since the doctrine queries I have that include LOWER stopped ...
0
votes
0
answers
14
views
Symfony Mailer/Messenger apply a delay before sending email [closed]
I'm using Symfony 7.2.1 with the default doctrine messenger transport (MESSENGER_TRANSPORT_DSN=doctrine://default?auto_setup=0 in .env file), setup as async in messenger configuration file.
I'm ...
0
votes
0
answers
23
views
Github Action threw "Error DOM is required."
I upgrade a Symfony project using Docker from version 6.4 to 7.1. Dockefile has snippet of code as bellow to install PHP extension:
...
RUN apt-get update && apt-get install -y \
libfreetype6-...
0
votes
0
answers
40
views
How to Remove Unnecessary Slashes in Symfony Routing Generated Links
Symfony routing 5.4.48 (Without framework)
use Symfony\Component\Routing\Route;
use Symfony\Component\Routing\RouteCollection;
use Symfony\Component\Routing\RequestContext;
use Symfony\Component\...
-1
votes
0
answers
14
views
Running doctrine:fixtures:load command in phpunit bootstrap
Trying to setup my database (schema, fixtures) before running my tests using the bootstrap file. The commands to create the database and the schema go through as expected, but running my test fixtures ...
-1
votes
2
answers
46
views
Symfony Mailer with Exchange [closed]
I'm struggling a bit with the Symfony Mailer in combination with Exchange Server 2016.
As I was trying things out, I have found that Swift Mailer has native NTML support, but it gave me this error ...
0
votes
0
answers
15
views
Symfony tests data provider with fixtures information
PHPUnit: 11.4
Symfony: 7.2
We have simple test with external data provider:
class AppTest {
#[DataProviderExternal(AppDataProvider::class, 'getData')]
public function testData(array $data): ...
0
votes
0
answers
30
views
Services in bundle-specific services.yaml are not loaded, even though imported correctly
I'm developing a bundle in Symfony 6.4 and defining my services in a bundle-specific services.yaml file located at /src/xxxBundle/Resources/config/services.yaml. This file is correctly loaded via the ...
-1
votes
0
answers
23
views
SEO Urls in SW6 for a custom entity are only working in dev mode
I have a plugin that contains a custom entity for Shopware and I have dynamic SEO Urls for these custom entities. It's all working fine, I can generate Urls and when put dev in APP_ENV in .env, the ...
-1
votes
1
answer
49
views
Child component not updating data
I have a child component Table.
Table.php
<?php
namespace App\UI\Http\Twig\Components\Molecules;
use Symfony\UX\LiveComponent\Attribute\AsLiveComponent;
use Symfony\UX\LiveComponent\Attribute\...
0
votes
1
answer
19
views
Problem with FOSJsRouting: works with Webpack but not with AssetMapper
Description:
I'm facing an issue with FOSJsRouting in my Symfony project, especially when using AssetMapper. Here are the details of my configuration:
I've installed and configured the ...