Forum

undefined constant ...
 
Notifications
Clear all

undefined constant _CHARSET future error

1 Posts
1 Users
0 Likes
31 Views
Jan_AQ
(@jan_aq)
Posts: 1300
Noble Member
Topic starter
 

This is in the error logs:

PHP Notice: Use of undefined constant _CHARSET - assumed '_CHARSET' in /public_html/fanfiction/header.php on line 67

PHP Warning: Use of undefined constant _CHARSET - assumed '_CHARSET' (this will throw an Error in a future version of PHP) in /public_html/fanfiction/header.php on line 67

Line 67 says:

header("Content-Type: text/html; charset="._CHARSET);

 

 

I looked on en.php, line 4:

define ("_CHARSET""ISO-8859-1");
 
 

Hmmm, how to fix this?

 

 


If I delete charset="._CHARSET from line 67 will it fix it?
 
 
Edit:
 

On

fanfiction/header.php on line 67

I changed 

header("Content-Type: text/html; charset="._CHARSET);

to

header("Content-Type: text/html; charset=._CHARSET");
 
I think the " might of been in the wrong place.

Whoever said nothing is impossible never tried slamming a revolving door.

url: https://www.potionsandsnitches.org/fanfiction
php: 7.4.33 msql: 5.6.51-community GPL
efic version: 3.5.5 latest patches: yes
bridges: none mods: challenges, tracker, story end, beta, word

 
Posted : 21/08/2023 3:05 pm
Share: