Quantcast
Channel: PKP Community Forum - Latest topics
Viewing all 27306 articles
Browse latest View live

Error when a user disables notifications

$
0
0

OJS 3.4.0.8
Error when a user disables notifications


image

If, for example, a user disables ‘Discussion activity’ notifications, a ‘blocked_notification’ record is created in the ‘notification_subscription_settings’ table and the PKPNotificationOperationManager::createNotification() function returns null because the notification type is blocked, so the call to the $mailable->allowUnsubscribe($notification) function causes a PHP error:

[Fri Dec 20 13:26:44.299598 2024] [php:error] [pid 20092:tid 1920] [client 127.0.0.1:57282] PHP Fatal error: Uncaught TypeError: PKP\mail\mailables\DiscussionSubmission::allowUnsubscribe(): Argument #1 ($notification) must be of type APP\notification\Notification, null given, called in C:\xampp\htdocs\ojs3408\lib\pkp\controllers\grid\queries\QueriesGridHandler.php on line 688 and defined in C:\xampp\htdocs\ojs3408\lib\pkp\classes\mail\traits\Unsubscribe.php:49\nStack trace:\n#0 C:\xampp\htdocs\ojs3408\lib\pkp\controllers\grid\queries\QueriesGridHandler.php(688): PKP\mail\mailables\DiscussionSubmission->allowUnsubscribe(NULL)\n#1 [internal function]: PKP\controllers\grid\queries\QueriesGridHandler->updateQuery(Array, Object(APP\core\Request))\n#2 C:\xampp\htdocs\ojs3408\lib\pkp\classes\core\PKPRouter.php(334): call_user_func(Array, Array, Object(APP\core\Request))\n#3 C:\xampp\htdocs\ojs3408\lib\pkp\classes\core\PKPComponentRouter.php(291): PKP\core\PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(APP\core\Request), Array)\n#4 C:\xampp\htdocs\ojs3408\lib\pkp\classes\core\Dispatcher.php(165): PKP\core\PKPComponentRouter->route(Object(APP\core\Request))\n#5 C:\xampp\htdocs\ojs3408\lib\pkp\classes\core\PKPApplication.php(388): PKP\core\Dispatcher->dispatch(Object(APP\core\Request))\n#6 C:\xampp\htdocs\ojs3408\index.php(21): PKP\core\PKPApplication->execute()\n#7 {main}\n thrown in C:\xampp\htdocs\ojs3408\lib\pkp\classes\mail\traits\Unsubscribe.php on line 49

1 post - 1 participant

Read full topic


Restricted Dropdown Menu for Galley Labels in OPS

$
0
0

Description

I’d like to request the ability to restrict galley labels to a predefined set of options presented in a dropdown menu for Open Preprint Systems (OPS). Instead of allowing free-text entry for galley labels, administrators would be able to configure a list of acceptable labels (such as PDF, HTML, Word, Supplementary Materials) from which submitters must choose.

Rationale

Currently, many submitters are unfamiliar with the concept of galley labels and often apply inappropriate or inconsistent labels to their submissions. This leads to:

  • Time-consuming back-and-forth communication between moderators and submitters
  • Inconsistent labeling across the preprint server
  • Confusion for both submitters and readers
  • Additional workload for moderators who need to correct inappropriate labels

Proposed Solution

Implement a configurable dropdown menu for galley labels where:

  1. Server administrators can define the allowed galley label options
  2. Submitters must select from these predefined options rather than entering free text
  3. The dropdown could include common options like:
  • PDF
  • HTML
  • Word
  • Supplementary Materials
  • Data Set
  • Code
  1. The dropdown menu could be modified by the site admin to add or remove options

Benefits

  • Streamlined submission process
  • Consistent labeling across all preprints
  • Reduced workload for moderators
  • Better user experience for submitters

Technical Considerations

This could potentially be implemented as an extension of the existing galley label system, with an additional configuration option in the server settings to enable/disable restricted labels and manage the allowed options.

