php_flag /php5.6
- [RGK]*Kent
- Posts: 19
- Joined: Sat 28. Oct 2023, 09:55
- Location: Bucharest/Romania
- Contact:
php_flag /php5.6
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
Do not use .htaccess, instead create a new file with the name:
Code: Select all
.user.ini
Code: Select all
short_open_tag = 1
Alexander Mahr
**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
- [RGK]*Kent
- Posts: 19
- Joined: Sat 28. Oct 2023, 09:55
- Location: Bucharest/Romania
- Contact:
Re: php_flag /php5.6
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
[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!
Reason: Mod-Edit
Re: php_flag /php5.6
You installed 5.6 and enabled it for the domain?[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
BTW vbulletin runs with PHP8. Maybe you have a dated version?
--
A Windows user reinstalls software every few weeks.
A Linux user reinstalls software every few weeks.
The difference is with Linux the version numbers change.
- [RGK]*Kent
- Posts: 19
- Joined: Sat 28. Oct 2023, 09:55
- Location: Bucharest/Romania
- Contact:
Re: php_flag /php5.6
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
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)
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
Alexander Mahr
**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
- [RGK]*Kent
- Posts: 19
- Joined: Sat 28. Oct 2023, 09:55
- Location: Bucharest/Romania
- Contact:
Re: php_flag /php5.6
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!
- [RGK]*Kent
- Posts: 19
- Joined: Sat 28. Oct 2023, 09:55
- Location: Bucharest/Romania
- Contact:
Re: php_flag /php5.6
Thank you!
Re: php_flag /php5.6
EDIT by Tobi:
No external downloads!
Tobi
-----------------------------
wewoco.de
Das Forum für Reseller, Digital-Agenturen, Bildschirmarbeiter und Mäuseschubser
- [RGK]*Kent
- Posts: 19
- Joined: Sat 28. Oct 2023, 09:55
- Location: Bucharest/Romania
- Contact:
Re: php_flag /php5.6
I'm back with the codes attached. If anyone can help me, don't hesitate.
Thanks!
- Attachments
-
- functions&global.rar
- (50.52 KiB) Downloaded 82 times
- [RGK]*Kent
- Posts: 19
- Joined: Sat 28. Oct 2023, 09:55
- Location: Bucharest/Romania
- Contact:
Re: php_flag /php5.6
Can anyone help me with the above?
Thanks!
Re: php_flag /php5.6
Alexander Mahr
**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************