Skip to main content

All Questions

Tagged with
0 votes
0 answers
24 views

Fatal error: Call to a member function fetch_assoc() on boolean in [duplicate]

I have quiz website and I'm working on adding question and images, and every couple minute site stop working and show me this message Fatal error: Call to a member function fetch_assoc() on boolean in ...
Autre's user avatar
  • 1
0 votes
0 answers
67 views

PHP Fatal error: Uncaught PDOException: SQLSTATE[HY000] [2006] MySQL server has gone away in PDO->__construct

I have this error that happens in an API only about once per 10k requests, it always happens on a specific type of API request (v2/download-file.php) although all the API points use the same database ...
Simon - ShortPixel's user avatar
0 votes
0 answers
39 views

On DB failed connection, redirect with error msg instead of quitting with fatal error [duplicate]

Using the typical MySQL connection method, if the connection fails (ex. bad credentials), I'd like the user to be notified with a nice redirect with error message, instead of a plain text Fatal Error ...
liminalFrog's user avatar
0 votes
1 answer
82 views

vb.net fatal error encountered during command execution

Public Sub StokKartiKayit() Try BaglantiKontrol() Dim StokAd As String = StokKartiTanimForm.txtStokAdi.Text.ToUpper Dim ms As New MemoryStream ...
mehmet çelik's user avatar
0 votes
2 answers
1k views

Why I face Fatal Error in mysql with nodejs?

I`m trying to create a database with mysql module in nodejs but after I create a table and insert some data, when I try to SELECT and get results back, I face fatal error!! D:\Programming\Farahani ...
Ali Babaee's user avatar
0 votes
0 answers
2k views

Fatal error: Cannot declare class User, because the name is already in use

I checked a few topics, but I can't find a solution to my problem in any of them. In Index.php i have defined in header of document <?php include_once('class/User.php'); } (in class/User.php i've ...
Zimnyjestem's user avatar
-1 votes
1 answer
5k views

SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: No such host is known. Error in laravel 8 [duplicate]

When I am writing the php artisan migrate command then I have see something like this:- SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: No such host is known. (SQL: select * from ...
Naim Biswas's user avatar
0 votes
0 answers
27 views

PHP Basic SQL INSERT INTO Fatal Error 1048 [duplicate]

I have an error when i submit my form : Fatal error: Uncaught PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 and nothing is sent in the DB. I make a prepared request and check if ...
Nevets08's user avatar
0 votes
1 answer
275 views

Running out of memory with mysqli on php (256kB???)

I'm trying to execute an SELECT statement via PHP on a MySQL database. When I execute my script, I get an fatal error: Fatal error: Allowed memory size of 262144 bytes exhausted (tried to allocate ...
Christian's user avatar
1 vote
1 answer
664 views

Uncaught PDOException: Syntax error or access violation: 1064 from improper spacing

I am getting two different types of errors from a single line and it took me long to find out where the error was. This is an interesting behavior php shows while concatenating MySql query statements ...
code-mon's user avatar
0 votes
1 answer
2k views

Fatal error: Uncaught Error: Unsupported operand types in updateMax function

I am working on an eCommerce website and have ran into an issue while trying to improve it. Currently, I generating my cart id by using a random number. I want to be able generate the cart id by ...
WaterHearts's user avatar
-1 votes
1 answer
4k views

php i got Uncaught Error Function name must be a string in

i on doing project make web application that automaticly generate number. and i get this error : Notice: Undefined variable: getRomawi in C:\xampp\htdocs\bigweb\number_generate.php on line 5 Fatal ...
casthrotopes's user avatar
0 votes
1 answer
692 views

WordPress Fatal error : Uncaught Error after failed auto update to 5.1.1

WordPress Auto Update to 5.1.1 failed Website left completely blank (error as below) WordPress Login & Admin pages also blank Deleted the .Maintenance file after the Failed Auto Update Renamed ...
h3ll H0le's user avatar
2 votes
0 answers
818 views

Fatal error: Uncaught Error: Cannot use object of type PDOStatement as array [duplicate]

I want a php script that gives me a random selected row from my db table and change the value of "dispensered" to 1. Im sure its kinda stupid, but Im new to this stuff. Here is my code: <?php $...
Danger Seeker's user avatar
0 votes
1 answer
74 views

Is there any way to make PDO exceptions be caught by default?

I use PDO over my webapp. I use this simple code to ensure that the query is executed successfully & handle the error if it fails $stmt = // MySQL query; if($stmt->execute()){ // Do ...
Max's user avatar
  • 1

15 30 50 per page
1
2 3 4 5
7