Would love to hear thoughts from the community on this feature request and whether others have experienced similar challenges with galley labeling.

Who is asking for this feature?

Administrator for Communications in Kinesiology journal and SportRxiv preprint server.

1 post - 1 participant

Read full topic

He propado todas las soluciones al error 500 y nada

$
0
0

He propado todas las soluciones al error 500 y nada
solcito cordialmente ayuda, debo trabajar en mi volumen de enero 2025. Gracias Comunidad

Al ingresar con diversos usuarios y en diferentes plataformas, el error es el mismo:
500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.

Estoy usando OJS 3.4.0.5

1 post - 1 participant

Read full topic

Upgrading to 3.4.0+

$
0
0

Describe the issue or problem
I am helping some folks upgrade from 3.3.something to 3.4.0-7

Steps I took leading up to the issue

  1. after some issues, I first upgraded to ojs-3.3.0-19 → got this working fine
  2. tried 3.4.0-0 but saw it had issues, so tried 3.4.0-1 but the issues persist:
    a) dealt with the unprocessed logs
    b) dealt with the InnoDB issues
  3. big issues:
  • ERROR: Upgrade failed: DB: SQLSTATE[42S01]: Base table or view already exists: 1050 Table ‘dois’ already exists (SQL: create table dois (doi_id bigint not null auto_increment primary key, context_id bigint not null, doi varchar(255) not null, status smallint not null default ‘1’) default character set utf8 collate ‘utf8_general_ci’)
  • dropped the dois table because it was empty
  • ERROR: Upgrade failed: DB: SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘at.assoc_type’ in ‘where clause’ (SQL: select distinct at.type_id from announcement_types as at left join journals as c on at.assoc_id = c.journal_id where c.journal_id is null or at.assoc_type <> 256)
  • I can resolve this by adding:
    • ALTER TABLE announcement_types ADD COLUMN assoc_type INT DEFAULT NULL;
    • ALTER TABLE announcement_types ADD COLUMN assoc_id BIGINT DEFAULT NULL;
  • but then we get all kinds of errors about duplicate keys or other issues - I was very persistent and did all of the following

ALTER TABLE journals DROP FOREIGN KEY journals_current_issue_id_foreign;
ALTER TABLE journals DROP COLUMN current_issue_id;
ALTER TABLE journals DROP INDEX journals_current_issue_id;
ALTER TABLE issues ADD COLUMN current TINYINT(1) DEFAULT 0;

DELETE FROM scheduled_tasks
WHERE class_name = ‘APP\plugins\importexport\doaj\DOAJInfoSender’
LIMIT 1;

DELETE FROM scheduled_tasks
WHERE class_name = ‘lib.pkp.classes.task.ReviewReminder’;

DELETE FROM scheduled_tasks
WHERE class_name = ‘lib.pkp.classes.task.StatisticsReport’;

