QuickSubmit Plugin OJS 3.1.2 installed manual . errour 500

Hello, Sorry im new at this !. please explain to me how to run this command?
for a beginner.please *un this command from your OJS folder: php tools/upgrade.php upgrade .i saw it in another related question.
thanks
Im using OJS 3.1.2.1 XAMPPLocalhost.windows 10 64x
I installed Quick-submit manually.
but when i click on it it shows errour 500
f5a6b269e14e28830357bd581409f33fdb1cc2bc_2_690x380

Hi @Younes_SAAID,

Check your PHP error log for details.

Regards,
Alec Smecher
Public Knowledge Project Team

1 Like

Check your PHP error log for details.
#0 C:\xampp\htdocs\ojs\lib\pkp\classes\submission\PKPSubmissionMetadataFormImplementation.inc.php(129): SubmissionMetadataFormImplementation->_getAbstractsRequired(Object(Article))
#1 C:\xampp\htdocs\ojs\plugins\importexport\quickSubmit-master\QuickSubmitForm.inc.php(220): PKPSubmissionMetadataFormImplementation->initData(Object(Article))
#2 C:\xampp\htdocs\ojs\plugins\importexport\quickSubmit-master\QuickSubmitPlugin.inc.php(87): QuickSubmitForm->initData()
#3 C:\xampp\htdocs\ojs\lib\pkp\pages\management\PKPToolsHandler.inc.php(98): QuickSubmitPlugin->display(Array, Object(Request))
#4 C:\xampp\htdocs\ojs\lib\pkp\classes\core\PKPRouter.inc.php(390): PKPToolsHandler->importexport(Array, Object(Request))
#5 C:\xampp\htdocs\ojs\lib\pkp\classes\core\PKPPageRouter.inc.php(231): PKPRouter->_authorizeInitializeAndCallRequest(Array, Object( in C:\xampp\htdocs\ojs\classes\submission\SubmissionMetadataFormImplementation.inc.php on line 34

I checked the file . -----
import(‘lib.pkp.classes.submission.PKPSubmissionMetadataFormImplementation’);

class SubmissionMetadataFormImplementation extends PKPSubmissionMetadataFormImplementation {
/**
* Constructor.
* @param $parentForm Form A form that can use this form.
*/
function __construct($parentForm = null) {
parent::__construct($parentForm);
}

/**
 * @copydoc PKPSubmissionMetadataFormImplementation::_getAbstractsRequired
 */
function _getAbstractsRequired($submission) {
	$sectionDao = DAORegistry::getDAO('SectionDAO');
	$section = $sectionDao->getById($submission->getSectionId());
	return !$section->getAbstractsNotRequired();
}

/**
 *
 * @copydoc PKPSubmissionMetadataFormImplementation::addChecks()
 */
function addChecks($submission) {
	parent::addChecks($submission);
	$sectionDao = DAORegistry::getDAO('SectionDAO');
	$section = $sectionDao->getById($submission->getSectionId());
	$wordCount = $section->getAbstractWordCount();
	if (isset($wordCount) && $wordCount > 0) {
		$this->_parentForm->addCheck(new FormValidatorCustom($this->_parentForm, 'abstract', 'required', 'submission.submit.form.wordCountAlert', function($abstract) use($wordCount) {
			foreach ($abstract as $localizedAbstract) {
				if (count(preg_split('/\s+/', trim(str_replace(' ', ' ', strip_tags($localizedAbstract))))) > $wordCount) {
					return false;
				}
			}
			return true;
		}));
	}
}

}

How i solve it please

Hi @Younes_SAAID,

You included the stack trace, but left out the actual error message. What appears in the log just above the part you quoted?

Regards,
Alec Smecher
Public Knowledge Project Team

