• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

PreUpgrade Checkfile Issue/Bug

onycro

Basic Pleskian
Hey Team
I just found out that your "panel_preupgrade_checker.php" got a bug.

It failed for my server at check #24 and stopped there:
Code:
[2012-07-06 03:20:56][INFO] ==> STEP 24: Checking the availability of Plesk Panel TCP ports...
[2012-07-06 03:20:56][FATAL_ERROR] Unable to get IP address

The problem is there on line 3032
Code:
if (!preg_match_all('/inet addr:([0-9\.]+)/', $output, $matches)) {

Because I've got a german version of ifconfig, it isn't "inet addr" it is "inet Adresse".
Maybe I'm to late or smth. I used this file:
http://mirror.1und1.de/software/parallels/PSA_11.0.9/examiners/panel_preupgrade_checker.php

The rest of it worked very well.

So my fix for that file (only German language):

line 3032
Code:
if (!preg_match_all('/inet addr:([0-9\.]+)/', $output, $matches)) {
change that to
Code:
if (!preg_match_all('/inet Adresse:([0-9\.]+)/', $output, $matches)) {

line 3061
Code:
if (!preg_match_all('/inet6 addr: ?([^ ][^\/]+)/', $output, $matches)) {
change that to
Code:
if (!preg_match_all('/inet6-Adresse: ?([^ ][^\/]+)/', $output, $matches)) {

line 3071
Code:
if (!preg_match_all('/inet addr: ?([^ ]+)/', $output, $matches)) {
change that to
Code:
if (!preg_match_all('/inet Adresse: ?([^ ]+)/', $output, $matches)) {

Here is the complete code: http://pastebin.com/ebHnHPBi

Good luck for you guys.
 
Interesting, so parallels should provide a checker for almost every major language supported :)
 
I suggest a method which would work for every language:
preg match without a language specific string
 
Hello,
I have the same problem on my centos server with the plesk115_preupgrade_checker.php

i have change the "/inet addr:" to "/inet adr:"
and the "inet6:" to "adr inet6:"

now it's work !
 
Back
Top