Category : symfony

Failed to extract symfony/console: (-1) "C:Program Files-Zipz.EXE" x -bb0 -y "C:UsersdharsAppDataRoamingComposer/vendor/composer/tmp-a9ced416c385f9f7faefbc038d77351a" -o"C:UsersdharsAppDataRoamingComposer/vendor/composer/55b58cf8" I get this error while installing laravel through command prompt using composer. I used ‘composer global require laravel/installer’ Sourc..

Read more

I’m running queues with horizon. Recently the process is crashing and closing the job. Here is the error log: SymfonyComponentDebugExceptionFatalErrorException : Uncaught SymfonyComponentProcessExceptionLogicException: Output has been disabled. in /home/forge/services.liabigdata.com.br/vendor/symfony/process/Process.php:1412 Stack trace: #0 /home/forge/services.liabigdata.com.br/vendor/symfony/process/Process.php(624): SymfonyComponentProcessProcess->readPipesForOutput(‘getIterator’, false) #1 /home/forge/services.liabigdata.com.br/vendor/rollbar/rollbar/src/Utilities.php(102): SymfonyComponentProcessProcess->getIterator() #2 /home/forge/services.liabigdata.com.br/vendor/rollbar/rollbar/src/Utilities.php(159): RollbarUtilities::serializeForRollbar(Object(SymfonyComponentProcessProcess), NULL, Array, -1, 7) #3 /home/forge/services.liabigdata.com.br/vendor/rollbar/rollbar/src/Utilities.php(105): RollbarUtilities::serializeObject(Object(SymfonyComponentProcessProcess), NULL, Array, -1, 6) #4 /home/forge/services.liabigdata.com.br/vendor/rollbar/rollbar/src/Utilities.php(159): RollbarUtilities::serializeForRollbar(Object(LaravelHorizonWorkerProcess), ..

Read more

So by default API Platform comes with these Donctrine mappings in Doctrine.yaml: mappings: App: is_bundle: false type: annotation dir: ‘%kernel.project_dir%/src/Entity’ prefix: ‘AppEntity’ alias: App However, I’d like to structure my entities in this way: src/Domain/ Product/Entity/*.php Order/Entity/*.php Address/Entity/*.php Is there a way to automatically load these entities without adding a new map to the config? ..

Read more

Im rebuilding my application. It was pure php and now I’m using Laravel 8 / PHP 7.4 on ubuntu 20. I was using PHPMailer with those settings. $mail = new PHPMailer; $mail->isSendmail(); $mail->CharSet="utf-8"; $mail->Encoding="base64"; $mail->SMTPDebug = 0; $mail->SMTPOptions = array( ‘ssl’ => array( ‘verify_peer’ => false, ‘verify_peer_name’ => false, ‘allow_self_signed’ => true ) ); $mail->isSMTP(); ..

Read more

i developed e-commerce symfony app. My question is: If an item has been added to the cart, The date and delivery time of the first product are active for other products. This is output of product page (empty basket): http://prntscr.com/136rmf2 this is output of another product page after basket filled by one product: http://prntscr.com/136rvbt This ..

Read more

I’m running a process using Laravel which relies on Symfony Process component as follow. $process= new Process([‘binary’, "username", "password"]); $process->setTimeout(3600); $process->run(); It works fine excepted when a parameter contains special characters which are interpreted by the shell. When I run my process directly in shell I have the exact same issue. If I escape parameters ..

Read more

Hi, I have a job which process below operations: Import data, save in db Change status of saved records Dispatch event with saved records for further operations. At point 2. queue process runs out of memory and get killed. So I want to use a transaction here so that if point 2 not executed completely ..

Read more

I try to deploy a Laravel application to the stage server. When I run composer install, then occurs the following error: require(/gopanel/sites/example/public/example/releases/5/vendor/symfony/polyfill-intl-normalizer/bootstrap80.php): Failed to open stream: No such file or directory After delete vendor when I run composer require symfony/polyfill-intl-normalizer everything works well and also the other packages are installed. I checked the composer.json file: ..

Read more

I’m trying to install the latest version of Laravel 8 on the latest version of Homestead. When I run composer install or composer update, installation of symfony/var-dumper always fails: Installing symfony/var-dumper (v5.2.6): Extracting archive Install of symfony/var-dumper failed [ErrorException] file_get_contents(/home/vagrant/code/vendor/symfony/var-dumper/Resources/bin/var-dump-server): Failed to open stream: No such file or directory Despite the error exception, the file ..

Read more

i have the follow form that contain the ChoiceType bellow and in the choices i have the value and the translation, like this "’– الاختيار–‘ =>’app.ui.no_order’", but every time that i submit the form it appeare to me an error ->add(‘type’, ChoiceType::class, [ ‘choices’ => $choices = [ ‘– الاختيار–‘ =>’app.ui.no_order’, ‘In Stock’ => true, ..

Read more

Is there a specific way to register a custom Symfony mime guesser in Laravel? I’m currently trying to add a custom guesser in the Laravel service provider layer, but not having any luck getting it to work. namespace AppProviders; use AppHelpersCustomMimeGuesser; use SymfonyComponentMimeMimeTypes; use IlluminateSupportServiceProvider; class AppServiceProvider extends ServiceProvider { public function register() { MimeTypes::getDefault()->registerGuesser(new ..

Read more

I am trying to run a python script from laravel using process but it is not working. My code: $process = new Process([‘C:/Users/hrish/AppData/Local/Programs/Python/Python39/python.exe’, ‘C:xampphtdocsNMovieRSystemappModelstop_movies.py’]); $process->run(); if (!$process->isSuccessful()) { throw new ProcessFailedException($process); } Error: SymfonyComponentProcessExceptionProcessFailedException The command ""C:/Users/hrish/AppData/Local/Programs/Python/Python39/python.exe" C:xampphtdocsNMovieRSystempublictop_movies.py" failed. Exit Code: 1(General error) Working directory: C:xampphtdocsNMovieRSystempublic Output: ================ Error Output: ================ Fatal Python error: _Py_HashRandomization_Init: ..

Read more

I am trying to execute a python script in Laravel using Symfony. I got this error. I have tried : $process = new Process([‘…’], null, [‘ENV_VAR_NAME’ => ‘value’]); The ENV_VAR_NAME value is set to my python 39 directory. I’m on windows. Can anybody help me with this? I’ve tried this, $process = new Process([‘python’, ‘top_movies.py’],null,[‘ENV_VAR_NAME’ ..

Read more