Questions tagged [php]
PHP is an open-source, multi-paradigm, dynamically-typed, and interpreted scripting language designed initially for server-side web development. Use this tag for questions about programming in the PHP language.
300
questions
-4
votes
0
answers
26
views
I am having a problem removing a google mark from my website [closed]
I am having a problem because my website is showing a google mark on the right hand side. I want to remove it. But I don't how to do this.
The website name is https://mozodeals.com/. I have deleted ...
2
votes
1
answer
14
views
Custom Low Stock availability string for WooCommerce product variations backorders allowed
I'm looking to edit the woocommerce low stock message. But only for product variations which are set to allow backorders.
The message should include the stock level, and only appear when the stock ...
0
votes
0
answers
19
views
Problem with ACF Date Range and Repeater Integration in WooCommerce
I am using ACF to create fields integrated with WooCommerce. I am struggling to manage the tour status for each period in the Week Days mode:
The tour has 2 modes: Week Days and Exact Dates.
A tour ...
0
votes
0
answers
27
views
Microsoft Graph API Authorization Error: 'Invalid size of Code_Challenge parameter.'
I am trying to generate an access token via a PKCE flow to call the Microsoft Graph API.
I am following this msdoc : Microsoft identity platform and OAuth 2.0 authorization code flow - Microsoft Entra ...
-2
votes
0
answers
24
views
React Expo push notification, sending notification to required channelId from PHP
https://exp.host/--/api/v2/push/send
{
"to": "ExponentPushToken[***************]",
"title": "Test Notification",
"body": "This is a test message.&...
1
vote
0
answers
61
views
Accented chars in dates [duplicate]
I've a problem in formatting dates in it_IT locale.
I've a customer with a site running on PHP 8.0.3, and due to some certification issues (this customer has to mantain ISO27001 certification) I've ...
0
votes
1
answer
53
views
Upgrading PHP to 8.3.9 from 8.2.12 on Windows 11 - cURL is not working [closed]
Steps I am taking:
Fresh install of XAMPP, which uses PHP 8.2.12.
After install, I confirm that cURL shows enabled in my phpinfo and my local coding files work as expected.
I renamed the existing php ...
0
votes
1
answer
30
views
AlpineJS submit a form without refreshing the page
I am working with Hyva theme with AlpineJs on Magento and using a <form> with the needed inputs to add a product to the shopping cart.
This is part of the form code:
<form method="...
-1
votes
0
answers
49
views
Problem while trying to run composer update
I'm currently working on the dockerized version of ProcessMaker 4.1.21 and I'm encountering the following error when I try to run the "composer update --ignore-platform-reqs" command :
PHP ...
1
vote
0
answers
20
views
Watermark for custom image size in WordPress
I use a watermark code for a WordPress theme. The code works fine, but it generates a watermark for every uploaded image. How can I modify my code to not watermark some image sizes?
I have an image ...
0
votes
1
answer
29
views
Can i login using only pin in Auth::attempt
i tried this to login but it failed to login in system
if (Auth::attempt(['mpin' => $otp])) {
$check_otp->update(['otp' => '']);
session()->put('is_login', true);
session()-&...
0
votes
0
answers
25
views
Laravel Backpack saves files twice
I'm using Laravel Backpack.
I have a Product model. It has photos (wow) that I upload when creating a model in the backpack admin panel.
But there is a problem! Photos are uploaded twice:
It was '...
0
votes
0
answers
43
views
Crypto-Key Header conflict with p256ecdsa value
I'm not sure if this is a PHP or crypto issue, but in my free time I am using PHP to attempt a Data-Free Web Push Subscription Update.
I have a class with a method I called save_ssl_keys() that ...
0
votes
1
answer
28
views
Livewire: set property to collection?
In my component I have
@foreach ($foodItems as $i)
<div wire:click="setSelectedFood({{ $i }})" class="flex items-center space-x-4 rtl:space-x-reverse bg-gray-100 rounded hover:...
0
votes
1
answer
28
views
Laravel appending attribute results to out of memory
In a model OrderItem I'm trying to append coupon value through accessing the Order relationship like below:
public function getCouponValueAttribute() {
if($this->order->coupon_data) {
...