Cannot redeclare JConfig::$session_redis_server_host
Moderator: General Support Moderators
Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
-
- Joomla! Fledgling
- Posts: 4
- Joined: Mon Apr 06, 2009 6:02 pm
Cannot redeclare JConfig::$session_redis_server_host
Hello All,
Since the last update of Joomla (3.8.3) lot of my websites has a blank page error 500 with in the log :
AH01071: Got error 'PHP message: PHP Fatal error: Cannot redeclare JConfig::$session_redis_server_host in /home/mywebsite/public_html/configuration.php on line 95\n'
Thanks in advance for your support.
Since the last update of Joomla (3.8.3) lot of my websites has a blank page error 500 with in the log :
AH01071: Got error 'PHP message: PHP Fatal error: Cannot redeclare JConfig::$session_redis_server_host in /home/mywebsite/public_html/configuration.php on line 95\n'
Thanks in advance for your support.
Last edited by toivo on Sun Dec 17, 2017 8:20 am, edited 1 time in total.
Reason: mod note: moved from the French forum, please post to the correct forum in the future
Reason: mod note: moved from the French forum, please post to the correct forum in the future
-
- Joomla! Fledgling
- Posts: 1
- Joined: Sat Mar 16, 2013 4:25 am
Re: Cannot redeclare JConfig::$session_redis_server_host
I have this happening to my joomla site after the update to 3.8.3.
Fatal error: Cannot redeclare JConfig::$session_redis_server_host
Anyone have any answers, please?
Fatal error: Cannot redeclare JConfig::$session_redis_server_host
Anyone have any answers, please?
- sozzled
- Joomla! Virtuoso
- Posts: 4663
- Joined: Sun Jul 05, 2009 3:30 am
- Location: Canberra, Australia
- Contact:
Re: Cannot redeclare JConfig::$session_redis_server_host
See viewtopic.php?f=714&p=3506123
The standard (or "default") value for $session_redis_server_host in the configuration.php file is
The standard (or "default") value for $session_redis_server_host in the configuration.php file is
Code: Select all
public $session_redis_server_host = 'localhost';
https://www.kuneze.com/blog
Former member of Kunena project team
If you think I’m wrong then say “I think you're wrong.” If you say “You’re wrong!”, how do you know?
Former member of Kunena project team
If you think I’m wrong then say “I think you're wrong.” If you say “You’re wrong!”, how do you know?
- mbabker
- Joomla! Hero
- Posts: 2104
- Joined: Sun Feb 28, 2010 8:26 pm
- Location: White Bear Lake, MN, USA
- Contact:
Re: Cannot redeclare JConfig::$session_redis_server_host
This means you have the declaration of that property in your configuration file twice (or possibly more, why I couldn't say but it's there). Remove the extra declarations.
Release Lead, CMS Maintainer, Framework Maintainer, Security Team Member, .org System Administrator
Manually updating Joomla? See https://gist.github.com/mbabker/d7bfb4e1e2fbc6b7815a733607f89281
Manually updating Joomla? See https://gist.github.com/mbabker/d7bfb4e1e2fbc6b7815a733607f89281
-
- Joomla! Fledgling
- Posts: 2
- Joined: Thu Jan 11, 2018 2:08 am
Re: Cannot redeclare JConfig::$session_redis_server_host
I am not sure which lines I should delete.
Any thoughts and guidance?
public $session_memcache_server_host = 'localhost';
public $session_memcache_server_port = '11211';
public $session_memcached_server_host = 'localhost';
public $session_memcached_server_port = '11211';
public $session_redis_server_host = 'localhost';
public $session_redis_server_port = '6379';
Any thoughts and guidance?
public $session_memcache_server_host = 'localhost';
public $session_memcache_server_port = '11211';
public $session_memcached_server_host = 'localhost';
public $session_memcached_server_port = '11211';
public $session_redis_server_host = 'localhost';
public $session_redis_server_port = '6379';
- mbabker
- Joomla! Hero
- Posts: 2104
- Joined: Sun Feb 28, 2010 8:26 pm
- Location: White Bear Lake, MN, USA
- Contact:
Re: Cannot redeclare JConfig::$session_redis_server_host
The key is in the error message. "Cannot redeclare JConfig::$session_redis_server_host". This means there are multiple declarations of the $session_redis_server_host property in the file. So you need to delete all the extras until there is only one. If there are any other duplicated properties, those will have to be removed as well.
Release Lead, CMS Maintainer, Framework Maintainer, Security Team Member, .org System Administrator
Manually updating Joomla? See https://gist.github.com/mbabker/d7bfb4e1e2fbc6b7815a733607f89281
Manually updating Joomla? See https://gist.github.com/mbabker/d7bfb4e1e2fbc6b7815a733607f89281
- ribo
- Joomla! Virtuoso
- Posts: 3168
- Joined: Sun Jan 03, 2010 8:47 pm
- Contact:
Re: Cannot redeclare JConfig::$session_redis_server_host
Check the solution that @mbabker said. Redis works fine in joomla session. Tested.
chat room spontes : http://www.spontes.com
- daisysmom
- Joomla! Intern
- Posts: 97
- Joined: Tue Oct 16, 2007 12:34 pm
Re: Cannot redeclare JConfig::$session_redis_server_host
I have the same thing going on with one of my sites.
My error log says this:
[12-Jan-2018 20:59:24 UTC] PHP Fatal error: Cannot redeclare JConfig::$session_redis_server_host in /home/lexalum2/public_html/configuration.php on line 100
I see two mentions of the $session_redis_server_host but neither are on line 100
On Line 100 I see this: public $replytoname = '';
Any and all suggestions are greatly appreciated. Thank you!
My error log says this:
[12-Jan-2018 20:59:24 UTC] PHP Fatal error: Cannot redeclare JConfig::$session_redis_server_host in /home/lexalum2/public_html/configuration.php on line 100
I see two mentions of the $session_redis_server_host but neither are on line 100
On Line 100 I see this: public $replytoname = '';
Any and all suggestions are greatly appreciated. Thank you!
- sozzled
- Joomla! Virtuoso
- Posts: 4663
- Joined: Sun Jul 05, 2009 3:30 am
- Location: Canberra, Australia
- Contact:
Re: Cannot redeclare JConfig::$session_redis_server_host
@daisysmom: maybe you miscounted the line numbers?
The real question is this: do you have more than one occurrence ofwithin the file configuration.php? Yes or no?
... and if you have two occurrences of these things, then delete one of them. That's the answer.
The real question is this: do you have more than one occurrence of
Code: Select all
public $session_redis_server_host = 'something';
... and if you have two occurrences of these things, then delete one of them. That's the answer.
https://www.kuneze.com/blog
Former member of Kunena project team
If you think I’m wrong then say “I think you're wrong.” If you say “You’re wrong!”, how do you know?
Former member of Kunena project team
If you think I’m wrong then say “I think you're wrong.” If you say “You’re wrong!”, how do you know?
- daisysmom
- Joomla! Intern
- Posts: 97
- Joined: Tue Oct 16, 2007 12:34 pm
Re: Cannot redeclare JConfig::$session_redis_server_host
Yes, there are two occurrences of public $session_redis_server_host = 'localhost';
I deleted one at a time and saved the file and checked site after each try with no change. Will the change be right away or does it have to propagate?
I deleted one at a time and saved the file and checked site after each try with no change. Will the change be right away or does it have to propagate?
- ribo
- Joomla! Virtuoso
- Posts: 3168
- Joined: Sun Jan 03, 2010 8:47 pm
- Contact:
Re: Cannot redeclare JConfig::$session_redis_server_host
daisysmom wrote:Yes, there are two occurrences of public $session_redis_server_host = 'localhost';
I deleted one at a time and saved the file and checked site after each try with no change. Will the change be right away or does it have to propagate?
You must have these values for session
Code: Select all
public $session_redis_server_host
public $session_redis_server_port
public $session_redis_persist
public $session_redis_server_auth
public $session_redis_server_db
If anyone is duplicated please delete it
chat room spontes : http://www.spontes.com
-
- Joomla! Fledgling
- Posts: 2
- Joined: Thu Jan 11, 2018 2:08 am
Re: Cannot redeclare JConfig::$session_redis_server_host
mbabker wrote:The key is in the error message. "Cannot redeclare JConfig::$session_redis_server_host". This means there are multiple declarations of the $session_redis_server_host property in the file. So you need to delete all the extras until there is only one. If there are any other duplicated properties, those will have to be removed as well.
- daisysmom
- Joomla! Intern
- Posts: 97
- Joined: Tue Oct 16, 2007 12:34 pm
Re: Cannot redeclare JConfig::$session_redis_server_host
THANK YOU ALL!!
I have a working site again!!
Now, can anyone explain why the configuration file changes mysteriously? Is it a virus or a hack?
Thank you again SO much!!
I have a working site again!!
Now, can anyone explain why the configuration file changes mysteriously? Is it a virus or a hack?
Thank you again SO much!!
Return to “Migrating and Upgrading to Joomla! 3.x”
Who is online
Users browsing this forum: abufatima84 and 10 guests