CREATE TABLE review_form_responses_backup AS SELECT * FROM review_form_responses;
ALTER TABLE review_form_responses DROP FOREIGN KEY review_form_responses_review_form_element_id_foreign;
ALTER TABLE review_form_responses DROP FOREIGN KEY review_form_responses_review_id_foreign;
ALTER TABLE review_form_responses DROP INDEX review_form_responses_unique;
ALTER TABLE review_round_files DROP INDEX review_round_files_unique;
ALTER TABLE review_files DROP INDEX review_files_unique;
ALTER TABLE scheduled_tasks DROP INDEX scheduled_tasks_unique;
ALTER TABLE announcement_type_settings DROP INDEX announcement_type_settings_unique;
ALTER TABLE announcement_settings DROP INDEX announcement_settings_unique;
ALTER TABLE category_settings DROP FOREIGN KEY category_settings_category_id_foreign;
ALTER TABLE category_settings DROP INDEX category_settings_unique;
ALTER TABLE versions DROP INDEX versions_unique;
ALTER TABLE site_settings DROP INDEX site_settings_unique;
ALTER TABLE user_settings DROP INDEX user_settings_unique;
ALTER TABLE notification_settings DROP INDEX notification_settings_unique;
ALTER TABLE email_templates_default_data DROP INDEX email_templates_default_data_unique;
ALTER TABLE email_templates_settings DROP INDEX email_templates_settings_unique;
ALTER TABLE oai_resumption_tokens DROP INDEX oai_resumption_tokens_unique;
ALTER TABLE plugin_settings DROP INDEX plugin_settings_unique;
ALTER TABLE genre_settings DROP INDEX genre_settings_unique;
ALTER TABLE library_file_settings DROP INDEX library_file_settings_unique;
ALTER TABLE event_log_settings DROP INDEX event_log_settings_unique;
ALTER TABLE citation_settings DROP INDEX citation_settings_unique;
ALTER TABLE filter_settings DROP INDEX filter_settings_unique;
ALTER TABLE navigation_menu_item_settings DROP INDEX navigation_menu_item_settings_unique;
ALTER TABLE navigation_menu_item_assignment_settings DROP INDEX navigation_menu_item_assignment_settings_unique;
ALTER TABLE review_form_settings DROP INDEX review_form_settings_unique;
ALTER TABLE review_form_element_settings DROP INDEX review_form_element_settings_unique;
ALTER TABLE user_group_settings DROP INDEX user_group_settings_unique;
ALTER TABLE user_user_groups DROP INDEX user_user_groups_unique;
ALTER TABLE user_group_stage DROP INDEX user_group_stage_unique;
ALTER TABLE submission_file_settings DROP INDEX submission_file_settings_unique;
ALTER TABLE submission_settings DROP INDEX submission_settings_unique;
ALTER TABLE publication_settings DROP INDEX publication_settings_unique;
ALTER TABLE author_settings DROP INDEX author_settings_unique;
ALTER TABLE subeditor_submission_group DROP INDEX section_editors_unique;
ALTER TABLE query_participants DROP INDEX query_participants_unique;
ALTER TABLE submission_search_object_keywords DROP FOREIGN KEY submission_search_object_keywords_keyword_id;
ALTER TABLE submission_search_object_keywords DROP FOREIGN KEY submission_search_object_keywords_object_id_foreign;
ALTER TABLE submission_search_object_keywords DROP INDEX submission_search_object_keywords_unique;
ALTER TABLE data_object_tombstone_settings DROP INDEX data_object_tombstone_settings_unique;
ALTER TABLE journal_settings DROP INDEX journal_settings_unique;
ALTER TABLE section_settings DROP INDEX section_settings_unique;
ALTER TABLE issue_settings DROP INDEX issue_settings_unique;
ALTER TABLE issue_galley_settings DROP INDEX issue_galley_settings_unique;
ALTER TABLE custom_issue_orders DROP INDEX custom_issue_orders_unique;
ALTER TABLE custom_section_orders DROP INDEX custom_section_orders_unique;
ALTER TABLE publication_galley_settings DROP INDEX publication_galley_settings_unique;
ALTER TABLE subscription_type_settings DROP INDEX subscription_type_settings_unique;

  • this finally runs up to here:

