Plugins doesn't load

Hello everyone,
OJS 3.1.2.4
I have a serious problem about Plugins.
here is the story.
after receiving a request from openair telling me that my log has a problem with indexing via OAI, i uninstalled the openair plugin and tried to install it again.
I received the following message: “The method could not be performed on the resource because the server is unable to store the representation needed to successfully complete the request. There is insufficient free space left in your storage allocation. Additionally, a 507 Insufficient Storage error was encountered while trying to use an ErrorDocument to handle the request.”
afterwards, the plugins doesn’t load. see picture below
image
best regards

Hi @zakaria.ez,

Check your PHP error log for details.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi,
I don’t have the detail:
I have only the detail from 08/10/2020 while the error occurred on 07/10/2020.
Best regards.

Hi,
– is this code correct? –
{**

  • templates/controllers/tab/settings/plugins/plugins.tpl
  • Copyright (c) 2014-2019 Simon Fraser University
  • Copyright (c) 2003-2019 John Willinsky
  • Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
  • List installed and available plugins in a tabbed interface.
    *}

{* Help Link *}
{help file=“settings.md” section=“website” class=“pkp_help_tab”}

{capture assign=pluginGridUrl}{url router=$smarty.const.ROUTE_COMPONENT component="grid.settings.plugins.SettingsPluginGridHandler" op="fetchGrid" escape=false}{/capture} {load_url_in_div id="pluginGridContainer" url=$pluginGridUrl}
{capture assign=pluginGalleryGridUrl}{url router=$smarty.const.ROUTE_COMPONENT component="grid.plugins.PluginGalleryGridHandler" op="fetchGrid" escape=false}{/capture} {load_url_in_div id="pluginGalleryGridContainer" url=$pluginGalleryGridUrl}

— sitePlugins.tpl ----
{capture assign=pluginGridUrl}{url router=$smarty.const.ROUTE_COMPONENT component=“grid.admin.plugins.AdminPluginGridHandler” op=“fetchGrid” escape=false}{/capture}
{load_url_in_div id=“pluginGridContainer” url=$pluginGridUrl}

----code TabHandler—
parent::__construct();
$this->setPageTabs(array(
‘appearance’ => ‘controllers.tab.settings.appearance.form.AppearanceForm’,
‘information’ => ‘lib.pkp.controllers.tab.settings.information.form.InformationForm’,
‘archiving’ => ‘lib.pkp.controllers.tab.settings.archiving.form.ArchivingForm’,
‘languages’ => ‘controllers/tab/settings/languages/languages.tpl’,
‘plugins’ => ‘controllers/tab/settings/plugins/plugins.tpl’,
‘announcements’ => ‘lib.pkp.controllers.tab.settings.announcements.form.AnnouncementSettingsForm’,
‘navigationMenus’ => ‘lib.pkp.controllers.tab.settings.navigationMenus.form.NavigationMenuSettingsForm’

—code AdminPluginGridHandler-
import(‘lib.pkp.classes.controllers.grid.plugins.PluginGridHandler’);

class AdminPluginGridHandler extends PluginGridHandler {
/**
* Constructor
*/
function __construct() {
$roles = array(ROLE_ID_SITE_ADMIN);

	$this->addRoleAssignment($roles, array('plugin'));

	parent::__construct($roles);
}

//
// Overriden template methods.
//
/**
 * @see GridHandler::getRowInstance()
 */
function getRowInstance() {
	import('lib.pkp.controllers.grid.plugins.PluginGridRow');
	return new PluginGridRow($this->getAuthorizedContextObject(ASSOC_TYPE_USER_ROLES));
}

/**
 * @see GridHandler::authorize()
 * @param $request PKPRequest
 * @param $args array
 * @param $roleAssignments array
 */
function authorize($request, &$args, $roleAssignments) {
	$category = $request->getUserVar('category');
	$pluginName = $request->getUserVar('plugin');
	$verb = $request->getUserVar('verb');

	if ($category && $pluginName) {
		import('lib.pkp.classes.security.authorization.PluginAccessPolicy');
		if ($verb) {
			$accessMode = ACCESS_MODE_MANAGE;
		} else {
			$accessMode = ACCESS_MODE_ADMIN;
		}

		$this->addPolicy(new PluginAccessPolicy($request, $args, $roleAssignments, $accessMode));
	} else {
		import('lib.pkp.classes.security.authorization.PolicySet');
		$rolePolicy = new PolicySet(COMBINING_PERMIT_OVERRIDES);

		import('lib.pkp.classes.security.authorization.RoleBasedHandlerOperationPolicy');
		foreach($roleAssignments as $role => $operations) {
			$rolePolicy->addPolicy(new RoleBasedHandlerOperationPolicy($request, $role, $operations));
		}
		$this->addPolicy($rolePolicy);
	}

	return parent::authorize($request, $args, $roleAssignments);

Best regards
zakaria

Hi @zakaria.ez,

You’ll definitely need to find your PHP error log; debugging without it will be very difficult.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi asmercher,
thank you a lot for your help.
Best regards,
zakaria