Hi @hilongo,
Did you remove all the error message suppression? There are cases in a few files:
diff --git a/PLNGatewayPlugin.inc.php b/PLNGatewayPlugin.inc.php
index 3501eb9..c37e93e 100644
--- a/PLNGatewayPlugin.inc.php
+++ b/PLNGatewayPlugin.inc.php
@@ -19,7 +19,7 @@ import('lib.pkp.classes.core.ArrayItemIterator');
define('PLN_PLUGIN_PING_ARTICLE_COUNT', 12);
// Archive/Tar.php may not be installed, so supress possible error.
-@include_once('Archive/Tar.php');
+include_once('Archive/Tar.php');
class PLNGatewayPlugin extends GatewayPlugin {
/** @var $parentPluginName string Name of parent plugin */
diff --git a/PLNPlugin.inc.php b/PLNPlugin.inc.php
index 5292a51..1af15c4 100644
--- a/PLNPlugin.inc.php
+++ b/PLNPlugin.inc.php
@@ -373,7 +373,7 @@ class PLNPlugin extends GenericPlugin {
return new JSONMessage(true, $form->fetch($request));
case 'enable':
- if(!@include_once('Archive/Tar.php')) {
+ if(@include_once('Archive/Tar.php')) {
$message = NOTIFICATION_TYPE_ERROR;
$messageParams = array('contents' => __('plugins.generic.pln.notifications.archive_tar_missing'));
break;
@@ -561,7 +561,7 @@ class PLNPlugin extends GenericPlugin {
* @return boolean
*/
public function tarInstalled() {
- @include_once('Archive/Tar.php');
+ include_once('Archive/Tar.php');
return class_exists('Archive_Tar');
}
diff --git a/classes/DepositPackage.inc.php b/classes/DepositPackage.inc.php
index f74e4f7..64282b3 100644
--- a/classes/DepositPackage.inc.php
+++ b/classes/DepositPackage.inc.php
@@ -242,7 +242,7 @@ class DepositPackage {
* @return string The full path of the created zip archive
*/
public function generatePackage() {
- if (!@include_once(dirname(__FILE__).'/../vendor/scholarslab/bagit/lib/bagit.php')) {
+ if (!include_once(dirname(__FILE__).'/../vendor/scholarslab/bagit/lib/bagit.php')) {
$this->_logMessage(__('plugins.generic.pln.error.include.bagit'));
return;
}
diff --git a/classes/form/PLNSettingsForm.inc.php b/classes/form/PLNSettingsForm.inc.php
index 200d189..5e95cd1 100644
--- a/classes/form/PLNSettingsForm.inc.php
+++ b/classes/form/PLNSettingsForm.inc.php
@@ -68,7 +68,7 @@ class PLNSettingsForm extends Form {
public function _checkPrerequisites() {
$messages = array();
- if (!@include_once('Archive/Tar.php')) {
+ if (!include_once('Archive/Tar.php')) {
$messages[] = __('plugins.generic.pln.notifications.archive_tar_missing');
}
if (!$this->_plugin->curlInstalled()) {
Regards,
Alec Smecher
Public Knowledge Project Team