Skip to main content

PHP Collective

Questions

Browse questions with relevant PHP tags

161,698 questions

No answer
1 vote
0 answers
88 views

Laravel app handling redirects unexpectedly

I have two apps running on the same server behind a Webscale proxy (Apache). A Laravel 11 app works correctly, returning a proper 302 with session cookies. My new Laravel 12 app returns 200 OK with no ...
Jesse Luke Orange's user avatar
2 votes
0 answers
72 views

Error in react-webview: error loading page. Domain: undefined. Error code: 3. Description: SSL error: The certificate authority is not trusted

I can't open a website within a webview in React Native. I always get the following message. Note: the site has normal SSL, but the SSL error keeps appearing: error loading page. Domain: undefined. ...
Mateus's user avatar
  • 21
0 votes
0 answers
144 views

PHP8.2 ignores local value of `output_buffering` and uses master

I want to set output_buffering=0 in a single directory. When I create a .user.ini file in that directory with output_buffering=0 , phpinfo() shows 0 for the the local value, and 4096 for the master, ...
tvanc's user avatar
  • 4,414
2 votes
0 answers
72 views

Magento 2 PageBuilder field missing in production only

I'm experiencing an issue with Magento 2 PageBuilder where a specific field (`link_url`) is not available in the production environment, but it works fine on pre-production. Details: - Magento 2.4.5-...
MohameD ELQUCHIRI's user avatar
0 votes
0 answers
66 views

VK API Error 15 & 100 when posting photos to community wall via WordPress: "Access denied" and "No photo given" when using group token

I'm developing a WordPress plugin (lakend-crossposter.php) that automatically publishes blog posts to a VK community wall. I'm using the official PHP SDK (vkcom/vk-php-sdk). I'm facing an issue with ...
8j0rn's user avatar
  • 1
0 votes
0 answers
67 views

PayPal Orders API: shipping.options not persisted / PATCH replace fails when shipping address is missing

Question I’m using the PayPal Orders v2 API and trying to update shipping.options without providing shipping address data. Issue When I create an order with shipping.options but without shipping....
Asatur's user avatar
  • 35
1 vote
0 answers
106 views

How to add events to Kerio calendar via API?

I'm trying to create a calendar event via the Kerio Connect PHP library. I can connect, get a session token, and successfully get a return from methods that don't require any input parameters, such ...
eljefejb's user avatar
  • 327
0 votes
0 answers
39 views

Symfony UX Cropper + LiveComponent always returns full image

