Category : symfony

I am trying to use Symfony panther with laravel to scrape website. But I am getting this error. Error: Could not start chrome. Exit code: 1 (General error). Error output: [1632035029.000][SEVERE]: CreatePlatformSocket() returned an error: The requested service provider could not be loaded or initialized. (0x277A) [1632035029.000][WARNING]: Unknown error 10106 mapped to net::ERR_FAILED [1632035029.001][SEVERE]: CreatePlatformSocket() ..

Read more

please help me solve this problem when i submit product digital, an error count () occurs: The parameter must be an array or an object that implements Countable Full Code : https://pastecode.io/s/tstv9yau Error Image when i click submit to upload product get error count(); $categoryDetails = $category->categoryDetails; $categoryDetailsInput = $request[‘c_details’]; if (count($categoryDetailsInput) != count($categoryDetails)) { ..

Read more

i create section product for digital products so in author user when adding new product get error in count my error picture product controller error my code $categoryDetails = $category->categoryDetails; $categoryDetailsInput = $request[‘c_details’]; $minPrice = $category->buyer_fee + (($category->buyer_fee * auth()->user()->levell->product_charge)/100); if (($request->regular_price < $minPrice) || ($request->extended_price < $minPrice)) { $notify[] = [‘error’, ‘Minimum price is ..

Read more

My application became a little slow. I’m using Laravel framework with Doctrine ORM. I keep a way with rich models, so somewhere I have functions like this: checkSomething(): bool { return $this->relation1() && $this->relation2() && $this->relation3(); } And it seems when I call it, it makes multiple queries to the DB. Maybe you know some ..

Read more

I am creating a dashboard panel for user, where user can register and when user logged in then the url should be look like this: username : mandeep when user logged in the url should: https://mandeep.example.com/dashboard whenever navigate to any page the subdomain should be same as https://mandeep.example.com/contact-list and if someone type wrong url like ..

Read more

Hope you are all doing well. I’m working on a Codeigniter project for example I want when the user enters this page : http://localhost:8080/admin/clients I want the sidebar to stay shown but once he enters a sub-page like http://localhost:8080/admin/clients/add I want the sidebar to be Hidden Here’s my code : if($actual_link == admin_url().’/clients/**’){ ?> <body ..

Read more

I’m trying to scrap one of our website static pages for getting the URL of each image inside the div with the class esg-entry-media. My code is working properly in the localhost version but when I deploy it to the server I get a different response as below: /svg+xml;nitro-empty-id=NTQyOjI5MA==-1;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTcwIDEzMCIgd2lkdGg9IjE3MCIgaGVpZ2h0PSIxMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PC9zdmc+ Code: $client = new Client(); $crawler ..

Read more

I am having trouble with PHP 8 + Laravel 8.4 I get errors like [30-Jul-2021 10:13:23] WARNING: [pool www] child 1098 exited on signal 11 (SIGSEGV – core dumped) after 0.422025 seconds from start My composer.json { "name": "dd", "description": "dd", "type": "project", "require": { "php": "^7.4|^8.0", "ext-bcmath": "*", "ext-curl": "*", "ext-dom": "*", "ext-gd": "*", ..

Read more

when i run php artisan route:list i can find the route GET|HEAD | accounting/sales but whenever i send the request using postman i get the same error SymfonyComponentHttpKernelExceptionMethodNotAllowedHttpException: The GET method is not supported for this route. Supported methods: POST. in file C:xampphtdocsprojectscontrollercontrollerapivendorlaravelframeworksrcIlluminateRoutingAbstractRouteCollection.php on line 117 and when i try to to change the request ..

Read more

i have one controller which contains three functions (register,login,forgotPassword).for login and registration it’s working fine but when i try to hit an API in postman i am getting an error,previously i use seperate controller for forgotPassword() function at that time it’s working fine ,now i moved that controller into USerController i am getting 500 internal ..

Read more

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