Page 1 of 1
php_flag /php5.6
Posted: Mon 27. Jan 2025, 09:35
by [RGK]*Kent
Hello,
I am using a vbulletin forum which is on php5.6 and it assigns to php_flag in .htaccess I have the dependencies
php_flag short_open_tag on
php_value short_open_tag 1
Error log report: /.htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration
GET / HTTP/1.1
Please can someone help me?
I have been getting this error since I migrated to keyhelp. In the past I used i-mscp but I had no problems.
Thanks!
Re: php_flag /php5.6
Posted: Mon 27. Jan 2025, 10:08
by Alexander
Hello,
Do not use .htaccess, instead create a new file with the name:
and the content:
Re: php_flag /php5.6
Posted: Mon 27. Jan 2025, 19:42
by [RGK]*Kent
Hello,
The problem seems to be solved with what you told me, but then these appeared.
I did not encounter this on the i-mscp system. I am still using php5.6.40
The log report shows this and the page is blank. is there a solution without messing with php?
Look at the Log Report:
Code: Select all
AH01071: Got error 'PHP message: PHP Warning: array_keys() expects parameter 1 to be array, null given in /forum/htdocs/includes/functions.php on line 4219
PHP message: PHP Warning: Invalid argument supplied for foreach() in /forum/htdocs/includes/functions.php on line 4219
PHP message: PHP Deprecated: Assigning the return value of new by reference is deprecated in /forum/htdocs/global.php(607) : eval()'d code on line 1545
PHP message: PHP Deprecated: Assigning the return value of new by reference is deprecated in /forum/htdocs/global.php(607) : eval()'d online code 1710
PHP message: PHP Deprecated: Assigning the return value of new by reference is deprecated in /forum/htdocs/global.php(607) : eval()'d code on line 1977
PHP message: PHP Deprecated: Assigning the return value of new by reference is deprecated in /forum/htdocs/global.php(607) : eval()'d code on line 2142
PHP message: PHP Deprecated: Assigning the return value of new by reference is deprecated in /forum/htdocs/global.php(607) : eval()'d code on line 2412
PHP message: PHP Deprecated: Assigning the return value of new by reference is deprecated in /forum/htdocs/global.php(607) : eval()'d code on line 2577
PHP message: PHP Deprecated: Assigning the return value of new by reference is deprecated in /forum/htdocs/global.php(607) : eval()'d code on line 2844
PHP message: PHP Deprecated: Assigning the return value of new by reference is deprecated in /forum/htdocs/global.php(607) : eval()'d code on line 3009
PHP message: PHP Deprecated: Function split() is deprecated in /forum/htdocs/global.php(607) : eval()'d code on line 134
PHP message: PHP Deprecated: Function split() is deprecated in /forum/htdocs/global.php(607) : eval()'d code on line 274
PHP message: PHP Warning: Invalid argument supplied for foreach() in /forum/htdocs/global.php(607) : eval()'d code on line 443
PHP message: PHP Deprecated: Function split() is deprecated in /forum/htdocs/global.php(607) : eval()'d code on line 522
PHP message: PHP Deprecated: Function split() is deprecated in /forum/htdocs/global.php(607) : eval()'d code on line 597
PHP message: PHP Deprecated: Function split() is deprecated in /forum/htdocs/global.php(607) : eval()'d code on line 611
PHP message: PHP Deprecated: Function split() is deprecated in /forum/htdocs/global.php(607) : eval()'d code on line 872
PHP message: PHP Deprecated: Function split() is deprecated in /forum/htdocs/global.php(607) : eval()'d code on line 882
Thank you!
[Mod-Edit]
CODE tags inserted.
Please always add CODE tags to console output, contents of configuration files, excerpts from log files, etc. in the future!
Re: php_flag /php5.6
Posted: Mon 27. Jan 2025, 19:50
by 24unix
[RGK]*Kent wrote: ↑Mon 27. Jan 2025, 19:42
I did not encounter this on the i-mscp system. I am still using php5.6.40
You installed 5.6 and enabled it for the domain?
BTW vbulletin runs with PHP8. Maybe you have a dated version?
Re: php_flag /php5.6
Posted: Mon 27. Jan 2025, 19:56
by [RGK]*Kent
Yes, per/domain and subdomain
It's a useless forum, and it's not designed for php updates, or maybe I'm just not good at it. but I've been using it since 2009, and it hasn't reported any errors on php5 updates in i-mscp. since I migrated to keyhelp I've been experiencing this.
Maybe someone can help me
Thanks
Re: php_flag /php5.6
Posted: Tue 28. Jan 2025, 09:57
by Alexander
Deprecated Messages:
Code: Select all
PHP message: PHP Deprecated: Assigning the return value of new by reference is deprecated in /forum/htdocs/global.php(607)
PHP message: PHP Deprecated: Function split() is deprecated in /forum/htdocs/global.php(607)
Messages like these may have been hidden from you on your old system. If it was also running PHP 5.6, then these messages would have occurred anyway, but may not have been displayed / have been hidden by various ini directives (e.g. log_errors, display-errors, ...).
Other PHP errors:
Code: Select all
AH01071: Got error 'PHP message: PHP Warning: array_keys() expects parameter 1 to be array, null given in /forum/htdocs/includes/functions.php on line 4219
PHP message: PHP Warning: Invalid argument supplied for foreach() in /forum/htdocs/includes/functions.php on line 4219
PHP message: PHP Warning: Invalid argument supplied for foreach() in /forum/htdocs/global.php(607) : eval()'d code on line 443
This could be caused by a configuration error in your forum application. Without knowing the code nobody could tell, what the reason for this is.
Re: php_flag /php5.6
Posted: Tue 28. Jan 2025, 11:23
by [RGK]*Kent
Hello,
Can I put the code here, global.php and functions.php? Maybe we can find a solution, and does anyone want to help me?
Thank you!
Re: php_flag /php5.6
Posted: Tue 28. Jan 2025, 12:13
by [RGK]*Kent
Hi,[
Thank you!
Re: php_flag /php5.6
Posted: Tue 28. Jan 2025, 16:50
by Tobi
EDIT by Tobi:
No external downloads!
Re: php_flag /php5.6
Posted: Thu 30. Jan 2025, 14:07
by [RGK]*Kent
Hello,
I'm back with the codes attached. If anyone can help me, don't hesitate.
Thanks!
Re: php_flag /php5.6
Posted: Thu 6. Feb 2025, 12:15
by [RGK]*Kent
Hello,
Can anyone help me with the above?
Thanks!
Re: php_flag /php5.6
Posted: Thu 6. Feb 2025, 12:26
by Alexander
Enable Support access (Configuration -> Support access) and send me the server IP via PM, i will have a look