diff --git a/composer.json b/composer.json index 547368e16..ee7d6948b 100644 --- a/composer.json +++ b/composer.json @@ -8,26 +8,26 @@ }, { "type": "git", - "url": "git@github.com:ucfcdl/Obojobo-Wordpress-Stats-Plugin.git" + "url": "https://github.com/ucfopen/Obojobo-Wordpress-Stats-Plugin.git" }, { "type": "git", - "url": "git@github.com:ucfcdl/Obojobo-Wordpress-RocketD-Plugin.git" + "url": "https://github.com/ucfopen/Obojobo-Wordpress-Stats-Plugin.git" }, { "type": "git", - "url": "git@github.com:ucfcdl/Obojobo-Wordpress-Theme.git" + "url": "https://github.com/ucfopen/Obojobo-Wordpress-Theme.git" }, { "type": "git", - "url": "https://github.com/ucfcdl/php-saml.git" + "url": "https://github.com/ucfopen/Obojobo-Wordpress-RocketD-Plugin.git" } ], "require": { - "php": ">=5.4", + "php": ">=7.2", "onelogin/php-saml": "2.10.2", "monolog/monolog": "1.18.2", - "johnpbloch/wordpress": ">=5.1.1", + "johnpbloch/wordpress": ">=5.3.0", "obojobo/obo-stats": "0.0.3", "obojobo/rocketD": "0.0.3", "obojobo-themes/obojobo": "0.0.3", diff --git a/composer.lock b/composer.lock index 8f9786a07..97f7f6926 100644 --- a/composer.lock +++ b/composer.lock @@ -4,20 +4,20 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "0c11008c868752663e2f1bea5cf25978", + "content-hash": "9f1ac609001464125fc0d6d9c98ed32a", "packages": [ { "name": "composer/installers", - "version": "v1.6.0", + "version": "v1.7.0", "source": { "type": "git", "url": "https://github.com/composer/installers.git", - "reference": "cfcca6b1b60bc4974324efb5783c13dca6932b5b" + "reference": "141b272484481432cda342727a427dc1e206bfa0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/installers/zipball/cfcca6b1b60bc4974324efb5783c13dca6932b5b", - "reference": "cfcca6b1b60bc4974324efb5783c13dca6932b5b", + "url": "https://api.github.com/repos/composer/installers/zipball/141b272484481432cda342727a427dc1e206bfa0", + "reference": "141b272484481432cda342727a427dc1e206bfa0", "shasum": "" }, "require": { @@ -73,6 +73,7 @@ "RadPHP", "SMF", "Thelia", + "Whmcs", "WolfCMS", "agl", "aimeos", @@ -95,6 +96,7 @@ "installer", "itop", "joomla", + "known", "kohana", "laravel", "lavalite", @@ -124,7 +126,7 @@ "zend", "zikula" ], - "time": "2018-08-27T06:10:37+00:00" + "time": "2019-08-12T15:00:31+00:00" }, { "name": "eher/oauth", @@ -161,22 +163,22 @@ }, { "name": "johnpbloch/wordpress", - "version": "5.1.1", + "version": "5.3.0", "source": { "type": "git", "url": "https://github.com/johnpbloch/wordpress.git", - "reference": "b5673ea8f30a518eaf311c90f1d074c44b54e15e" + "reference": "2b710cf99daf1c219948cd6ee4719ccfbd12e109" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/johnpbloch/wordpress/zipball/b5673ea8f30a518eaf311c90f1d074c44b54e15e", - "reference": "b5673ea8f30a518eaf311c90f1d074c44b54e15e", + "url": "https://api.github.com/repos/johnpbloch/wordpress/zipball/2b710cf99daf1c219948cd6ee4719ccfbd12e109", + "reference": "2b710cf99daf1c219948cd6ee4719ccfbd12e109", "shasum": "" }, "require": { - "johnpbloch/wordpress-core": "5.1.1", + "johnpbloch/wordpress-core": "5.3.0", "johnpbloch/wordpress-core-installer": "^1.0", - "php": ">=5.3.2" + "php": ">=5.6.20" }, "type": "package", "notification-url": "https://packagist.org/downloads/", @@ -189,34 +191,34 @@ "homepage": "http://wordpress.org/about/" } ], - "description": "WordPress is web software you can use to create a beautiful website or blog.", + "description": "WordPress is open source software you can use to create a beautiful website, blog, or app.", "homepage": "http://wordpress.org/", "keywords": [ "blog", "cms", "wordpress" ], - "time": "2019-03-13T00:27:35+00:00" + "time": "2019-11-12T20:45:58+00:00" }, { "name": "johnpbloch/wordpress-core", - "version": "5.1.1", + "version": "5.3.0", "source": { "type": "git", "url": "https://github.com/johnpbloch/wordpress-core.git", - "reference": "dba22982e7cb433b68f1b12a0bd4e5851f967010" + "reference": "17ddddaf049e82655c6d3831ca787350807b0566" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/johnpbloch/wordpress-core/zipball/dba22982e7cb433b68f1b12a0bd4e5851f967010", - "reference": "dba22982e7cb433b68f1b12a0bd4e5851f967010", + "url": "https://api.github.com/repos/johnpbloch/wordpress-core/zipball/17ddddaf049e82655c6d3831ca787350807b0566", + "reference": "17ddddaf049e82655c6d3831ca787350807b0566", "shasum": "" }, "require": { - "php": ">=5.3.2" + "php": ">=5.6.20" }, "provide": { - "wordpress/core-implementation": "5.1.1" + "wordpress/core-implementation": "5.3.0" }, "type": "wordpress-core", "notification-url": "https://packagist.org/downloads/", @@ -229,14 +231,14 @@ "homepage": "http://wordpress.org/about/" } ], - "description": "WordPress is web software you can use to create a beautiful website or blog.", + "description": "WordPress is open source software you can use to create a beautiful website, blog, or app.", "homepage": "http://wordpress.org/", "keywords": [ "blog", "cms", "wordpress" ], - "time": "2019-03-13T00:27:30+00:00" + "time": "2019-11-12T20:45:53+00:00" }, { "name": "johnpbloch/wordpress-core-installer", @@ -415,7 +417,7 @@ "version": "0.0.3", "source": { "type": "git", - "url": "git@github.com:ucfcdl/Obojobo-Wordpress-Theme.git", + "url": "https://github.com/ucfopen/Obojobo-Wordpress-Theme.git", "reference": "0454e705e626234ec4e6785913a3edb78bd463a1" }, "require": { @@ -439,7 +441,7 @@ "version": "0.0.3", "source": { "type": "git", - "url": "git@github.com:ucfcdl/Obojobo-Wordpress-Stats-Plugin.git", + "url": "https://github.com/ucfopen/Obojobo-Wordpress-Stats-Plugin.git", "reference": "f53231f454f19cd4361b74ba82517d169f5bd84b" }, "require": { @@ -463,7 +465,7 @@ "version": "0.0.3", "source": { "type": "git", - "url": "git@github.com:ucfcdl/Obojobo-Wordpress-RocketD-Plugin.git", + "url": "https://github.com/ucfopen/Obojobo-Wordpress-RocketD-Plugin.git", "reference": "564ee387d5341595410f8a6caf9f8bab841bdbc2" }, "require": { @@ -534,16 +536,16 @@ }, { "name": "psr/log", - "version": "1.1.0", + "version": "1.1.2", "source": { "type": "git", "url": "https://github.com/php-fig/log.git", - "reference": "6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd" + "reference": "446d54b4cb6bf489fc9d75f55843658e6f25d801" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/log/zipball/6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd", - "reference": "6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd", + "url": "https://api.github.com/repos/php-fig/log/zipball/446d54b4cb6bf489fc9d75f55843658e6f25d801", + "reference": "446d54b4cb6bf489fc9d75f55843658e6f25d801", "shasum": "" }, "require": { @@ -552,7 +554,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0.x-dev" + "dev-master": "1.1.x-dev" } }, "autoload": { @@ -577,7 +579,7 @@ "psr", "psr-3" ], - "time": "2018-11-20T15:27:04+00:00" + "time": "2019-11-01T11:05:21+00:00" }, { "name": "silexlabs/amfphp", @@ -647,15 +649,15 @@ }, { "name": "wpackagist-plugin/w3-total-cache", - "version": "0.9.7.3", + "version": "0.11.0", "source": { "type": "svn", "url": "https://plugins.svn.wordpress.org/w3-total-cache/", - "reference": "tags/0.9.7.3" + "reference": "tags/0.11.0" }, "dist": { "type": "zip", - "url": "https://downloads.wordpress.org/plugin/w3-total-cache.0.9.7.3.zip" + "url": "https://downloads.wordpress.org/plugin/w3-total-cache.0.11.0.zip" }, "require": { "composer/installers": "~1.0" @@ -671,7 +673,7 @@ "prefer-stable": false, "prefer-lowest": false, "platform": { - "php": ">=5.4" + "php": ">=7.2" }, "platform-dev": [] } diff --git a/internal/app.php b/internal/app.php index da44df2e0..5a7079b0a 100644 --- a/internal/app.php +++ b/internal/app.php @@ -74,3 +74,22 @@ function classAutoLoader($className) } @include($file); } + +// Fix a bug with php7.1 + and php72-pecl-memcache which breaks the session handling w/ memcache +class PeclMemcacheBugFixForSessionsHandler extends SessionHandler +{ + public function read($id) + { + $data = parent::read($id); + // the bug is a result of pecl-memcache not returning an empty string + // and that being incompatable with php 7.1's session handler + return empty($data) ? '' : $data; + } +} + +if(\AppCfg::CACHE_MEMCACHE === true) +{ + $sessionHandler = new PeclMemcacheBugFixForSessionsHandler(); + session_set_save_handler($sessionHandler); +} +// END php72-pecl-memcache bug fix diff --git a/internal/classes/obo/log/LogManager.class.php b/internal/classes/obo/log/LogManager.class.php index 7b4c78480..e82060746 100644 --- a/internal/classes/obo/log/LogManager.class.php +++ b/internal/classes/obo/log/LogManager.class.php @@ -256,7 +256,7 @@ protected function getInteractionLogs($query, $totalsOnly=false) { $toSection = (int) ($r->{\cfg_obo_Track::IN} == 0 ? 1 : $r->{\cfg_obo_Track::IN}); $pageIndex = '?'; - if(isset($lo->pages) && count($lo->pages > 0)) + if(isset($lo->pages) && count($lo->pages) > 0) { switch($toSection) { diff --git a/internal/classes/obo/util/Cache.class.php b/internal/classes/obo/util/Cache.class.php index 94469e1d9..457b9e097 100644 --- a/internal/classes/obo/util/Cache.class.php +++ b/internal/classes/obo/util/Cache.class.php @@ -130,7 +130,7 @@ public function clearLock($loid) { if($this->memEnabled) { - $this->delete($this->ns.'\obo\Lock:'.$lock->lockID); + $this->delete($this->ns.'\obo\Lock:'.$loid); } } diff --git a/internal/classes/rocketD/auth/AuthManager.class.php b/internal/classes/rocketD/auth/AuthManager.class.php index c03a09817..5ac71d9d9 100644 --- a/internal/classes/rocketD/auth/AuthManager.class.php +++ b/internal/classes/rocketD/auth/AuthManager.class.php @@ -435,7 +435,7 @@ public function authenticate($requestVars, $authID=0 ) $authModList = $this->getAllAuthModules(); // loop through authmods - if(count($authModList > 0)) + if(count($authModList) > 0) { foreach($authModList AS $authMod) {