When attempting to do testing with PHP Info, and setting php_info to true phpinfo.php will still return as disabled.
Steps to reproduce:
1) Go to the includes folder, edit config.inc.php, and change $cfg['php_info'] to true.
2) Open phpinfo.php
Expected results:
The PHP Info should be rendered when attempting to debug.
Actual results:
The PHP Info will still show disabled.
php_info will show disabled even after being enabled
Re: php_info will show disabled even after being enabled
Update:
I resolved this issue after adding else.
Before:
After:
I resolved this issue after adding else.
Before:
Code: Select all
if ($cfg['php_info'] == false)
message(__FILE__, __LINE__, 'error', '[b]Error[/b][br]phpinfo disabled');
Code: Select all
if ($cfg['php_info'] == false)
message(__FILE__, __LINE__, 'error', '[b]Error[/b][br]phpinfo disabled');
else
- wbartels
- netjukebox developer
- Posts: 881
- Joined: Thu Nov 04, 2004 3:12 pm
- Location: Netherlands
- Contact:
Re: php_info will show disabled even after being enabled
There is no bug, when setting:
In the include/config.inc.php file, it will work!
Code: Select all
$cfg['php_info'] = true;
Re: php_info will show disabled even after being enabled
Willem,
I see what had happened now.
I was updating the local config, and not the dev config.
All is well now. Apologies in advance.
Thanks,
Chris
I see what had happened now.
I was updating the local config, and not the dev config.
All is well now. Apologies in advance.
Thanks,
Chris
- wbartels
- netjukebox developer
- Posts: 881
- Joined: Thu Nov 04, 2004 3:12 pm
- Location: Netherlands
- Contact:
Re: php_info will show disabled even after being enabled
No problem, I close the topic.ix6tech wrote:Willem,
I see what had happened now.
I was updating the local config, and not the dev config.
All is well now. Apologies in advance.
Thanks,
Chris