Author: websitedeveloper

 

Solution Fatal error: Uncaught Error: Call to undefined method SubmissionFileDAO::getAllFileStages OJS 3.3.0.8

Solution Fatal error: Uncaught Error: Call to undefined method SubmissionFileDAO::getAllFileStages OJS 3.3.0.8 after upgrade to thar version of OJS.


Thank you for asking, all my plugins are updated…
Fatal error: Uncaught Error: Call to undefined method SubmissionFileDAO::getAllFileStages() in /www/htdocs/journal/controllers/wizard/fileUpload/FileUploadWizardHandler.inc.php:35 Stack trace: 
#0 /www/htdocs/journal/lib/pkp/classes/core/PKPRouter.inc.php(387): FileUploadWizardHandler->authorize(Object(Request), Array, Array) 
#1 /www/htdocs/journal/lib/pkp/classes/core/PKPComponentRouter.inc.php(257): PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(Request), Array) 
#2 /www/htdocs/journal/lib/pkp/classes/core/Dispatcher.inc.php(144): PKPComponentRouter->route(Object(Request)) 
#3 /www/htdocs/journal/lib/pkp/classes/core/PKPApplication.inc.php(362): Dispatcher->dispatch(Object(Request)) 
#4 /www/htdocs/journal/index.php(68): PKPApplication->execute() 
#5 {main} thrown in /www/htdocs/journal/controllers/wizard/fileUpload/FileUploadWizardHandler.inc.php on line 35

In our case: This issue was coming because the previous version of OJS was copied in conflict with the new version – Backup the old code 3.1.1 (to not merge both version)
Start with a fresh version of OJS 3.3.0.8, use the update option

OSJ updating procedure, example from from 3.2.1.1 to 3.3.0.8

Open System Journal  updating procedure, example from from 3.2.1.1 to 3.3.0.8

The most important is backuping up your old code and datase before doing anything just in case if need to downupgrading (going back).

1- Replace the old code of the OJS with new code – keep the old config.inc.php (for the parameters)
2- Change on “installed” from “On” to “Off” on config.inc.php
3- Browse to your journal, for ukgoodbye.co.uk/ojs and the OJS should show the installation page
OSJ installation install or update

4- OJS update procedure
To update your current OSJ you should see, “if you are upgrading an existing installation of OJS, click here to proced.”
OJS update procedure

This procedure was used to update the OJS version 3.2.1.1 to OJS 3.3.0.8

We are looking for a hosting provider to host the following php projects resource, OJS, Cake php2 (migrate to 3), craftcms

