Linked Questions
2,011 questions linked to/from Reference - What does this error mean in PHP?
33
votes
9
answers
87k
views
Method validate does not exist - Laravel 5.4 [duplicate]
I have a very weird problem. When I'm submitting the form, it throws an error with server-side validation.
Here is my simple controller:
namespace App\Http\Controllers;
use Newsletter;
use ...
46
votes
2
answers
90k
views
Cannot modify header information - headers already sent by... WordPress Issue [duplicate]
I'm encountering this error. and I have no idea dealing with this.
Cannot modify header information - headers already sent by (output
started at
/home/ben213/public_html/wp-content/themes/...
14
votes
6
answers
175k
views
How can I fix "Notice: Undefined variable" in PHP? [duplicate]
Code:
Function ShowDataPatient($idURL)
{
$query =" select * from cmu_list_insurance,cmu_home,cmu_patient where cmu_home.home_id = (select home_id from cmu_patient where patient_hn like '%$...
18
votes
3
answers
40k
views
Declaration of Illuminate\Container\Container::get($id) must be compatible with Psr\Container\ContainerInterface::get(string $id) [duplicate]
Installed new Laravel 8 project and upon loading the first instance, I get the below error. It's weird cause I put it aside and later on upgraded another project (which was working fine) from Laravel ...
21
votes
2
answers
176k
views
Call to undefined function App\Http\Controllers\ [ function name ] [duplicate]
In my controller, I create a function getFactorial
public static function getFactorial($num)
{
$fact = 1;
for($i = 1; $i <= $num ;$i++)
$fact = $fact * $i;
return $fact;
}
Then,...
20
votes
3
answers
20k
views
Parse error: syntax error, unexpected ')', expecting :: (T_PAAMAYIM_NEKUDOTAYIM) [duplicate]
I have the following code
define("SCRIPT_URL", "");
function ifScriptFolder() {
if(isset(SCRIPT_URL) && !empty(SCRIPT_URL)) {
echo "/".SCRIPT_URL."/";
} else {
echo "/"...
19
votes
1
answer
95k
views
What means Call to a member function on boolean and how to fix [duplicate]
I'm new with cakePHP 3. I have created a controller and model where I call a function to get all users from the database.
But when I run the code below I will get the following error "Call to a ...
13
votes
5
answers
5k
views
Is starting route grouping with namespace() not allowed in Laravel 5.4? [duplicate]
Using Laravel 5.4, indeed in the documentation about Route grouping, and an example as this was given about namespacing:
Route::namespace('Admin')->group(function () {
// Controllers Within The ...
7
votes
1
answer
51k
views
Echoing session variables in php [duplicate]
I know that in php I can put a variable name inside a quoted string when I use echo, but I apparently can't do this with a session variable. Can anyone explain why?
Here is the code, with the "...
15
votes
2
answers
96k
views
php - call to a member function on null [duplicate]
Apologies if this is real basic, but when PHP gets into functions I'm over my head.
I have a plug-in for a forum, which loads a flash cookie as a method to detect duplicate accounts.
The script is ...
10
votes
1
answer
88k
views
Fatal error: Call to a member function ...on string [duplicate]
Connection is here
class connection{
private $hostname = "localhost";
private $username = "root";
private $password = "";
private $database = "idea";
private $conn;
public function __construct(){
...
15
votes
2
answers
59k
views
PHP: Fatal error: Call to a member function on a non-object [duplicate]
Getting a very strange error here, I am writing a flatfile database class and this was all working fine until I refreshed and now I am constantly getting this message:
Fatal error: Call to a member ...
1
vote
3
answers
20k
views
Call to a member function extension() on string [duplicate]
I have tried to upload the image using Postman and the image is stored in the preferred directory and the full path is stored in database but i am getting the error response
"message": "Call to a ...
9
votes
1
answer
41k
views
Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE) [duplicate]
Full Error: Parse error: syntax error, unexpected ''
(T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or
variable (T_VARIABLE) or number (T_NUM_STRING)
It says that the error is on ...
6
votes
4
answers
41k
views
PHP blank white page, no errors [duplicate]
I have a PHP page that I developed locally and worked fine. Upon uploading it to a server I now just get a blank white screen? It is the exact same code, works fine locally but doesnt remotely. I have ...