2024-12-21 03:50:00 [pre-install]
2024-12-21 03:50:00 [load: upgrade.xml]
2024-12-21 03:50:00 [version: 3.4.0.1]
2024-12-21 03:50:00 [code: Installer Installer::checkPhpVersion]
2024-12-21 03:50:00 [code: Installer Installer::installDefaultNavigationMenus]
2024-12-21 03:50:00 [code: Installer Installer::migrateStaticPagesToNavigationMenuItems]
2024-12-21 03:50:00 [migration: APP\migration\upgrade\v3_4_0\PreflightCheckMigration]
2024-12-21 03:50:01 [migration: PKP\migration\upgrade\v3_4_0\I8060_UpdateUserLocalesDefaultToEmptyArrayFromNull]
2024-12-21 03:50:01 [migration: PKP\migration\upgrade\v3_4_0\I7245_UpdateUserLocaleStringToParsableJsonString]
2024-12-21 03:50:01 [migration: APP\migration\upgrade\v3_4_0\I7129_IssueEntityDAORefactor]
2024-12-21 03:50:01 [migration: APP\migration\upgrade\v3_4_0\I6091_AddFilterNamespaces]
2024-12-21 03:50:01 [migration: APP\migration\upgrade\v3_4_0\I3573_AddPrimaryKeys]
2024-12-21 03:50:02 [migration: APP\migration\upgrade\v3_4_0\I6093_AddForeignKeys]
2024-12-21 03:50:02 [revert migration: APP\migration\upgrade\v3_4_0\I3573_AddPrimaryKeys]
2024-12-21 03:50:23 [revert migration: APP\migration\upgrade\v3_4_0\I6091_AddFilterNamespaces]
2024-12-21 03:50:23 [revert migration: APP\migration\upgrade\v3_4_0\I7129_IssueEntityDAORefactor]
2024-12-21 03:50:23 [revert migration: PKP\migration\upgrade\v3_4_0\I7245_UpdateUserLocaleStringToParsableJsonString]
2024-12-21 03:50:23 [downgrade for “PKP\migration\upgrade\v3_4_0\I7245_UpdateUserLocaleStringToParsableJsonString” unsupported: Downgrade not supported]
ERROR: Upgrade failed: DB: SQLSTATE[42000]: Syntax error or access violation: 1091 Can’t DROP ‘announcement_types_assoc’; check that column/key exists (SQL: alter table announcement_types drop index announcement_types_assoc)

  • so i tried adding it: ALTER TABLE announcement_types ADD INDEX announcement_types_assoc (assoc_id);
  • which then cycles me back to the beginning
    ERROR: Upgrade failed: DB: SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name ‘context_id’ (SQL: ALTER TABLE announcement_types CHANGE assoc_id context_id BIGINT DEFAULT NULL)

So, any ideas what to try next?

I checked some of the other issues/comments here but couldn’t quite figure it out :expressionless: we don’t have things with missing dois (which was the closest one I saw).

1 post - 1 participant

Read full topic

Ojs 2 css problem

$
0
0

Hello
My OJS 2 display suddenly changed. OJS 2 doesn’t load head, CSS and the menu is also missing. what was it caused by? Please help

1 post - 1 participant

Read full topic

OJS 3.4.0.8 not displaying Arabic text properly and replacing it with " ?"

Sending notifications to the corresponding author on the event "you manuscript published"

$
0
0

Is it possible to add to OJS a function for sending notifications to the corresponding author of a publication on the internal event “your manuscript published” with texts like “Hello, {name}! Your manuscript “{title}” has been published … bla-bla-bla… Here is a link to it {link}”? Ideally, this email would also contain a citation link provided by ‘citationStyleLanguage’, for example, in the default style.

Currently, we send such emails to authors manually, as our editor-in-chief finds the standard issue publication notification impersonal and disrespectful to the authors.

1 post - 1 participant

Read full topic

Error when click the setting option in pkp pn plugin

$
0
0

Describe the issue or problem
When i click the setting on pkp pn plugin, Failed Ajax request or invalid JSON error occurred.

Steps I took leading up to the issue
For example:

  1. click on the plugin
  2. Click the setting button
  3. error

What application are you using?
OJS 3.4.0-8
pkp pn 3.0.0.1

Additional information