SORRY . here is full text
getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in C:\xampp\htdocs\ojs\plugins\generic\customBlockManager\CustomBlockPlugin.inc.php on line 134
[18-Aug-2019 02:56:04 Europe/Berlin] PHP Warning: Declaration of DRIVERDAO::setOAI(&$oai) should be compatible with PKPOAIDAO::setOAI($oai) in C:\xampp\htdocs\ojs\plugins\generic\driver\DRIVERDAO.inc.php on line 19
[18-Aug-2019 02:56:04 Europe/Berlin] PHP Warning: Declaration of OpenAIREDAO::setOAI(&$oai) should be compatible with PKPOAIDAO::setOAI($oai) in C:\xampp\htdocs\ojs\plugins\generic\openAIRE\OpenAIREDAO.inc.php on line 100
[18-Aug-2019 02:56:05 Europe/Berlin] PHP Warning: Declaration of CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in C:\xampp\htdocs\ojs\plugins\generic\customBlockManager\CustomBlockPlugin.inc.php on line 134
[18-Aug-2019 02:56:05 Europe/Berlin] PHP Warning: Declaration of DRIVERDAO::setOAI(&$oai) should be compatible with PKPOAIDAO::setOAI($oai) in C:\xampp\htdocs\ojs\plugins\generic\driver\DRIVERDAO.inc.php on line 19
[18-Aug-2019 02:56:05 Europe/Berlin] PHP Warning: Declaration of OpenAIREDAO::setOAI(&$oai) should be compatible with PKPOAIDAO::setOAI($oai) in C:\xampp\htdocs\ojs\plugins\generic\openAIRE\OpenAIREDAO.inc.php on line 100
[18-Aug-2019 02:56:06 Europe/Berlin] PHP Warning: Declaration of CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in C:\xampp\htdocs\ojs\plugins\generic\customBlockManager\CustomBlockPlugin.inc.php on line 134
[18-Aug-2019 02:56:06 Europe/Berlin] PHP Warning: Declaration of DRIVERDAO::setOAI(&$oai) should be compatible with PKPOAIDAO::setOAI($oai) in C:\xampp\htdocs\ojs\plugins\generic\driver\DRIVERDAO.inc.php on line 19
[18-Aug-2019 02:56:06 Europe/Berlin] PHP Warning: Declaration of OpenAIREDAO::setOAI(&$oai) should be compatible with PKPOAIDAO::setOAI($oai) in C:\xampp\htdocs\ojs\plugins\generic\openAIRE\OpenAIREDAO.inc.php on line 100
[18-Aug-2019 02:56:06 Europe/Berlin] PHP Warning: Declaration of CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in C:\xampp\htdocs\ojs\plugins\generic\customBlockManager\CustomBlockPlugin.inc.php on line 134
[18-Aug-2019 02:56:06 Europe/Berlin] PHP Warning: Declaration of DRIVERDAO::setOAI(&$oai) should be compatible with PKPOAIDAO::setOAI($oai) in C:\xampp\htdocs\ojs\plugins\generic\driver\DRIVERDAO.inc.php on line 19
[18-Aug-2019 02:56:06 Europe/Berlin] PHP Warning: Declaration of OpenAIREDAO::setOAI(&$oai) should be compatible with PKPOAIDAO::setOAI($oai) in C:\xampp\htdocs\ojs\plugins\generic\openAIRE\OpenAIREDAO.inc.php on line 100
[18-Aug-2019 02:56:07 Europe/Berlin] PHP Warning: Declaration of CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in C:\xampp\htdocs\ojs\plugins\generic\customBlockManager\CustomBlockPlugin.inc.php on line 134
[18-Aug-2019 02:56:07 Europe/Berlin] PHP Warning: Declaration of DRIVERDAO::setOAI(&$oai) should be compatible with PKPOAIDAO::setOAI($oai) in C:\xampp\htdocs\ojs\plugins\generic\driver\DRIVERDAO.inc.php on line 19
[18-Aug-2019 02:56:07 Europe/Berlin] PHP Warning: Declaration of OpenAIREDAO::setOAI(&$oai) should be compatible with PKPOAIDAO::setOAI($oai) in C:\xampp\htdocs\ojs\plugins\generic\openAIRE\OpenAIREDAO.inc.php on line 100
[18-Aug-2019 02:56:18 Europe/Berlin] PHP Warning: Declaration of CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in C:\xampp\htdocs\ojs\plugins\generic\customBlockManager\CustomBlockPlugin.inc.php on line 134
[18-Aug-2019 02:56:18 Europe/Berlin] PHP Warning: Declaration of DRIVERDAO::setOAI(&$oai) should be compatible with PKPOAIDAO::setOAI($oai) in C:\xampp\htdocs\ojs\plugins\generic\driver\DRIVERDAO.inc.php on line 19
[18-Aug-2019 02:56:18 Europe/Berlin] PHP Warning: Declaration of OpenAIREDAO::setOAI(&$oai) should be compatible with PKPOAIDAO::setOAI($oai) in C:\xampp\htdocs\ojs\plugins\generic\openAIRE\OpenAIREDAO.inc.php on line 100
[18-Aug-2019 02:56:19 Europe/Berlin] PHP Warning: Declaration of CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in C:\xampp\htdocs\ojs\plugins\generic\customBlockManager\CustomBlockPlugin.inc.php on line 134
[18-Aug-2019 02:56:19 Europe/Berlin] PHP Warning: Declaration of DRIVERDAO::setOAI(&$oai) should be compatible with PKPOAIDAO::setOAI($oai) in C:\xampp\htdocs\ojs\plugins\generic\driver\DRIVERDAO.inc.php on line 19
[18-Aug-2019 02:56:19 Europe/Berlin] PHP Warning: Declaration of OpenAIREDAO::setOAI(&$oai) should be compatible with PKPOAIDAO::setOAI($oai) in C:\xampp\htdocs\ojs\plugins\generic\openAIRE\OpenAIREDAO.inc.php on line 100
[18-Aug-2019 02:56:19 Europe/Berlin] PHP Warning: Declaration of CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in C:\xampp\htdocs\ojs\plugins\generic\customBlockManager\CustomBlockPlugin.inc.php on line 134
[18-Aug-2019 02:56:19 Europe/Berlin] PHP Warning: Declaration of DRIVERDAO::setOAI(&$oai) should be compatible with PKPOAIDAO::setOAI($oai) in C:\xampp\htdocs\ojs\plugins\generic\driver\DRIVERDAO.inc.php on line 19
[18-Aug-2019 02:56:20 Europe/Berlin] PHP Warning: Declaration of OpenAIREDAO::setOAI(&$oai) should be compatible with PKPOAIDAO::setOAI($oai) in C:\xampp\htdocs\ojs\plugins\generic\openAIRE\OpenAIREDAO.inc.php on line 100
[18-Aug-2019 02:56:20 Europe/Berlin] PHP Warning: Declaration of CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in C:\xampp\htdocs\ojs\plugins\generic\customBlockManager\CustomBlockPlugin.inc.php on line 134
[18-Aug-2019 02:56:20 Europe/Berlin] PHP Warning: Declaration of DRIVERDAO::setOAI(&$oai) should be compatible with PKPOAIDAO::setOAI($oai) in C:\xampp\htdocs\ojs\plugins\generic\driver\DRIVERDAO.inc.php on line 19
[18-Aug-2019 02:56:20 Europe/Berlin] PHP Warning: Declaration of OpenAIREDAO::setOAI(&$oai) should be compatible with PKPOAIDAO::setOAI($oai) in C:\xampp\htdocs\ojs\plugins\generic\openAIRE\OpenAIREDAO.inc.php on line 100
[18-Aug-2019 02:56:20 Europe/Berlin] PHP Warning: Declaration of CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in C:\xampp\htdocs\ojs\plugins\generic\customBlockManager\CustomBlockPlugin.inc.php on line 134
[18-Aug-2019 02:56:20 Europe/Berlin] PHP Warning: Declaration of DRIVERDAO::setOAI(&$oai) should be compatible with PKPOAIDAO::setOAI($oai) in C:\xampp\htdocs\ojs\plugins\generic\driver\DRIVERDAO.inc.php on line 19
[18-Aug-2019 02:56:20 Europe/Berlin] PHP Warning: Declaration of OpenAIREDAO::setOAI(&$oai) should be compatible with PKPOAIDAO::setOAI($oai) in C:\xampp\htdocs\ojs\plugins\generic\openAIRE\OpenAIREDAO.inc.php on line 100
[18-Aug-2019 02:56:23 Europe/Berlin] PHP Warning: Declaration of CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in C:\xampp\htdocs\ojs\plugins\generic\customBlockManager\CustomBlockPlugin.inc.php on line 134
[18-Aug-2019 02:56:23 Europe/Berlin] PHP Warning: Declaration of DRIVERDAO::setOAI(&$oai) should be compatible with PKPOAIDAO::setOAI($oai) in C:\xampp\htdocs\ojs\plugins\generic\driver\DRIVERDAO.inc.php on line 19
[18-Aug-2019 02:56:23 Europe/Berlin] PHP Warning: Declaration of OpenAIREDAO::setOAI(&$oai) should be compatible with PKPOAIDAO::setOAI($oai) in C:\xampp\htdocs\ojs\plugins\generic\openAIRE\OpenAIREDAO.inc.php on line 100
[18-Aug-2019 02:56:23 Europe/Berlin] PHP Warning: Declaration of QuickSubmitForm::display() should be compatible with Form::display($request = NULL, $template = NULL) in C:\xampp\htdocs\ojs\plugins\importexport\quickSubmit-master\QuickSubmitForm.inc.php on line 20
[18-Aug-2019 02:56:23 Europe/Berlin] PHP Warning: Declaration of QuickSubmitForm::validate() should be compatible with Form::validate($callHooks = true) in C:\xampp\htdocs\ojs\plugins\importexport\quickSubmit-master\QuickSubmitForm.inc.php on line 20
[18-Aug-2019 02:56:23 Europe/Berlin] PHP Warning: Declaration of SubmissionSubjectEntryDAO::getByControlledVocabId($controlledVocabId, $rangeInfo = NULL) should be compatible with ControlledVocabEntryDAO::getByControlledVocabId($controlledVocabId, $rangeInfo = NULL, $filter = NULL) in C:\xampp\htdocs\ojs\lib\pkp\classes\submission\SubmissionSubjectEntryDAO.inc.php on line 20
[18-Aug-2019 02:56:24 Europe/Berlin] PHP Warning: Declaration of SubmissionKeywordEntryDAO::getByControlledVocabId($controlledVocabId, $rangeInfo = NULL) should be compatible with ControlledVocabEntryDAO::getByControlledVocabId($controlledVocabId, $rangeInfo = NULL, $filter = NULL) in C:\xampp\htdocs\ojs\lib\pkp\classes\submission\SubmissionKeywordEntryDAO.inc.php on line 45
[18-Aug-2019 02:56:24 Europe/Berlin] PHP Warning: Declaration of SubmissionDisciplineEntryDAO::getByControlledVocabId($controlledVocabId, $rangeInfo = NULL) should be compatible with ControlledVocabEntryDAO::getByControlledVocabId($controlledVocabId, $rangeInfo = NULL, $filter = NULL) in C:\xampp\htdocs\ojs\lib\pkp\classes\submission\SubmissionDisciplineEntryDAO.inc.php on line 44
[18-Aug-2019 02:56:25 Europe/Berlin] PHP Warning: Declaration of SubmissionAgencyEntryDAO::getByControlledVocabId($controlledVocabId, $rangeInfo = NULL) should be compatible with ControlledVocabEntryDAO::getByControlledVocabId($controlledVocabId, $rangeInfo = NULL, $filter = NULL) in C:\xampp\htdocs\ojs\lib\pkp\classes\submission\SubmissionAgencyEntryDAO.inc.php on line 44
[18-Aug-2019 02:56:25 Europe/Berlin] PHP Warning: Declaration of SubmissionLanguageEntryDAO::getByControlledVocabId($controlledVocabId, $rangeInfo = NULL) should be compatible with ControlledVocabEntryDAO::getByControlledVocabId($controlledVocabId, $rangeInfo = NULL, $filter = NULL) in C:\xampp\htdocs\ojs\lib\pkp\classes\submission\SubmissionLanguageEntryDAO.inc.php on line 46
[18-Aug-2019 02:56:25 Europe/Berlin] PHP Fatal error: Uncaught Error: Call to a member function getAbstractsNotRequired() on null in C:\xampp\htdocs\ojs\classes\submission\SubmissionMetadataFormImplementation.inc.php:34
Stack trace:
#0 C:\xampp\htdocs\ojs\lib\pkp\classes\submission\PKPSubmissionMetadataFormImplementation.inc.php(129): SubmissionMetadataFormImplementation->_getAbstractsRequired(Object(Article))
#1 C:\xampp\htdocs\ojs\plugins\importexport\quickSubmit-master\QuickSubmitForm.inc.php(220): PKPSubmissionMetadataFormImplementation->initData(Object(Article))
#2 C:\xampp\htdocs\ojs\plugins\importexport\quickSubmit-master\QuickSubmitPlugin.inc.php(87): QuickSubmitForm->initData()
#3 C:\xampp\htdocs\ojs\lib\pkp\pages\management\PKPToolsHandler.inc.php(98): QuickSubmitPlugin->display(Array, Object(Request))
#4 C:\xampp\htdocs\ojs\lib\pkp\classes\core\PKPRouter.inc.php(390): PKPToolsHandler->importexport(Array, Object(Request))
#5 C:\xampp\htdocs\ojs\lib\pkp\classes\core\PKPPageRouter.inc.php(231): PKPRouter->_authorizeInitializeAndCallRequest(Array, Object( in C:\xampp\htdocs\ojs\classes\submission\SubmissionMetadataFormImplementation.inc.php on line 34

Hi @Younes_SAAID,

Can you describe how you installed the QuickSubmit plugin manually? (We don’t recommend doing it this way – the plugin gallery does some checks e.g. to make sure you’re installing a version of the plugin that’s compatible with your OJS.)

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @Younes_SAAID,

What specific .tar.gz package did you download for the Quicksubmit plugin? (Please specify the full URL.)

Regards,
Alec Smecher
Public Knowledge Project Team

image

Hi @Younes_SAAID,

What I mean is, can you post the full URL to the .tar.gz package you downloaded and used to install the plugin manually?

Regards,
Alec Smecher
Public Knowledge Project Team

C:\xampp\htdocs\ojs\plugins\importexport\quickSubmit-master

Hi @Younes_SAAID,

That’s not what I meant either – but it does indirectly answer my question. I’m guessing you downloaded the current master branch, which is not compatible with OJS 3.1.2. You’ve also installed it in the wrong directory. Go to the Releases area of the plugin’s git repository and get the right release for your version of OJS. Or, better yet, work on getting your plugin gallery working, so it can take care of this for you. (Either way, you’ll need to remove the version you’ve installed first.)

Regards,
Alec Smecher
Public Knowledge Project Team

Thank you so much @asmecher. I was making the same mistake here.