PHP Selector problem

claudiorouge

Verified User
Joined
Jan 4, 2018
Messages
8
Hi all,
i have a problem with new skin evolution and the php selector.
if i try to select any choose to first and second php, i have always the error (image attached) and the php it is not changed.

phpselector_directadmin.PNG


someone had the same problem?

Thank you,
Claudio
 
reply

Hi,
yes sure, i open a ticket to support..
is only for share here my problem with community..

thank you.
regards,
Claudio
 
Hi,

Exact same error here. Can´t change PHP. It is confusing what to do with bugs, as the rules mentioned
Please avoid creating tickets or sending us emails about it, until it's closer to final release.

So I think Claudio just followed the instructions. Anyway, Claudio if you get an answer from support, please share here.

Kind regards, Fred
 
We follow forums as well :) The issue has been noted, and I expect to get it sorted out tomorrow (and post an update to this thread). Thank you for the report!
 
Weird, some autoformatting happened. May you check the post again? I have edited it.
 
PHP selector still doesn't work correctly. It gives no errors in browser, but it doesn't really swap PHP versions.
I'm using the evolution skin and the latest DirectAdmin beta version.
Code:
Version: DirectAdmin v.1.52.1
Compiled on 'CentOS 6.0 64-Bit'
Compile time: Jan 29 2018 at 01:52:09
Compiled with IPv6