thrown in /home/jurnal/public_html/ojs/cache/t_compile/d3401674d630564573cea1b257d7f257507eb57b^c69129f5094da2775ab3812198631f49c46c6e60_0.plugins-17-plugins-generic-pln-generic-pln.settings.tpl.php on line 116
#16 {main}
#15 /home/jurnal/public_html/ojs/index.php(21): PKP\core\PKPApplication->execute()
#14 /home/jurnal/public_html/ojs/lib/pkp/classes/core/PKPApplication.php(395): PKP\core\Dispatcher->dispatch(Object(APP\core\Request))
#13 /home/jurnal/public_html/ojs/lib/pkp/classes/core/Dispatcher.php(165): PKP\core\PKPComponentRouter->route(Object(APP\core\Request))
#12 /home/jurnal/public_html/ojs/lib/pkp/classes/core/PKPComponentRouter.php(291): PKP\core\PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(APP\core\Request), Array)
#11 /home/jurnal/public_html/ojs/lib/pkp/classes/core/PKPRouter.php(334): call_user_func(Array, Array, Object(APP\core\Request))
#10 [internal function]: PKP\controllers\grid\plugins\PluginGridHandler->manage(Array, Object(APP\core\Request))
#9 /home/jurnal/public_html/ojs/lib/pkp/classes/controllers/grid/plugins/PluginGridHandler.php(282): APP\plugins\generic\pln\PlnPlugin->manage(Array, Object(APP\core\Request))
#8 /home/jurnal/public_html/ojs/plugins/generic/pln/PlnPlugin.php(357): APP\plugins\generic\pln\classes\form\SettingsForm->fetch(Object(APP\core\Request))
#7 /home/jurnal/public_html/ojs/plugins/generic/pln/classes/form/SettingsForm.php(114): PKP\form\Form->fetch(Object(APP\core\Request), NULL, false)
#6 /home/jurnal/public_html/ojs/lib/pkp/classes/form/Form.php(217): PKP\template\PKPTemplateManager->fetch('plugins-17-plug...')
#5 /home/jurnal/public_html/ojs/lib/pkp/classes/template/PKPTemplateManager.php(1208): Smarty_Internal_TemplateBase->fetch('plugins-17-plug...', NULL, 'd3401674d630564...', NULL)
#4 /home/jurnal/public_html/ojs/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(116): Smarty_Internal_TemplateBase->_execute(Object(Smarty_Internal_Template), NULL, 'd3401674d630564...', NULL, 0)
#3 /home/jurnal/public_html/ojs/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(238): Smarty_Internal_Template->render(false, 0)
#2 /home/jurnal/public_html/ojs/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template))
#1 /home/jurnal/public_html/ojs/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template))
#0 /home/jurnal/public_html/ojs/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_675f9688ca4950_25007329(Object(Smarty_Internal_Template))
Stack trace:
[22-Dec-2024 20:18:40] PHP Fatal error:  Uncaught TypeError: Cannot access offset of type string on string in /home/jurnal/public_html/ojs/cache/t_compile/d3401674d630564573cea1b257d7f257507eb57b^c69129f5094da2775ab3812198631f49c46c6e60_0.plugins-17-plugins-generic-pln-generic-pln.settings.tpl.php:116

line 116 is

<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['fbvElement'][0], array( array('type'=>"checkbox",'name'=>"terms_agreed[".((string)$_smarty_tpl->tpl_vars['term_name']->value)."]",'id'=>"terms_agreed[".((string)$_smarty_tpl->tpl_vars['term_name']->value)."]",'value'=>"1",'checked'=>$_smarty_tpl->tpl_vars['checked']->value,'label'=>$_smarty_tpl->tpl_vars['term_data']->value['term'],'translate'=>false),$_smarty_tpl ) );?>

before this i was on 3.4.0.5 but i didnt enable pkp pn. before that on 3.3.0.8 i have enable the plugin and been successfully deposit through pkp pn.

1 post - 1 participant

Read full topic


Incorrect variable assignment when sending "Password Reset Confirm" email in non-English locale

$
0
0

Describe the issue or problem
Just try requesting a password reset in any locale other than English. Your correspondent will receive an email in which the links to {$siteTitle} and {$signature} will be empty. Using the variable {$siteContactName} will be equal to “Open Journal System” string.

What application are you using?
OJS 3.3.0-8

1 post - 1 participant

Read full topic

TinyMCE API and OJS in Docker

$
0
0

