Hello forum,
i’ve go some error here,
i cant solve this problem .
When i open this page Home > User > Journal Manager > Import/Export Data > CrossRef Export/Registration Plugin
Settings
You can **
configure the CrossRef export/registration plug-in here.
**
i’ve got this error
Video Here https://youtu.be/ovixhtikQKY
You appear to be running OJS 2.4.8-2. Have you made any local modifications to your OJS code? I’m not really seeing a plausible way to generate this error in the standard codebase. The $request
variable would need to be undefined here:
$this->addCheck(new FormValidator($this, 'depositorName', 'required', 'plugins.importexport.crossref.settings.form.depositorNameRequired'));
$this->addCheck(new FormValidatorEmail($this, 'depositorEmail', 'required', 'plugins.importexport.crossref.settings.form.depositorEmailRequired'));
}
/**
* @see Form::display()
*/
function display($request) {
$templateMgr =& TemplateManager::getManager($request);
$plugin = $this->_plugin;
$templateMgr->assign('unregisteredURL', $request->url(null, null, 'importexport', array('plugin', $plugin->getName(), 'articles')));
parent::display($request);
}
//
// Implement template methods from DOIExportSettingsForm
//
/**
* @see DOIExportSettingsForm::getFormFields()
*/
function getFormFields() {
But it would have been used earlier here:
}
/**
* @see ImportExportPlugin::manage()
*/
function manage($verb, $args, &$message, &$messageParams, &$request) {
parent::manage($verb, $args, $message, $messageParams, $request);
switch ($verb) {
case 'settings':
$journal =& $request->getJournal();
$form =& $this->_instantiateSettingsForm($journal);
// FIXME: JM: duplicate code from _displayPluginHomePage()
// Check for configuration errors:
$configurationErrors = array();
// 1) missing DOI prefix
$doiPrefix = null;
$pubIdPlugins = PluginRegistry::loadCategory('pubIds', true);
if (isset($pubIdPlugins['DOIPubIdPlugin'])) {
Before making it to the caller here:
if ($form->validate()) {
$form->execute();
$request->redirect(null, 'manager', 'importexport', array('plugin', $this->getName()));
} else {
$this->setBreadCrumbs(array(), true);
$form->display($request);
}
} else {
$this->setBreadCrumbs(array(), true);
$form->initData();
$form->display($request);
}
return true;
default:
// Unknown management verb.
assert(false);
}
return false;
}
how can i reinstall the core of OJS ?
because i start from existing . and i modified several file .
what a best practice to do this ?
If you do not want to keep your local changes, you can replace the OJS source files with a clean download of the OJS package from the same release.
See “Previous Releases ” at the bottom of this page:
https://pkp.sfu.ca/ojs/ojs_download/
It would be best to follow the instructions of the Full Package upgrade, even if this is not an “upgrade”, but just a clean install of the core code:
1. Full Package
If you have not made local code modifications to the system, upgrade by
downloading the complete package for the latest release of OJS:
- Download and decompress the package from the OJS web site
- Move or copy the following files and directories from your current OJS
installation:
- config.inc.php
- public/
- Your uploaded files directory ("files_dir" in config.inc.php), if it
resides within your OJS directory
- Synchronize new changes from config.TEMPLATE.inc.php to config.inc.php
- Replace the current OJS directory with the new OJS directory, moving the
old one to a safe location as a backup
- Be sure to review the Configuration Changes section of the release notes
in docs/release-notes/README-(version) for all versions between your
original version and the new version. You may need to manually add
new items to your config.inc.php file.
This file has been truncated. show original