Symfony UX Cropper + LiveComponent always returns full image (width/height null) I’m using Symfony UX CropperJS inside a LiveComponent and the cropper UI works correctly (I can move/resize the crop ...
Demi God's user avatar
  • 105
1 vote
0 answers
83 views

Database locked on insert() in Leaf PHP

My function to get input from the user using Leaf PHP with an SQLite database should create a POST method call to create a thread, and every message (including the first one) should be in a comments ...
ffuentes's user avatar
  • 1,181
0 votes
0 answers
76 views

Android Zebra / WebView drops session cookie after AJAX login over intranet HTTP, works on desktop browsers (SameSite/Secure?)

I’m running a web app on an intranet IP over plain HTTP and seeing inconsistent login behavior on a Zebra PDA using an Android embedded browser or WebView. Desktop browsers work reliably. Login is ...
Bodhi Silberling's user avatar
-1 votes
0 answers
90 views

How can I debug my PHP cloud function in VS Code?

I have a PHP cloud [run] function that I would like to be able to debug but cannot figure out how. I can run it locally with composer run start and then I can trigger the main function using curl , ...
Chris's user avatar
  • 73
0 votes
0 answers
89 views

PHP exec() hangs during SSH command execution on RHEL 9 and returns no output or status

I am executing an SSH command on a remote host using PHP’s exec() function inside a foreach loop. Based on a condition, the command runs only during the 4th and 6th iterations. The same SSH command is ...
Balaji Sekar's user avatar
0 votes
0 answers
63 views

Fetching an audio inside a lesson causes net::ERR_UNEXPECTED_PROXY_AUTH

After the recent Moodle update I received the request that audios in lessons are no longer available. When I edit the lesson the audio is available and I can play it. But on the lesson preview I ...
Nickolay Kondratenko's user avatar
0 votes
0 answers
140 views

How can I retrieve the HTTP response code without actual verification?

I'm searching for a way to get the HTTP response code in Codeception without actually verifying it in API tests (end-to-end). Composer.json: "codeception/codeception": ">=5.1.2&...
Blackbam's user avatar
  • 19.7k
1 vote
0 answers
89 views

cURL - incomplete response if stream

I am making cURL request using GuzzleHttp PHP library that returns me a huge list of data I later process. Because of the size and response time, I tried to optimize my side by using stream option ...
SIR - 9I214's user avatar
3 votes
0 answers
49 views

Modify Google Calendar with non-restricted scopes

I have a PHP site using Google API for user login. Some users have creation and modification roles on a public Google Calendar. I would like to modify that calendar when one of these users are logged ...
Simone Clerin's user avatar
1 vote
0 answers
189 views

Is it safe to remove elements from a Doctrine collection in a foreach loop?

With Doctrine ORM I see recommendations to call toArray() on a collection before iterating over it when removing elements. Is this really necessary and why? I have a dossier entity with a One-to-Many ...
Khaled Boussoffara's user avatar
1 vote
0 answers
84 views

WordPress site freezes when sending FCM notifications to large topics via wp_remote_post()

I'm developing a WordPress plugin that sends push notifications via Firebase Cloud Messaging (FCM v1 API). The plugin works perfectly when sending to small topics (1-2 devices), but causes the entire ...
antocirino's user avatar
0 votes
0 answers
54 views

Class Smarty_Internal_Compile_Html_Options not found

We have a project which worked till yesterday without any problem. We are not aware of having changed something but suddenly autoload can't find the smarty class Smarty_Internal_Compile_Html_Options. ...
Peter VARGA's user avatar
  • 5,371
1 vote
0 answers
97 views

Laravel 12 with Nova 5 running locally

Since I updated to Laravel 12 and Nova 5 I can't access Nova locally any more. I work with Docker containers and added: bootstrap\providers.php App\Providers\NovaServiceProvider::class, When I type ...
MrY's user avatar
  • 27
1 vote
0 answers
76 views

How does routing work in custom modules in Webtrees?

A Joomla installation and a Webtrees installation share the same domain (joomladomain/webtrees). I need to send HTTP requests to a custom module in Webtrees and I don't know how Webtrees handles ...
athco's user avatar
  • 35
0 votes
0 answers
75 views

Varnish Error 503 VCL failed when url path ends with %

My website gives a Error 503 VCL failed when url ends with % I have tried to disable cache, and also tried redirect, in .htaccess but without success. Here's my current .htaccess-configuration: <...
Peter Wirdemo's user avatar
0 votes
0 answers
123 views

Symfony does not register any application routes (Attribute routing) – only profiler routes appear

I am migrating a legacy PHP application (100% file-based) to Symfony and using Symfony only as a front controller. The Symfony application boots correctly, but none of my application routes are ever ...
Bernardo Stein's user avatar
0 votes
0 answers
130 views

Apache 2 php-fpm on LMDE 7, local environment throws error “Permission denied: AH02454: FCGI: attempt to connect to Unix domain socket” (PHP 8.4)

Recently I installed Linux Mint Debian Edition 7 over my old Debian 11. So far a good choice for me, but I can’t get my local dev environment to work again. What I want to achieve: A local webserver ...
Anna Kleiner's user avatar
1 vote
0 answers
102 views

php odbc connection to databricks returns junk bytes

I'm using the SimbaSparkODBC driver provided by DataBricks on Windows to connect to a DataBricks instance which is running in Azure. Most of the sqls are running fine, but sometimes the result ...
Codeinator's user avatar
0 votes
0 answers
65 views

WooCommerce How to Display Stripe Based on PostCode

In WordPress 6.9 version and WooCommerce version 10.3.6, I want to display the Stripe based on the shipping zone. Shipping zone 1 consists of Post code 3000 Shipping zone 2 consists of Post code 4000. ...
Lijesh Shakya's user avatar
0 votes
0 answers
67 views

adding hidden custom fields in woocommerce checkout blocks

In classic woocommerce checkout, we can: Add a custom field using the woocommerce_checkout_fields filter (or by calling woocommerce_form_field() in a specific template location). Save the data using ...
adielbm's user avatar
  • 95
0 votes
0 answers
56 views

Azure Table PHP Retrieve Latest Data First with Pagination

I am using this: https://github.com/Azure/azure-storage-table-php to insert data to azure table. However, when I retrieve the data, I don’t get the latest entries unless I use a do...while loop, as ...
nexusmusic's user avatar
0 votes
0 answers
82 views

Deploying a localized Laravel app using Dokku

I am using the laravel-localization package to localize my Laravel app. It works perfectly normal on local enviroment (using php artisan serve) and on shared hosting with Apache. I've just deployed it ...
Matic's user avatar
  • 45
0 votes
0 answers
76 views

Why does Apple iCloud CalDAV always return 400/405 on PUT (creating events)? Is iCloud CalDAV write-protected?

I’m trying to create events on an iCloud Calendar using CalDAV. READ operations work: PROPFIND → OK REPORT (get events) → OK Authentication with app-specific password → OK But every PUT request (...
Ayoub Dakiri's user avatar
0 votes
0 answers
107 views

Vue/Laravel - CSRF token mismatch

on Vue-Laravel-based environment,CSRF token is initialized server-side -non-sanctum, one token per run-: routes/web.php Route::get('csrf-token' , function(){ $token = csrf_token(); return response()-...
Mahmoud Tarek Mahmoud's user avatar
1 vote
0 answers
294 views

How to test laravel on other devices, i use herd and xampp to run it on local machine

I'm running a Laravel project locally using Herd and sometimes XAMPP on my Windows machine. I’m trying to share a live link so that other devices (phones, laptops, etc.) on the same network can access ...
NNADI EMMANUEL's user avatar
1 vote
0 answers
105 views

Magento 2 SSO Login: “login_redirect” cookie created on first login, forcing repeated login on checkout

I’m integrating a custom SAML-based SSO module with Magento 2. The SSO login works, but I’m facing an issue specifically during the first login after the user arrives via SSO After SSO login, when the ...
Pavan shetty's user avatar
0 votes
0 answers
85 views

Show/hide dropdown values in SuiteCRM 8.9

I am using SuiteCRM 8.9, and I am trying to show/hide dropdown values using logic hooks. But it is not working. The hook is not running. Users under the Sales security group should only see draft and ...
Akhilesh's user avatar
  • 1,313
3 votes
0 answers
119 views

decrypt data hex2bin with different outcomes from same input

Hi, I'm trying to migrate my APP from Yii2 (PHP 7.4) to Laravel 12 (PHP 8.4) and I also want to move from MySQL 5.7 to Postgres. In the old app I used to encrypt PII data and saved it to the database ...
Nordseebaer's user avatar
0 votes
0 answers
140 views

Document AI importDocument returns error code 13 when using REST API

I’m currently having an issue with my code — I’m using the REST API to train a Document AI model with the custom extraction type. I have already completed the following steps: Called the v1 process ...
Nor3soN's user avatar
0 votes
0 answers
113 views

Apple Pay v2 (signedTransactionInfo) : how to verify new token format and migrate from legacy EC_v1?

I’m updating a legacy application that used Apple Pay v1 token format, and in my new revamped version I’m now receiving the newer Apple Pay v2 format. The old (v1) payload looked like this: { "...
Fyzan Khan's user avatar
1 vote
0 answers
202 views

Symfony UX Live Components - debounce filter on `data-model` with `data-action` attribute

I have a menu that is using Live Components that shows, loads more, and filters through a list of brands. It shows a list of brands with checkbox for each, that acts as a filtering option on the page. ...
Fact0Log's user avatar
1 vote
0 answers
409 views

How can I install a new Laravel 12 project with Vue (Ziggy instead of Wayfinder)?

I want to set up a fresh Laravel 12 project that uses Vue.js for the frontend. However, I don’t want to use the new Wayfinder package that comes with Laravel 12. Instead, I’d like to configure it like ...
khalid's user avatar
  • 27
1 vote
0 answers
126 views

How to connect Xdebug to VSCode

I'm trying to use Xdebug in VSCode. It seems Xdebug is running but I can't get VSCode to hit on the breakpoints I set. In the logfile (see below) it shows some kind of mismatch between files in which ...
CriticalMax's user avatar
0 votes
0 answers
57 views

How can I prevent Eclipse PHP "MyClass cannot be resolved to a type" error?

I have a bunch of common reusable classes stored in a "repo" folder hierarchy. Each class has its own file, each file has a namespace coherent with its place in the folder hierarchy. I ...
fpierrat's user avatar
  • 818
0 votes
0 answers
85 views

App is not logged out after doing SSO sign out from other apps

I recently worked on a PHP based project and it implemented Keycloak SSO login system. There are three apps (let's say App-1, App-2, and App-3) that are using the SSO. App-1 also implemented ...
HKL's user avatar
  • 1
0 votes
0 answers
177 views

Google Login Redirect Not Working in CodeIgniter 4: 'Page Does Not Exist' Error on Callback

I'm integrating Google OAuth login in my CodeIgniter project, but I'm encountering an issue with the redirect URI after successfully authenticating with Google. Here's a summary of the problem: My ...
Vishnu S N's user avatar
0 votes
0 answers
94 views

Programmatically block WCFM vendor order creation on partial Stripe Direct Charges in WooCommerce checkout

I am building a WooCommerce multi-vendor marketplace using: WooCommerce (latest) WCFM Marketplace WCFM Stripe Split Pay Stripe Connect with Direct Charges and Express accounts When a customer ...
g1us1's user avatar
  • 9
2 votes
0 answers
108 views

Implicit model binding fails when using {locale} prefix in routes

I'm working on a multilingual Laravel 12 app. All my routes are grouped under a {locale} prefix, like this: Route::prefix('{locale}') ->group(function () { Route::get('/activities/{...
20cnts's user avatar
  • 21
2 votes
0 answers
68 views

Permission 'cloudmessaging.messages.create' denied on resource '//cloudresourcemanager.googleapis.com/projects/xxxxx' (or it may not exist)

I'm encountering a permission error when calling the Firebase Cloud Messaging (FCM) API for notifications. While the API retrieves details and generates a Firebase token successfully, the response ...
naseeba c's user avatar
  • 1,060
2 votes
0 answers
68 views

How to properly handle native JavaScript confirm() in Laravel Dusk without triggering UnexpectedAlertOpenException

I’m writing a Laravel Dusk browser test for a “Delete Contact” button that shows a native JavaScript confirm() dialog before deleting a record. However, every time the test runs, I get this error: ...
Nken Mandeng Ange Arsene's user avatar
0 votes
0 answers
89 views

VSCODE PHP debug not showing variable values when filename does not end in .php

I have the following simple php test file: <?php $a = 1 ; $debug = true ; This file has two linked filenames: testa and testa.php I have set both of these files with a breakpoint at the third ...
Dennis 's user avatar
  • 1,325
0 votes
0 answers
173 views

React Native fetch is returning an error, but the character causing the error isn't in the returned JSON

I am doing a fetch in React Native and am very new to React Native, by the way. const apiUrl = 'http://hermes.hstn.me/api/'; const response = await fetch(apiUrl, { method: 'GET', headers: { '...
mycroft16's user avatar
  • 845
0 votes
0 answers
123 views

Update woocommerce order item custom meta field

I am trying to add a simple input field to the order backend and use it to update my order item information. It's a simple meta called "Number of People". It seems like everything is working ...
Edson Luiz's user avatar


15 30 50 per page
1
2 3 4 5
3234