Category "php"

Nginx downloads php files

I read about this problem and tried many fixes, but none has worked. I use Ubuntu 22.04 and PHP 8.1. My Nginx config file is now ## # You should look at the fol

how to validate form data in codeigniter 4

i am new to codeigniter 4, i am currently building a registration form. when i submit reg form it give error of required fields even if i fill all fields with c

How to solve "Error: MySQL shutdown unexpectedly" In Xamp?

When I open XAMPP and click start MySQL button and it gives me an error. I had started it just before, but now it isn't working. It given error below in xammp E

Error converting docx to pdf using Unoconv

I am trying to convert .docx files to .pdf files using Unoconv. Libreoffice is installed on my server and the script works for another website on the server. Us

Get WooCommerce products from specific category

I am trying to insert a WooCommerce element to display "products" (courses) from a specific category into a page. I had also to hide these products for this spe

Laravel whole batch is cancelled if one Job fails

I'm working on a Laravel project that uses the Batching feature to batch a bunch of Jobs into a Batch. In my context, I have around 50 jobs in a batch, each job

How to fix Call to undefined method App\Models\TableName::factory?

I have created a seeder that populates data in Laravel but was having a BadMethodCallException Call to undefined method App\Models\Project::factory(). Why is th

how to solve laravel/horizon v4.3.3 requires ext-pcntl problem

I'm using Windows operating system. I've also tried with these solutions available here: link 1) PHP pcntl module installation link 2) How to install PCNTL exte

How to get R and S values from ECDSA signature using PHP

I am working on Signature of data using ECDSA from Starkbank library and I can get the base64 format of the signature value MEUCIALlD6Xsd0Xdj7XTrD2gP4Q3PlssTxLO

Use Product Variants Select in Cart Prestashop

I'm developing a cross sell module that will display products in cart that you can add to cart by clicking the button add to cart. I need to take consideration

"code": 403, "message": "Forbidden" when requesting data from YouTube Analytics API in youtube api document

I am creating an app related to customer service and marketing through social media and YouTube are the project i am working on. I have a job to obtain ads rela

how to youtube api data to print in toolset metabox using a button click before save-post

i create a metabox with 'import' button in post.php. Also, ready for youtube api data code. but i need, 'when i click 'import' button to run youtube api data fu

How to split a multi value sql column into three single result

So I have a SQL column that stores data like this. "[1338,0,8523]" I was wondering if I can then garb each one individually and because the value is minutes, i

Laravel passport auth token not working after moving to different server

I have created this small app using laravel + vue js 2 years ago. It has been working fine till now but the server guys moved it to different server and suddenl

Save and restore position X Y of HTML elements in a DB with PHP

Im trying to make a floor planner like page for tables of a Restaurant. Every square of the page represent a table and they are draggable. <div id="drag-1

The session is not working properly in PHP

The session is not working properly in PHP. The login page is working fine. But after redirecting to my home page I couldn't able to see my login details it thr

Prestashop Dynamic Pricing PHP

I am trying to make a fully customizable product page and then add the product to the cart. However I'm struggling to be able to make a temporary price for that

PHP - installing Xdebug on Mac with XAMPP (Unix File)

I have a trouble installing Xdebug on my PHP project. I am on macOS Monterey M1 and I am using XAMPP for launching project on PHP version 7.4.28. I followed the

phpword dompdf docx to pdf special character

<?php include 'vendor/autoload.php'; $phpWord = new \PhpOffice\PhpWord\PhpWord(); $domPdfPath = realpath('vendor/dompdf/dompdf'); \PhpOffice\PhpWord\Setti

Exception thrown during the rendering of a template("Parameter "id" for route "url" must match "[^/]++" ("" given) to generate a corresponding URL.")

I have a delete button which is created here: _delete_form.html.twig <form method="post" action="{{ path('finals_delete', {'id': final.id}) }}" onsubmit="ret