Where to put API key from TinyMCE?

I have OJS installed via docker. When I wanted to create first journal, I see warning:

A valid API key is required to continue using TinyMCE.Please alert the admin to check the current API key. They want to go to their site

In other posts I saw the information, that in installation you use small self-hosted version. In Docker too?

What application are you using?
OJS 3.3.0-4

3 posts - 2 participants

Read full topic

Reverse /Change order Notifications in Admin Dashboard

$
0
0

Hi

I am using OJS 3.3.0.11. Want to change the order of Notifications in a way that the latest notifications shows first for all the users. As shown in the image 115 notifications are present but for viewing the latest notification I have to navigate till last page

Please guide and advise.
Thankyou

2 posts - 2 participants

Read full topic

Reusing Unprocessed Submission IDs

$
0
0

One of my journals had more than 100 failed / unprocessed submissions, which ended up exaggerating the submission IDs of the published articles.
I have deleted the incomplete submissions including those in the Archive.
My question is that after completely deleting such submissions, is there a way of reusing their ID numbers for subsequent genuine submissions?
For instance, the current submission of the 100th article has 495 as its ID. At this rate, the numbers could go to thousands.

I am using OJS 3.4.0-7

3 posts - 2 participants

Read full topic

Upgrade from 3.2.1.4 to 3.3.0.19 encounter problem

$
0
0

Upgraded 3.1.2.4 to 3.2.1.4 = Successful (with the following modifications)

SET default_storage_engine = ‘InnoDB’;

Tried to upgrade from 3.2.1.4 to 3.3.0.19 with the following;

‘engine’ => ‘InnoDB’,

The upgrade doesn’t proceed with

connection_charset = utf-8

It proceeds succussfully with

connection_charset = utf8

but characters show error for example (Côte d’Ivoire) appears (Côte d’Ivoire)

I tried to upgrade with connection_charset = utf8 and later changed connection_charset = utf-8 but website doesn’t load.

It doesn’t proceed with;

connection_charset = utf8

1 post - 1 participant

Read full topic

Loading Error in Various Sections of Journal Management

$
0
0

Hello,
I need some guidance. Our journal’s website is experiencing a loading error in several sections.

Whenever I click on different sections in the journal’s management panel, the page remains stuck on a loading screen, and the settings for those sections do not appear.

Please advise on how I can resolve this issue.

Best regards,
Ali Akbar

1 post - 1 participant

Read full topic

Strange CSS behaviour on Docker OJS

$
0
0

Describe the issue or problem
I see page ok with proper CSS only when I’am logged in:

When I log out (login page) - I do not see nice way

The logs for this are (ad_ added for forum):

192.168.1.10 - - [24/Dec/2024:13:19:47 +0100] "GET /index.php/index/$$$call$$$/grid/ad_min/plugins/ad_min-plugin-grid/upload_-plugin?_=1735042714682
HTTP/1.1" 200 3437 "https://ojs-34-last.xxxx.pl/index.php/index/ad_min/settings" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like
Gecko) Chrome/132.0.0.0 Safari/537.36"
192.168.1.10 - - [24/Dec/2024:13:19:47 +0100] "POST /index.php/index/notification/fetchNotification HTTP/1.1" 200 58 "https://ojs-34-last.xxxx.pl
/index.php/index/ad_min/settings" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36"
192.168.1.10 - - [24/Dec/2024:13:31:10 +0100] "GET /index.php/index/login/signOut HTTP/1.1" 302 - "https://ojs-34-last.xxxx.pl/index.php/index/ad_
min/settings" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36"
192.168.1.10 - - [24/Dec/2024:13:31:10 +0100] "GET /index.php/index/login HTTP/1.1" 200 4673 "https://ojs-34-last.xxxx.pl/index.php/index/ad_min/s
ettings" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36"

OJS version:

    image: "pkpofficial/ojs:latest"
    container_name: "ojs_app_34_latest"

1 post - 1 participant

Read full topic


