Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problems after PHP Update
#7
Ok, if you are running an up to date coreBOS and you do not need the google sync functionality you can just change the limits. coreBOS is currently PHP 7.3 compliant except for the Google Calendar and Google Contacts sync functionality because we haven't updated those libraries yet.

These are the changes you have to make:


Code:
diff --git a/index.php b/index.php

index d8c8c3252..8ae159d71 100644
--- a/index.php
+++ b/index.php
@@ -14,7 +14,7 @@
  * at <http://corebos.org/documentation/doku.php?id=en:devel:vpl11>
  *************************************************************************************************/
 
-if (version_compare(phpversion(), '5.4.0') < 0 || version_compare(phpversion(), '7.2.0') >= 0) {
+if (version_compare(phpversion(), '5.4.0') < 0 || version_compare(phpversion(), '7.4.0') >= 0) {
        header('Content-Type: text/html; charset=UTF-8');
        $serverPhpVersion = phpversion();
        require_once 'phpversionfail.php';
diff --git a/phpversionfail.php b/phpversionfail.php

index ce4362775..69d835507 100644
--- a/phpversionfail.php
+++ b/phpversionfail.php
@@ -38,7 +38,7 @@ include_once 'include/utils/utils.php';
        <table border=0 cellspacing=0 cellpadding=10 width=80% align=center>
        <tr>
                <td class="small" bgcolor="#FFFFFF" align=center>
-                       A PHP version from 5.4.x (5.6.x minimum recommended) to 7.2.0 is required.
+                       A PHP version from 5.4.x (5.6.x minimum recommended) to 7.3.0 is required.
                        Your current PHP version is <?php echo (isset($serverPhpVersion) ? vtlib_purify($serverPhpVersion) : phpversion());?><br/>
                        Kindly adapt your PHP installation, and try again!<br/>
                </td>
diff --git a/ping.php b/ping.php
index 4759dd50b..6baa4235f 100644
--- a/ping.php
+++ b/ping.php
@@ -18,7 +18,7 @@
  *  Proud member of the coreBOS family!  http://corebos.org
  *************************************************************************************************/
 
-if (version_compare(phpversion(), '5.4.0') < 0 || version_compare(phpversion(), '7.2.0') >= 0) {
+if (version_compare(phpversion(), '5.4.0') < 0 || version_compare(phpversion(), '7.4.0') >= 0) {
        echo 'NOK: incorrect PHP version';
        die();
 }
Joe
TSolucio
Reply


Messages In This Thread
Problems after PHP Update - by mindkicker - 10-30-2018, 01:14 PM
RE: Problems after PHP Update - by joebordes - 10-30-2018, 01:28 PM
RE: Problems after PHP Update - by joebordes - 10-30-2018, 01:29 PM
RE: Problems after PHP Update - by mindkicker - 10-30-2018, 02:28 PM
RE: Problems after PHP Update - by joebordes - 10-30-2018, 02:56 PM
RE: Problems after PHP Update - by mindkicker - 12-10-2018, 08:25 PM
RE: Problems after PHP Update - by joebordes - 12-10-2018, 09:11 PM
RE: Problems after PHP Update - by mindkicker - 12-10-2018, 09:37 PM
RE: Problems after PHP Update - by joebordes - 12-11-2018, 10:19 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)