25 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
3
votes
2
answers
245
views
How to fix the now deprecated assert_options?
Consider this code:
// Make assertions throw exception
assert_options(
ASSERT_CALLBACK,
function ($file, $line, $code, $desc = null) {
$dest = $...
0
votes
1
answer
5k
views
faild to install PHP 8.3 on Ubuntu 20.04 [closed]
I want to install php8.3 on Ubuntu 20.04.6. but
sudo apt-get install php8.3
returns :
E: Unable to locate package php8.3
E: Couldn't find any package by glob 'php8.3'
E: Couldn't find any package by ...
2
votes
2
answers
139
views
Latest Telescope does not work if Laravel is in a subfolder & Quick Fix Also Not Working
Telescope Version : 5.10
Laravel Version : 10.48.29
PHP Version : 8.3.11
Issue
Laravel runs in a subfolder. This means only urls starting with /foo/ get routed to Laravel's index.php. Other ...
1
vote
0
answers
73
views
Force PHP to NOT handle MariaDB / MySQL errors [duplicate]
I think about a year ago after an update to PHP it suddenly started handling database errors itself where as I have an else condition and function that is universal in my code. This is unacceptable as ...
1
vote
0
answers
89
views
Symfony 7 in docker container don't validate csrf token
I have a symfony 7.2 applikation. it is running local on a apache2 server and in a docker container(nginx, php8.3). I don't use redis.
When i try a login, local works everything fine, here the ...
0
votes
0
answers
86
views
Laravel 11 file download - Unable to retrieve the file_size for file at location
I want to implement file download from a local storage with laravel 11 and PHP 8.3. I have previosly implemented similar functionality with Laravel 10 and it worked without issues.
I didn't change ...
0
votes
0
answers
66
views
Docker compose for Laravel v11 project
My Dockerfile:
FROM php:8.3-fpm
RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
unzip \
libpq-dev \
libonig-dev \
libssl-dev \
libxml2-dev \
...
0
votes
1
answer
500
views
Is there any way to run php8.3.x or php8.4.x on Windows 7?
I need to run wamp locally on a Windows 7 laptop. Environment: apache2.4.63 / mysql8.3 / php 8.3.x or 8.4.x
Apache and mysql are already running on Windows 7. My current installation is php8.2.19 and ...
1
vote
0
answers
65
views
Why is `institutionId` a string in my old API response but an integer in the new version after upgrading PHP, Yii, and MariaDB?
I recently upgraded my application's stack, and I noticed a change in the API responses. Below are the details of the version changes:
Component Old Version New Version
PHP 7.3.0 8.3.0
...
1
vote
2
answers
162
views
Why does my codeigniter 3 setup keep showing 404 error?
Using codeigniter 3 I have modified the following.
config
$config['base_url'] = 'http://demo.xyz.com/xyz/';
$config['log_threshold'] = 4 ;
$config['index_page'] = '';
$config['uri_protocol'] = '...
-3
votes
1
answer
254
views
How to Display PHP Errors in Browser? PHP 8.3 FPM, Apache 2.4.58, Ubuntu 24.04 [closed]
My script displays a blank page. Two errors are logged (1 Warning, 1 Unknown error type). php.ini settings are display_errors = On, error_reporting = E_ALL. phpinfo() in the same directory (not sure ...
0
votes
2
answers
90
views
How to create a generic interface for multiple controllers with different method parameters?
In Laravel 11, I'm trying to make a single interface for all of the CRUD resource controllers in my API. Something like this (showing for store() method only):
<?php
namespace App\Interfaces;
use ...
0
votes
1
answer
170
views
Installed php8.3.10 successfully on a fresh installation of headless ubuntu22.04, or did I?
I am using this guide to install php8.3.10 on Ubuntu22.04: https://www.php.net/manual/en/install.unix.nginx.php
got to step 8 create a test file,
modified the given command:
echo "" >> ...
1
vote
1
answer
479
views
Laravel and PHP8.3 can't connect to Postgres database
I've spent quite some time on an issue with my Laravel app when upgrading to PHP8.3 and using a Postgre database, so I'm writing this to share my findings as I was not able to easliy find the answer ...
-1
votes
2
answers
270
views
Laravel request user doesn't properly load relationship
I am developing a sort of multi-tenant application with Laravel 11 on PHP 8.3, where each "user" must belong to a "company".
For user management, I started from Laravel Breeze, and ...