[OJS 3.4] Is it possible to capture in the log a copy of the ‘Thank Reviewer’ emails that are sent as part of the new Decision workflow

Subscription to Email Notifications

$
0
0

Hello everyone,

I’m working on creating a generic plugin for subscribing to notifications via email (a simple form with an email input and a submit button). So far, I’ve managed to create a form that collects email addresses and stores them in a custom table in the database.

However, I’m stuck on a couple of points:

  1. How can I intercept the notification email sending hook to include the addresses from my table in the recipients?
  2. Alternatively, is there a way to add a checkbox to the notify form to include these emails in outgoing notifications?

Thank you in advance,
Dmitrii

1 post - 1 participant

Read full topic

Email sent to an author when a discussion has been created or updated: when ‘’Reply to this comment at' link is clicked the author user is denied access

$
0
0

Describe the issue or problem

When a new discussion has been created with an author as a participant, the author receives an email containing a footer with three links: Reply to this comment at #651 Martínez Autor02 or unsubscribe from emails sent by journalName. The link that the ‘Reply to this comment at’ points to is being taken from the $submissionUrl variable (…/workflow/access/…) and if the author clicks on the link the application denies access: ‘You don’t currently have access to that stage of the workflow. Maybe it should be that, as this is a new discussion with the authors, the link should be taken from $authorSubmissionUrl (…/authorDashboard/submission/…)

What application are you using?

OJS 3.4.0-8

Additional information

Questions

I can think of two possible solutions if:

a) is there any Hook::call registered just before sending any email to send by Laravel’s Mail framework? This way the email could be intercepted and the body could be changed. It seems to me that there is no such Hook.

b) Is there any possibility to override any of the mailables that are involved in creating a discussion in the workflow: DiscussionSubmission.php, DiscussionReview.php, etc? This way the Mailable::addFooter function could be overridden.

Many thanks in advance

1 post - 1 participant

Read full topic

RTL problem with ojs 3.4.0-8

$
0
0

Hi, I just installed 3.4.0-8 and use Bootstrap them in my system but RTL feature does not work in arabic language when switch from English to Arabic in frontend, how to solve this issue

1 post - 1 participant

Read full topic

[3.1.2.0] Readding (previously patched/working and then deleted) original PayPal plugin returns old Error 500 as before patching. System says can't patch it again ("already patched")

$
0
0

Some years ago, after PayPal on our OJS 3.1.2.0 returned Error 500 with the infamous “PHP Fatal error: Uncaught Error: Interface ‘Symfony\Component\EventDispatcher\EventSubscriberInterface’ not found…” we updated composer dependencies for the PayPal plugin as described at [OJS 3.1.1.4] Paypal black page - #9 by asmecher. Everything worked fine after that and some other patching (not sure which ones - see Q3 below). In the meantime, we uninstalled PayPal and deleted its folder.

A few years later, we now want to reinclude it, so we cleaned PHP caches and, since we don’t have a backup that old, FTP-ed the /paypal folder from the original package (unzipped, since there’s no gz.tar version of the plugin within the package that OJS backend requires for installing/upgrading this plugin so we couldn’t take the upgrading route). Strangely, instead of showing it in the plugin gallery as a new plugin, OJS picked the plugin not only as present but as both installed and activated (box checked), although the /paypal folder had been gone for years.

In addition, trying to patch the readded plugin, was rejected as though the patch had already been applied. Obviously not, because clicking the PDF button of a paywalled article returns again the same Error 500 as before - meaning the patches were never applied - neither back then (as this hidden “OJS history” feature tells us) nor now.

Q1: Does OJS store (and keep forever) somewhere the information about plugin actions/old patching, which prevented us from actually patching the previously patched but now readded (should be obvious: now unpatched) plugin that in the meantime was physically removed?

Q2: Where to obtain the gz.tar paypal plugin?

Q3: What exact patches do we need for PayPal to work again besided the above one?

1 post - 1 participant

Read full topic

Viewing all 27306 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>