This question already has answers here:
Reference - What does this error mean in PHP?
(38 answers)
How can I get useful error messages in PHP?
(41 answers)
What does the PHP error message "Notice: Use of undefined constant" mean?
(2 answers)
How can I make PHP display the error instead of giving me 500 Internal Server Error [duplicate]
(7 answers)
Closed 3 years ago.
I am trying to restore my old site which was built on PHP 5.6;
the following code is causing a 500 Error It has something to do with the session_start however I don't know how I can fix this to work.
Please could someone take a look and find a possible solution.
<?php
session_start();
include('_config/logged-out.php');
$login = clean($_GET[login]);
if(isset($_SESSION[usr_name]) && isset($_SESSION[usr_level]) && login!=logout) echo('<meta http-equiv="refresh" content="0;url=https://example.com" />'); else { } ?>
Related
This question already has answers here:
How can I get useful error messages in PHP?
(41 answers)
How can I make PHP display the error instead of giving me 500 Internal Server Error [duplicate]
(7 answers)
500 internal server error, how to debug [duplicate]
(2 answers)
PHP's white screen of death [duplicate]
Closed 3 years ago.
This code return an error500 and have no clue why
<?php
$url = "https://www.idownloadblog.com/tag/iphone/feed"; // url to parse
$rss = simplexml_load_file($url); // XML parser
// RSS items loop
echo $rss;
?>
Becuase simplexml_load_file is to load a file not an URL
http://php.net/manual/en/function.simplexml-load-file.php
This question already has answers here:
Undefined constant error in php 7.2
(5 answers)
Reference - What does this error mean in PHP?
(38 answers)
Closed 5 years ago.
I have this error appear after to defined the constant
how to resolve ?
Warning: Use of undefined constant MODULE_HEADER_BREADCRUMP_STATUS - assumed 'MODULE_HEADER_BREADCRUMP_STATUS' (this will throw an Error in a future version of PHP) in /var/www/clients/client1/web13/web/boutique/sources/template/Default/files/breadcrumb.php on line 22
my line
if (defined(MODULE_HEADER_BREADCRUMP_STATUS)) {
if (MODULE_HEADER_BREADCRUMP_STATUS != 'True' || empty(MODULE_HEADER_BREADCRUMP_TITLE) ) {...
}
}
When checking to see if a constant is defined, add quotes around it:
if(defined("MODULE_HEADER_BREADCRUMP_STATUS"))
This question already has answers here:
Reference - What does this error mean in PHP?
(38 answers)
Closed 6 years ago.
getting this php fatal error on this line when try apply theme
case('homeimage_texts'):
if(!empty(Params::getParam('homeimage'))){
foreach(Params::getParam('homeimage',false,false,false) as $key => $value){
osc_set_preference($key,trim($value),'osclasswizards_theme');
}
}
osc_add_flash_ok_message(__('Banner settings updated correctly', OSCLASSWIZARDS_THEME_FOLDER), 'admin');
osc_redirect_to(osc_admin_render_theme_url('oc-content/themes/'.OSCLASSWIZARDS_THEME_FOLDER.'/admin/settings.php#banner'));
break;
It looks like a PHP version issue. I you are using PHP 5.3 or below you may get this error message.
This question already has answers here:
Reference - What does this error mean in PHP?
(38 answers)
Closed 8 years ago.
I am trying to put this line of code:
echo $row['url'];
between the quotations in this line of code:
$data = file_get_contents ("");
I have a link saved in my database which I want to be displayed between those brackets, but I keep getting syntax errors whatever way I try it. Is this possible or am I being stupid?
try that :
$data = file_get_contents ($row['url']);
This question already has answers here:
Reference - What does this error mean in PHP?
(38 answers)
Closed 9 years ago.
When I am using my code in wamp (old php 3.2 may be) there is no warning or note but when I run the same code it is giving me a warning or a note:
Notice: Undefined index: emailseaech in
C:\xampp\htdocs\employee\RecruitingProcess\manageuser\pages\defaultresume.php
on line 6
for this
$emailseaech = $_GET["emailseaech"];
I am using ajax http to read the date passing value.
$emailseaech = '';
if(!empty($_GET["emailseaech"]))
$emailseaech=$_GET["emailseaech"];