717 questions
0
votes
1
answer
58
views
HTTP Error 500.0 - Internal Server Error (The FastCGI process exited unexpectedly)
This error occurs only in certain page that load with a lot of data. Other page with same module is run with no error.
ERROR 500
this using php 7.2 and codeigniter. please help
is there any issus with ...
0
votes
1
answer
643
views
I want to install php 7.2.34 in MAMP but the version available in MAMP is php8. I tried copying the files from the brew install
I tried installing from the brew install. It did not work. It is showing me this error.
.
I tried copying the PHP files from the brew install either it doesn't show up or it doesn't open itsef
I want ...
1
vote
1
answer
131
views
How to add one year to a DateTime in a leap Year
I want to get the last day of the month of the next year from a given date
Here is how I did :
$copy = new \DateTime();
$lastDay = new \DateTime($copy->add((new \DateInterval('P1Y')))->format('Y-...
-1
votes
1
answer
89
views
Create_function deprecated [duplicate]
I have taken over the 'admin' of a Wordpress website without the benefit of any documentation and it is falling over when creating invoices with this error. Whilst I can do somethings to get it going, ...
2
votes
0
answers
2k
views
unable to install php5.6 in ubuntu 18.04
My main aim is to install php5.6 while i am having php7.2 already in my laptop.i tried to install it but it's not working in ubuntu 18.04.
the commands which i ran are given below--
sudo add-apt-...
2
votes
1
answer
38
views
Getting an error when I try to add variable on Query on my php 7 platform
I'm trying add limit & offset as variables on a sql in php application
code looks like this:
$bind[':limit'] = $limit;
$bind[':offset'] = $offset;
$sql= 'SELECT id, monkeys '.
'from ...
0
votes
1
answer
68
views
Image displaying through HTTP POST method not displaying after upgrading from PHP 7.2 to PHP 8
So I am passing a file upload data through a form POST to a PREVIEW pdf. It used to work, but we recently changed to PHP 8 and I haven't managed to adapt it.
Here is the code block that gets the the ...
1
vote
1
answer
282
views
Integration of pimcore 6.7.1 project in another machine
I've a project developed in PHP >= 7.2 and Pimcore 6.7.1.
I want to run this project on another system but not getting any help.
Pimcore documentation is all about creating new project and then ...
0
votes
1
answer
237
views
dns_get_records behave differently
I have a php script which runs inside a docker (The php version is 7.2.34 on orcalelinux. ) it uses dns_get_records to fetch spf records for domains. For one particular domain it throws a warning:
...
1
vote
1
answer
2k
views
Error Laravel\Socialite\Two\InvalidStateException In the callback method from the Google side
I want use Socialite package but receive in Error !
controller codes :
namespace App\Http\Controllers\Auth;
use App\Http\Controllers\Controller;
use App\User;
use Laravel\Socialite\Facades\Socialite;
...
0
votes
1
answer
97
views
PHP template if statement being ignored with PHPMailer
I'm trying to send an order confirmation email HTML template (order_confirmation.html.php) from my Apache (7.2) backend that has PHP tags present for conditional rendering that is sent with the ...
-1
votes
2
answers
118
views
How to fix undefined variable problem in php? [duplicate]
I have a php code in which I am getting the error message Notice: Undefined variable: c at LineA
<?php echo HelloWorld($a, $b = 6, $c); ?> // LineA
The function definition is shown below:
...
0
votes
0
answers
69
views
php json_encode adds decimal to integer?
I tested it, but it's like this in only one part
As integer 125398460000 goes through json_encode
I've seen it change to 125398459999.99998.
125398460001 or 125398470000 did not.
Am I mistaken now?
...
0
votes
1
answer
272
views
Updating deprecated code, from each() to foreach()
I'm working to fix some old code that triggers a warning on PHP 7.2.0, beacause each() is deprecated.
I tried to replace each() with foreach() like the following, but it doesn't work.
I found some ...
0
votes
1
answer
451
views
Editable datetime grid column save showing error toaster in Laravel-admin
I have a user grid with an editable datetime column. When i edit and save the date time i am updating the date value in my db using a put method and controller. But after successful save the error ...