We are looking for a hosting provider to host the following php projects resourcespace, OJS  (Open Journal System, Cakephp 2 (migrate to 3),craftcms, Drupal 9 or newer, zenario

1- Resourcespace
ResourceSpace open source Digital Asset Management software is the simple, fast, & free way to organise your digital assets

2- OJS
Open Journal Systems (OJS) is an open source software application for managing and publishing scholarly journals. Originally developed and released by PKP in 2001 to improve access to research, it is the most widely used open source journal publishing platform in existence, with over 25,000 journals using it worldwide.

3- Cakephp
CakePHP is an open-source web, rapid development framework that makes building web applications simpler, faster and require less code.

4- Craftcms
It is a flexible, user-friendly CMS for creating custom digital experiences on the web and beyond.

5- Drupal is a free and open-source web content management system written in PHP and distributed under the GNU General Public License.

Conditions:
1- Single hosting server for all of them
2- With 24 hours or less time response to issues
3- Stage version to install dev version
4- Live version different databases and websistes
 

OJS 3.3.0.8, Failed Ajax request or invalid JSON returned uploading

Solution OJS 3.3.0.8, Failed Ajax request or invalid JSON returned, when an user try to upload a galley either by QuickSubmit or publication.

OJS 3.3.0.8, Failed Ajax request or invalid JSON returned uploading


PHP Fatal error:  Uncaught Error: Call to undefined method SubmissionFileDAO::getAllFileStages() in \\controllers\\wizard\\fileUpload\\FileUploadWizardHandler.inc.php:35\nStack trace:\n#0 \\lib\\pkp\\classes\\core\\PKPRouter.inc.php(387): FileUploadWizardHandler->authorize(Object(Request), Array, Array)
\n#1 \\lib\\pkp\\classes\\core\\PKPComponentRouter.inc.php(257): PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(Request), Array)
\n#2 \\lib\\pkp\\classes\\core\\Dispatcher.inc.php(144): PKPComponentRouter->route(Object(Request))\n#3 \\lib\\pkp\\classes\\core\\PKPApplication.inc.php(362): Dispatcher->dispatch(Object(Request))
\n#4 \\index.php(68): PKPApplication->execute()
\n#5 {main}
\n  thrown in \\controllers\\wizard\\fileUpload\\FileUploadWizardHandler.inc.php on line 35, referer: http://localhost/netxtraosj/index.php/jcrm/management/importexport/plugin/QuickSubmitPlugin

Solution SMTP: PHPMailer Library Missing, PHPMailer is Required for SMTP to function.

Solution SMTP: PHPMailer Library Missing PHPMailer is Required for SMTP to function.

Step 1 add to composer.json on section require:


 "require": {
       ....
 "phpmailer/phpmailer": "^6.5"
    },

Step from our main folder of the project – using CMD:


..> composer update

 

Login Sessions Timing Out on OJS Current version: 3.3.0.8 (October 12, 2021 – 08:41 PM)

Current version: 3.3.0.8 (October 12, 2021 - 08:41 PM)

It is that hte login Sessions Timing Out on OJS 3.3.0.8 probably a matter of adjusting your PHP configuration, e.g. the gc_maxlifetime setting. If you’re behind a proxy, you may also want to try disabling session_check_ip in config.inc.php.
Some sessions variables:
Number of days to save login cookie for if user selects to remember
(set to 0 to force expiration at end of current session)
session_lifetime = 30

This check will invalidate a session if the user’s IP address changes.
Enabling this option provides some amount of additional security, but may
cause problems for users behind a proxy farm (e.g., AOL).
session_check_ip = Off
Specially if your version of the OJS is hosted Amazon that may use a load balancer in Amazon Web Services.

Solution:
The last option by changing on the config.inc.php, the session_check_ip off that solved for us.

Common mistake/error message when trying to access MS SharePoint, AADSTS50085

Common mistake/error message when trying to access, this is code AADSTS50085 from Microsoft documentation, but make essier for everybodoy
You can not logged or have more than ONE SharePoint’site in the site browser.
AADSTS50085

AADSTS50085 Refresh token needs social IDP login. Have user try signing-in again with username -password

Solution of the AADSTS50085:

Solution A: Sign out the first out and sign again with different

Solution B: Using an incognito mode or private mode.

Solution C: Using different browser.

How to Disable Welcome message to group Office 365 online

How to Disable Welcome message to group Office 365 online(Azure Directory)?
Solution 1:
Using PowerShell
Step 1 Open PowerSheel and connect to ExchangeOnline


PS C:\Users\UKgoodByeSales> Connect-ExchangeOnline

Step 2 Change the value of this UnifiedGroupWelcomeMessageEnable to “false”


PS C:\Users\UKgoodByeSales> Set-UnifiedGroup -Identity "UKgoodbyeSalesDepartment@groups.ukgoodbye.co.uk" -UnifiedGroupWelcomeMessageEnable:$false

Use the command Get-UnifiedGroup view the variable of the Sharepoint group or Azure D group:


C:\Users\MoussaSow> Get-UnifiedGroup -Identity "UKgoodbyeSalesDepartment@groups.ukgoodbye.co.uk" | Format-List

Solution Microsoft Power apps and power automate error appres://blobmanager

Solution for Microsoft Power apps and power automate error appres://blobmanager, that will upload corruputed file to Sharepoint:


Unable to process template language expressions in action 'Create_file' inputs at line '1' and column '12861': 'The template language function 'dataUriToBinary' expects its parameter to be formatted as a valid data URI. The provided value 'appres://blobmanager/10c34f7263814cd2a8f8750449b64a29/1' was not formatted correctly. Please see https://aka.ms/logicexpressions#dataUriToBinary for usage details.'

1- IT require to use Json on Power apps form on the OnSelect function to transform to binary code file to upload to Sharepoint by Power automate:
Change this by:
PowerAppsUploadDocuments.Run(AddMediaButton1.FileName,UploadedImage1.Image);

This using json:
PowerAppsUploadDocuments.Run(AddMediaButton1.FileName,Substitute(JSON(UploadedImage1.Image, JSONFormat.IncludeBinaryData),””””, “”));

Microsoft Power Automate Concurrency Control

Concurrency Control
Limit number of concurrent runs of the flow, or leave it off to run as many as possible at the same time. Concurrency control changes the way new runs are queued. It cannot be undone once enabled.
Limit
Concurrency Control