Quantcast
Channel: Ocsinventory Q&A - Recent questions without answers
Viewing all articles
Browse latest Browse all 4598

Update to OCSNG_UNIX_SERVER-2.3RC

$
0
0

Hello,

After update from OCSNG_UNIX_SERVER-2.1.2  to OCSNG_UNIX_SERVER-2.3RC page http://oscinventory-server/ocsreports is blank.

Apache error log:

[Wed Jan 04 12:57:02 2017] [error] [client 10.62.0.213] PHP Parse error:  syntax error, unexpected '[' in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 410

To fix this error i comment this section in my /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php (on line 410) :

/** function formGroup($inputType, $inputName, $name, $size, $maxlength, $inputValue = "", $class = "", $optionsSelect = [], $arrayDisplayValues = [], $attrBalise = "", $groupAddon = ""){

        echo "<div class='form-group'>";

        echo "<label class='control-label col-sm-2' for='".$inputName."'>".$name."</label>";

        echo "<div class='col-sm-10'>";

        if($inputType == "select"){

                echo "<div class='input-group'>";

                echo "<select name='".$inputName."' id='".$inputName."' class='form-control ".$class."' ".$attrBalise.">";

                foreach ($optionsSelect as $option => $value){

                        echo "<option value='".$option."' ".($inputValue == $option ? 'selected' : '').">".($arrayDisplayValues[$option] ? $arrayDisplayValues[$option] : $option)."</option>";

                }

                echo "</select>";

                if($groupAddon != ""){

                    echo "<span class='input-group-addon' id='".$name."-addon'>".$groupAddon."</span>";    

                }

                echo "</div>";

        }

        else{

                echo "<div class='input-group'>";

                echo "<input type='".$inputType."' name='".$inputName."' id='".$inputName."' size='".$size."' maxlength='".$maxlength."' value='".$inputValue."' class='form-control ".$class."' ".$attrBalise.">";

                if($groupAddon != ""){

                        echo "<span class='input-group-addon' id='".$name."-addon'>".$groupAddon."</span>";

                }

                echo "</div>";

        }

        echo "</div>";

        echo "</div>";

}*/

After that the page is displayed.

Do you have any suggestion?

In the home page i have this warning message:“Your PHP installation is older than version 5.3.7 and will not be compatible with incoming versions (version :  5.3.3 )”

I have to upgrade my php installation?

(I have this packages installed:

php53-cli-5.3.3-26.el5_11

php53-mbstring-5.3.3-26.el5_11

php53-pdo-5.3.3-26.el5_11

php53-mysql-5.3.3-26.el5_11

php53-common-5.3.3-26.el5_11

php53-gd-5.3.3-26.el5_11

php53-5.3.3-26.el5_11

)

Thanks

Serena


Viewing all articles
Browse latest Browse all 4598

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>