php_flag /php5.6

General discussions around KeyHelp.
Post Reply
User avatar
[RGK]*Kent
Posts: 19
Joined: Sat 28. Oct 2023, 09:55
Location: Bucharest/Romania
Contact:

php_flag /php5.6

Post 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!
User avatar
Alexander
Keyweb AG
Posts: 4448
Joined: Wed 20. Jan 2016, 02:23

Re: php_flag /php5.6

Post by Alexander »

Hello,

Do not use .htaccess, instead create a new file with the name:

Code: Select all

.user.ini
and the content:

Code: Select all

short_open_tag = 1
Mit freundlichen Grüßen / Best regards
Alexander Mahr

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
User avatar
[RGK]*Kent
Posts: 19
Joined: Sat 28. Oct 2023, 09:55
Location: Bucharest/Romania
Contact:

Re: php_flag /php5.6

Post 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!
Last edited by Jolinar on Mon 27. Jan 2025, 19:49, edited 1 time in total.
Reason: Mod-Edit
User avatar
24unix
Posts: 2037
Joined: Sun 21. Jun 2020, 17:16
Location: Kollmar
Contact:

Re: php_flag /php5.6

Post 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?
Cheers Micha
--
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.
User avatar
[RGK]*Kent
Posts: 19
Joined: Sat 28. Oct 2023, 09:55
Location: Bucharest/Romania
Contact:

Re: php_flag /php5.6

Post 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
User avatar
Alexander
Keyweb AG
Posts: 4448
Joined: Wed 20. Jan 2016, 02:23

Re: php_flag /php5.6

Post 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.
Mit freundlichen Grüßen / Best regards
Alexander Mahr

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
User avatar
[RGK]*Kent
Posts: 19
Joined: Sat 28. Oct 2023, 09:55
Location: Bucharest/Romania
Contact:

Re: php_flag /php5.6

Post 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!
User avatar
[RGK]*Kent
Posts: 19
Joined: Sat 28. Oct 2023, 09:55
Location: Bucharest/Romania
Contact:

Re: php_flag /php5.6

Post by [RGK]*Kent »

Hi,[

Thank you!
User avatar
Tobi
Community Moderator
Posts: 3230
Joined: Thu 5. Jan 2017, 13:24

Re: php_flag /php5.6

Post by Tobi »

[RGK]*Kent wrote: Tue 28. Jan 2025, 12:13 Thank you!
EDIT by Tobi:
No external downloads!
Gruß,
Tobi


-----------------------------
wewoco.de
Das Forum für Reseller, Digital-Agenturen, Bildschirmarbeiter und Mäuseschubser
User avatar
[RGK]*Kent
Posts: 19
Joined: Sat 28. Oct 2023, 09:55
Location: Bucharest/Romania
Contact:

Re: php_flag /php5.6

Post by [RGK]*Kent »

Hello,

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
User avatar
[RGK]*Kent
Posts: 19
Joined: Sat 28. Oct 2023, 09:55
Location: Bucharest/Romania
Contact:

Re: php_flag /php5.6

Post by [RGK]*Kent »

Hello,

Can anyone help me with the above?

Thanks!
User avatar
Alexander
Keyweb AG
Posts: 4448
Joined: Wed 20. Jan 2016, 02:23

Re: php_flag /php5.6

Post by Alexander »

Enable Support access (Configuration -> Support access) and send me the server IP via PM, i will have a look
Mit freundlichen Grüßen / Best regards
Alexander Mahr

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
Post Reply