Running DirectAdmin in debug mode (./directadmin b2000) gives the following output:
Code:
Sockets::handshake - begin
Sockets::handshake - end
/CMD_DOMAIN
GET string: json=yes
 0: Accept-Encoding: gzip, deflate, br
 1: Accept-Language: en-US,en;q=0.5
 2: Accept: */*
 3: Connection: keep-alive
 4: Content-Length: 69
 5: Content-Type: application/x-www-form-urlencoded
 6: Cookie: session=Xt9LZAJ8jWKDizI8RT8knVCCbgURFQvnH46qCPzvtJ6aGNihooQbJcmtGEKVeFGv
 7: DNT: 1
 8: Host: 1.2.3.4:2223
 9: Referer: https://1.2.3.4:2223/user/domains/domain.com/php-selector
10: User-Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0
Post string: php1_select=2&php2_select=1&domain=domain.com&action=php_selector
Checking referer https://1.2.3.4:2223/user/domains/domain.com/php-selector to 1.2.3.4:2223
Referer check passed: 1.2.3.4=1.2.3.4 2223=2223
auth.authenticated
Plugin::addHooks: start
Plugin::addHooks: end
Command::doCommand(/CMD_DOMAIN)
Apache::addVirtualHost: main domain domain.com has a php swap. Setting nginx_php_conf_swapped=true
Apache::addVirtualHost: main domain domain.com has a php swap. Setting nginx_php_conf_swapped=true
Apache::addVirtualHost: main domain domain.com has a php swap. Setting nginx_php_conf_swapped=true
Apache::addVirtualHost: main domain domain.com has a php swap. Setting nginx_php_conf_swapped=true
Apache::addVirtualHost: main domain domain.com has a php swap. Setting nginx_php_conf_swapped=true
Apache::addVirtualHost: main domain domain.com has a php swap. Setting nginx_php_conf_swapped=true
Apache::addVirtualHost: main domain domain.com has a php swap. Setting nginx_php_conf_swapped=true
Apache::addVirtualHost: main domain domain.com has a php swap. Setting nginx_php_conf_swapped=true
Apache::addVirtualHost: main domain domain.com has a php swap. Setting nginx_php_conf_swapped=true
Apache::addVirtualHost: main domain domain.com has a php swap. Setting nginx_php_conf_swapped=true
Apache::addVirtualHost: main domain domain.com has a php swap. Setting nginx_php_conf_swapped=true
Apache::addVirtualHost: main domain domain.com has a php swap. Setting nginx_php_conf_swapped=true
Dynamic(api=0, error=0):
	text='PHP versions saved'
	result=''
Command::doCommand(/CMD_DOMAIN) : finished
Command::run: finished /CMD_DOMAIN
Sockets::handshake - begin
Sockets::handshake - end
/CMD_JSON_LANG
GET string: request=global
 0: Accept-Encoding: gzip, deflate, br
 1: Accept-Language: en-US,en;q=0.5
 2: Accept: application/json
 3: Connection: keep-alive
 4: Content-Type: application/json
 5: Cookie: session=Xt9LZAJ8jWKDizI8RT8knVCCbgURFQvnH46qCPzvtJ6aGNihooQbJcmtGEKVeFGv
 6: DNT: 1
 7: Host: 1.2.3.4:2223
 8: Referer: https://1.2.3.4:2223/user/domains/domain.com/php-selector
 9: User-Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0
Checking referer https://1.2.3.4:2223/user/domains/domain.com/php-selector to 1.2.3.4:2223
Referer check passed: 1.2.3.4=1.2.3.4 2223=2223
auth.authenticated
Plugin::addHooks: start
Plugin::addHooks: end
Command::doCommand(/CMD_JSON_LANG)
Send::json_array(list size=6)
Command::doCommand(/CMD_JSON_LANG) : finished
Command::run: finished /CMD_JSON_LANG
Sockets::handshake - begin
Sockets::handshake - end
/CMD_JSON_LANG
GET string: request=global
 0: Accept-Encoding: gzip, deflate, br
 1: Accept-Language: en-US,en;q=0.5
 2: Accept: application/json
 3: Connection: keep-alive
 4: Content-Type: application/json
 5: Cookie: session=Xt9LZAJ8jWKDizI8RT8knVCCbgURFQvnH46qCPzvtJ6aGNihooQbJcmtGEKVeFGv
 6: DNT: 1
 7: Host: 1.2.3.4:2223
 8: Referer: https://1.2.3.4:2223/user/domains/domain.com/php-selector
 9: User-Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0
Checking referer https://1.2.3.4:2223/user/domains/domain.com/php-selector to 1.2.3.4:2223
Referer check passed: 1.2.3.4=1.2.3.4 2223=2223
auth.authenticated
Plugin::addHooks: start
Plugin::addHooks: end
Command::doCommand(/CMD_JSON_LANG)
Send::json_array(list size=6)
Command::doCommand(/CMD_JSON_LANG) : finished
Command::run: finished /CMD_JSON_LANG

In the output above, I have replaced the actual domain with "domain.com" and the IP of the server with "1.2.3.4".

UPDATE:
If I use the Enhanced skin, PHP Selector works fine.
So it's a skin problem, not a problem with DirectAdmin binaries.
 
Last edited:
It should be fixed in the latest version of the skin. Please try updating it :)
 
I updated the skin and DirectAdmin latest beta binaries, the issue is fixed now.
 
I have render error when open PHP Selector.
DA bins and skin updated today.

Code:
 Error Captured inside render on “”
Data
Route Name 	user/domains/php
Route Query 	{}
Route Params 	{ "domain": "testdomain.com", "action": "view" }
Domain 	testdomain.com
User 	testuser
User Level 	user
TypeError: t.apiData.data[t.apiData.select[0]] is undefined

n@http://1.2.3.4:2222/assets/chunk-121.js?ver=61440dfe392435d6b6a7:1:2073
[17]/</</e.prototype._render@http://1.2.3.4:2222/assets/vendors.js?ver=b263ee06a69baa65ed74190d78e59348e20a5a8c:1:82646
r@http://1.2.3.4:2222/assets/vendors.js?ver=b263ee06a69baa65ed74190d78e59348e20a5a8c:1:19195
[17]/</ge.prototype.get@http://1.2.3.4:2222/assets/vendors.js?ver=b263ee06a69baa65ed74190d78e59348e20a5a8c:1:77292
ge@http://1.2.3.4:2222/assets/vendors.js?ver=b263ee06a69baa65ed74190d78e59348e20a5a8c:1:77213
mountComponent@http://1.2.3.4:2222/assets/vendors.js?ver=b263ee06a69baa65ed74190d78e59348e20a5a8c:1:19211
[17]/</Vue$3.prototype.$mount@http://1.2.3.4:2222/assets/vendors.js?ver=b263ee06a69baa65ed74190d78e59348e20a5a8c:1:100558
[17]/</Vue$3.prototype.$mount@http://1.2.3.4:2222/assets/vendors.js?ver=b263ee06a69baa65ed74190d78e59348e20a5a8c:1:105410
init@http://1.2.3.4:2222/assets/vendors.js?ver=b263ee06a69baa65ed74190d78e59348e20a5a8c:1:78863
createComponent@http://1.2.3.4:2222/assets/vendors.js?ver=b263ee06a69baa65ed74190d78e59348e20a5a8c:1:89608
createElm@http://1.2.3.4:2222/assets/vendors.js?ver=b263ee06a69baa65ed74190d78e59348e20a5a8c:1:89129
updateChildren@http://1.2.3.4:2222/assets/vendors.js?ver=b263ee06a69baa65ed74190d78e59348e20a5a8c:1:92395
patchVnode@http://1.2.3.4:2222/assets/vendors.js?ver=b263ee06a69baa65ed74190d78e59348e20a5a8c:1:93318
updateChildren@http://1.2.3.4:2222/assets/vendors.js?ver=b263ee06a69baa65ed74190d78e59348e20a5a8c:1:92019
patchVnode@http://1.2.3.4:2222/assets/vendors.js?ver=b263ee06a69baa65ed74190d78e59348e20a5a8c:1:93318
updateChildren@http://1.2.3.4:2222/assets/vendors.js?ver=b263ee06a69baa65ed74190d78e59348e20a5a8c:1:92019
patchVnode@http://1.2.3.4:2222/assets/vendors.js?ver=b263ee06a69baa65ed74190d78e59348e20a5a8c:1:93318
[17]/</Mt</<@http://1.2.3.4:2222/assets/vendors.js?ver=b263ee06a69baa65ed74190d78e59348e20a5a8c:1:94875
[17]/</</e.prototype._update@http://1.2.3.4:2222/assets/vendors.js?ver=b263ee06a69baa65ed74190d78e59348e20a5a8c:1:81447
r@http://1.2.3.4:2222/assets/vendors.js?ver=b263ee06a69baa65ed74190d78e59348e20a5a8c:1:19185
[17]/</ge.prototype.get@http://1.2.3.4:2222/assets/vendors.js?ver=b263ee06a69baa65ed74190d78e59348e20a5a8c:1:77292
[17]/</ge.prototype.run@http://1.2.3.4:2222/assets/vendors.js?ver=b263ee06a69baa65ed74190d78e59348e20a5a8c:1:78058
flushSchedulerQueue@http://1.2.3.4:2222/assets/vendors.js?ver=b263ee06a69baa65ed74190d78e59348e20a5a8c:1:20898
nextTick/<@http://1.2.3.4:2222/assets/vendors.js?ver=b263ee06a69baa65ed74190d78e59348e20a5a8c:1:13785
flushCallbacks@http://1.2.3.4:2222/assets/vendors.js?ver=b263ee06a69baa65ed74190d78e59348e20a5a8c:1:13595
 
As i see in latest update it fixed, thanks.
Now have small error:
1. When i set First PHP as PHP_FPM 7.2 and Second PHP as PHP_FPM 5.6 they have extension "php72" in first line and "php" in second line. It's incorrect, First PHP must have extension "php", and second "php56". When i view httpd.conf - it's Ok, but when i see PHP Selector page - it's do not match.
 
As i see in latest update it fixed, thanks.
Now have small error:
1. When i set First PHP as PHP_FPM 7.2 and Second PHP as PHP_FPM 5.6 they have extension "php72" in first line and "php" in second line. It's incorrect, First PHP must have extension "php", and second "php56". When i view httpd.conf - it's Ok, but when i see PHP Selector page - it's do not match.

Please check it in the latest version of the skin, the problem should be fixed there.
 
CloudLinux PHP selector is a third-party software installed as an addon. It knows nothing about used skin.
 
Back
Top