Issues after update to ojs-3.0.2 (file upload, new submission not working)

I turned that on but I don’t see any additional information after that error. The same error appears at the end line of the error log. All errors I see is:

[18-Apr-2017 17:03:29 UTC] PHP Warning: escapeshellarg() has been disabled for security reasons in /home/…/public_html/journal-newsite/lib/pkp/classes/plugins/PluginHelper.inc.php on line 64
[18-Apr-2017 17:03:29 UTC] PHP Warning: escapeshellarg() has been disabled for security reasons in /home/…/public_html/journal-newsite/lib/pkp/classes/plugins/PluginHelper.inc.php on line 64
[18-Apr-2017 17:03:29 UTC] PHP Warning: exec() has been disabled for security reasons in /home/…/public_html/journal-newsite/lib/pkp/classes/plugins/PluginHelper.inc.php on line 64
[18-Apr-2017 17:03:29 UTC] PHP Deprecated: Non-static method VersionCheck::getValidPluginVersionInfo() should not be called statically, assuming $this from incompatible context in /home/…/public_html/journal-newsite/lib/pkp/classes/plugins/PluginHelper.inc.php on line 103
[18-Apr-2017 17:03:29 UTC] PHP Fatal error: Call to a member function getProductType() on string in /home/…/public_html/journal-newsite/lib/pkp/classes/plugins/PluginHelper.inc.php on line 107

Ah, your server configuration disables escapeshellarg() and exec(), both of which are needed in the current code to extract the plugin from the downloaded file. Unless your provider is willing to relax this restriction, you will not be able to use the Plugin Gallery to install plugins (or some other application features, like the PKP PLN).

You can still install plugins manually by downloading and extracting them to the appropriate subdirectory under the plugins directory yourself. (You may need to subsequently re-run the upgrade script.)

Unfortunately my host couldn’t enable exec() as I am in a shared hosting environment. Anyway, I will do it manually.

Still the new submission is not working well. What happens is that the page goes blank after I click ‘New Submission’ and nothing is loaded. The interesting part is this happens after I upload a file in the server (eg logo, stylesheet). Until before I upload anything on the server, everything is good with no blank page. I did this couple of times with fresh upgrade and loading the files, the same problem persists. I tried in different browsers as well assuming that it could be cache issue but nothing helped (even tried it in different computer too).

Thanks.

A blank page probably indicates a fatal PHP error. Check your PHP error log for details, and post the new message(s) here.

I don’t see any PHP fatal error in the list. The log is here:

[26-Apr-2017 18:00:51 UTC] PHP Deprecated: Non-static method Request::getContext() should not be called statically, assuming $this from incompatible context in /home/…/public_html/journal-temp/lib/pkp/classes/plugins/ThemePlugin.inc.php on line 409
[26-Apr-2017 18:00:51 UTC] PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically, assuming $this from incompatible context in /home/…/public_html/journal-temp/classes/core/Request.inc.php on line 68
[26-Apr-2017 18:00:51 UTC] PHP Deprecated: Non-static method ScheduledTaskHelper::checkFrequency() should not be called statically, assuming $this from incompatible context in /home/…/public_html/journal-temp/lib/pkp/plugins/generic/acron/PKPAcronPlugin.inc.php on line 315
[26-Apr-2017 18:00:51 UTC] PHP Deprecated: Non-static method ScheduledTaskHelper::_isInRange() should not be called statically, assuming $this from incompatible context in /home/…/public_html/journal-temp/lib/pkp/classes/scheduledTask/ScheduledTaskHelper.inc.php on line 114
[26-Apr-2017 18:00:51 UTC] PHP Deprecated: Non-static method ScheduledTaskHelper::checkFrequency() should not be called statically, assuming $this from incompatible context in /home/…/public_html/journal-temp/lib/pkp/plugins/generic/acron/PKPAcronPlugin.inc.php on line 315
[26-Apr-2017 18:00:51 UTC] PHP Deprecated: Non-static method ScheduledTaskHelper::_isInRange() should not be called statically, assuming $this from incompatible context in /home/…/public_html/journal-temp/lib/pkp/classes/scheduledTask/ScheduledTaskHelper.inc.php on line 114
[26-Apr-2017 18:00:51 UTC] PHP Deprecated: Non-static method ScheduledTaskHelper::checkFrequency() should not be called statically, assuming $this from incompatible context in /home/…/public_html/journal-temp/lib/pkp/plugins/generic/acron/PKPAcronPlugin.inc.php on line 315
[26-Apr-2017 18:00:51 UTC] PHP Deprecated: Non-static method ScheduledTaskHelper::_isInRange() should not be called statically, assuming $this from incompatible context in /home/…/public_html/journal-temp/lib/pkp/classes/scheduledTask/ScheduledTaskHelper.inc.php on line 114
[26-Apr-2017 18:00:51 UTC] PHP Deprecated: Non-static method ScheduledTaskHelper::checkFrequency() should not be called statically, assuming $this from incompatible context in /home/…/public_html/journal-temp/lib/pkp/plugins/generic/acron/PKPAcronPlugin.inc.php on line 315
[26-Apr-2017 18:00:51 UTC] PHP Deprecated: Non-static method ScheduledTaskHelper::_isInRange() should not be called statically, assuming $this from incompatible context in /home/…/public_html/journal-temp/lib/pkp/classes/scheduledTask/ScheduledTaskHelper.inc.php on line 114
[26-Apr-2017 18:00:51 UTC] PHP Deprecated: Non-static method ScheduledTaskHelper::checkFrequency() should not be called statically, assuming $this from incompatible context in /home/…/public_html/journal-temp/lib/pkp/plugins/generic/acron/PKPAcronPlugin.inc.php on line 315
[26-Apr-2017 18:00:51 UTC] PHP Deprecated: Non-static method ScheduledTaskHelper::_isInRange() should not be called statically, assuming $this from incompatible context in /home/…/public_html/journal-temp/lib/pkp/classes/scheduledTask/ScheduledTaskHelper.inc.php on line 114
[26-Apr-2017 18:00:51 UTC] PHP Strict Standards: Declaration of PKPSubmissionHandler::authorize() should be compatible with PKPHandler::authorize($request, &$args, $roleAssignments, $enforceRestrictedSite = true) in /home/…/public_html/journal-temp/lib/pkp/pages/submission/PKPSubmissionHandler.inc.php on line 0
[26-Apr-2017 18:00:51 UTC] PHP Strict Standards: Declaration of PageHandler::authorize() should be compatible with PKPHandler::authorize($request, &$args, $roleAssignments, $enforceRestrictedSite = true) in /home/…/public_html/journal-temp/lib/pkp/controllers/page/PageHandler.inc.php on line 19
[26-Apr-2017 18:00:51 UTC] PHP Deprecated: Non-static method Request::getContext() should not be called statically, assuming $this from incompatible context in /home/…/public_html/journal-temp/lib/pkp/classes/plugins/ThemePlugin.inc.php on line 409
[26-Apr-2017 18:00:51 UTC] PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically, assuming $this from incompatible context in /home/…/public_html/journal-temp/classes/core/Request.inc.php on line 68
[26-Apr-2017 18:00:52 UTC] PHP Strict Standards: Declaration of PageHandler::authorize() should be compatible with PKPHandler::authorize($request, &$args, $roleAssignments, $enforceRestrictedSite = true) in /home/…/public_html/journal-temp/lib/pkp/controllers/page/PageHandler.inc.php on line 19
[26-Apr-2017 18:00:52 UTC] PHP Strict Standards: Declaration of PageHandler::authorize() should be compatible with PKPHandler::authorize($request, &$args, $roleAssignments, $enforceRestrictedSite = true) in /home/…/public_html/journal-temp/lib/pkp/controllers/page/PageHandler.inc.php on line 19
[26-Apr-2017 18:00:52 UTC] PHP Deprecated: Non-static method Request::getContext() should not be called statically, assuming $this from incompatible context in /home/…/public_html/journal-temp/lib/pkp/classes/plugins/ThemePlugin.inc.php on line 409
[26-Apr-2017 18:00:52 UTC] PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically, assuming $this from incompatible context in /home/…/public_html/journal-temp/classes/core/Request.inc.php on line 68
[26-Apr-2017 18:00:52 UTC] PHP Deprecated: Non-static method Request::getContext() should not be called statically, assuming $this from incompatible context in /home/…/public_html/journal-temp/lib/pkp/classes/plugins/ThemePlugin.inc.php on line 409
[26-Apr-2017 18:00:52 UTC] PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically, assuming $this from incompatible context in /home/…/public_html/journal-temp/classes/core/Request.inc.php on line 68
[26-Apr-2017 18:00:52 UTC] PHP Deprecated: Non-static method Request::getContext() should not be called statically, assuming $this from incompatible context in /home/…/public_html/journal-temp/lib/pkp/classes/plugins/ThemePlugin.inc.php on line 409
[26-Apr-2017 18:00:52 UTC] PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically, assuming $this from incompatible context in /home/…/public_html/journal-temp/classes/core/Request.inc.php on line 68
[26-Apr-2017 18:00:52 UTC] PHP Deprecated: Non-static method ScheduledTaskHelper::checkFrequency() should not be called statically, assuming $this from incompatible context in /home/…/public_html/journal-temp/lib/pkp/plugins/generic/acron/PKPAcronPlugin.inc.php on line 315
[26-Apr-2017 18:00:52 UTC] PHP Deprecated: Non-static method ScheduledTaskHelper::_isInRange() should not be called statically, assuming $this from incompatible context in /home/…/public_html/journal-temp/lib/pkp/classes/scheduledTask/ScheduledTaskHelper.inc.php on line 114
[26-Apr-2017 18:00:52 UTC] PHP Deprecated: Non-static method ScheduledTaskHelper::checkFrequency() should not be called statically, assuming $this from incompatible context in /home/…/public_html/journal-temp/lib/pkp/plugins/generic/acron/PKPAcronPlugin.inc.php on line 315
[26-Apr-2017 18:00:52 UTC] PHP Deprecated: Non-static method ScheduledTaskHelper::_isInRange() should not be called statically, assuming $this from incompatible context in /home/…/public_html/journal-temp/lib/pkp/classes/scheduledTask/ScheduledTaskHelper.inc.php on line 114
[26-Apr-2017 18:00:52 UTC] PHP Deprecated: Non-static method ScheduledTaskHelper::checkFrequency() should not be called statically, assuming $this from incompatible context in /home/…/public_html/journal-temp/lib/pkp/plugins/generic/acron/PKPAcronPlugin.inc.php on line 315
[26-Apr-2017 18:00:52 UTC] PHP Deprecated: Non-static method ScheduledTaskHelper::_isInRange() should not be called statically, assuming $this from incompatible context in /home/…/public_html/journal-temp/lib/pkp/classes/scheduledTask/ScheduledTaskHelper.inc.php on line 114
[26-Apr-2017 18:00:52 UTC] PHP Deprecated: Non-static method ScheduledTaskHelper::checkFrequency() should not be called statically, assuming $this from incompatible context in /home/…/public_html/journal-temp/lib/pkp/plugins/generic/acron/PKPAcronPlugin.inc.php on line 315
[26-Apr-2017 18:00:52 UTC] PHP Deprecated: Non-static method ScheduledTaskHelper::_isInRange() should not be called statically, assuming $this from incompatible context in /home/…/public_html/journal-temp/lib/pkp/classes/scheduledTask/ScheduledTaskHelper.inc.php on line 114
[26-Apr-2017 18:00:52 UTC] PHP Deprecated: Non-static method ScheduledTaskHelper::checkFrequency() should not be called statically, assuming $this from incompatible context in /home/…/public_html/journal-temp/lib/pkp/plugins/generic/acron/PKPAcronPlugin.inc.php on line 315
[26-Apr-2017 18:00:52 UTC] PHP Deprecated: Non-static method ScheduledTaskHelper::_isInRange() should not be called statically, assuming $this from incompatible context in /home/…/public_html/journal-temp/lib/pkp/classes/scheduledTask/ScheduledTaskHelper.inc.php on line 114
[26-Apr-2017 18:00:52 UTC] PHP Strict Standards: Declaration of PKPSubmissionHandler::authorize() should be compatible with PKPHandler::authorize($request, &$args, $roleAssignments, $enforceRestrictedSite = true) in /home/…/public_html/journal-temp/lib/pkp/pages/submission/PKPSubmissionHandler.inc.php on line 0
[26-Apr-2017 18:00:52 UTC] PHP Strict Standards: Declaration of ValidatorUrl::getRegexp() should be compatible with ValidatorUri::getRegexp($allowedSchemes = NULL) in /home/…/public_html/journal-temp/lib/pkp/classes/validation/ValidatorUrl.inc.php on line 19
[26-Apr-2017 18:00:52 UTC] PHP Strict Standards: Declaration of SubmissionSubmitForm::fetch() should be compatible with Form::fetch($request, $template = NULL, $display = false) in /home/…/public_html/journal-temp/lib/pkp/classes/submission/form/SubmissionSubmitForm.inc.php on line 21
[26-Apr-2017 18:00:52 UTC] PHP Strict Standards: Declaration of PKPSubmissionSubmitStep1Form::validate() should be compatible with Form::validate($callHooks = true) in /home/…/public_html/journal-temp/lib/pkp/classes/submission/form/PKPSubmissionSubmitStep1Form.inc.php on line 18
[26-Apr-2017 18:00:52 UTC] PHP Strict Standards: Declaration of PKPSubmissionSubmitStep1Form::execute() should be compatible with Form::execute($object = NULL) in /home/…/public_html/journal-temp/lib/pkp/classes/submission/form/PKPSubmissionSubmitStep1Form.inc.php on line 18
[26-Apr-2017 18:00:52 UTC] PHP Strict Standards: Declaration of SubmissionSubmitStep1Form::initData() should be compatible with PKPSubmissionSubmitStep1Form::initData($data = Array) in /home/…/public_html/journal-temp/classes/submission/form/SubmissionSubmitStep1Form.inc.php on line 18
[26-Apr-2017 18:00:52 UTC] PHP Deprecated: Non-static method PKPRequest::getUserVar() should not be called statically, assuming $this from incompatible context in /home/…/public_html/journal-temp/lib/pkp/classes/form/Form.inc.php on line 332
[26-Apr-2017 18:00:52 UTC] PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically, assuming $this from incompatible context in /home/…/public_html/journal-temp/lib/pkp/classes/core/PKPRequest.inc.php on line 582
[26-Apr-2017 18:00:52 UTC] PHP Deprecated: Non-static method PKPRequest::getUserVar() should not be called statically, assuming $this from incompatible context in /home/…/public_html/journal-temp/lib/pkp/classes/form/Form.inc.php on line 351
[26-Apr-2017 18:00:52 UTC] PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically, assuming $this from incompatible context in /home/…/public_html/journal-temp/lib/pkp/classes/core/PKPRequest.inc.php on line 582
[26-Apr-2017 18:00:52 UTC] PHP Strict Standards: Only variables should be passed by reference in /home/…/public_html/journal-temp/lib/pkp/classes/submission/form/PKPSubmissionSubmitStep1Form.inc.php on line 127
[26-Apr-2017 18:00:52 UTC] PHP Deprecated: Non-static method PKPRequest::getUserVar() should not be called statically, assuming $this from incompatible context in /home/…/public_html/journal-temp/lib/pkp/classes/form/Form.inc.php on line 351
[26-Apr-2017 18:00:52 UTC] PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically, assuming $this from incompatible context in /home/…/public_html/journal-temp/lib/pkp/classes/core/PKPRequest.inc.php on line 582
[26-Apr-2017 18:00:53 UTC] Malformed UTF-8 characters, possibly incorrectly encoded

That last message is suspicious. Is clicking the “New Submission” button the only thing that generates a white page?

Is it possible the character encoding in config.inc.php for 3.0.2 is set differently than you had it in 2.4.5?

First of all thank you for your prompt responses. I changed connection_charset as utf8, database-charset as utf8 and charset_normalization as on, and it worked like a charm. Many thanks!

I am having the same issue with my OJS 3.0.2 which was upgraded from 2.4.4.1. On clicking the “New Submission” button, it only generates a white page. Besides, Journal settings > Masthead, and Website Settings > Appearance pages also result a white page. See for example:

Check your PHP error log and Web Inspector console for error messages.

Web inspector console shows “SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data”.

While, the PHP error log shows:

Deprecated: Non-static method ScheduledTaskHelper::checkFrequency() should not be called statically, assuming $this from incompatible context in /home1/thescif5/public_html/horizonepublishing/ojs302a/lib/pkp/plugins/generic/acron/PKPAcronPlugin.inc.php on line 315

Deprecated: Non-static method ScheduledTaskHelper::_isInRange() should not be called statically, assuming $this from incompatible context in /home1/thescif5/public_html/horizonepublishing/ojs302a/lib/pkp/classes/scheduledTask/ScheduledTaskHelper.inc.php on line 114

Deprecated: Non-static method ScheduledTaskHelper::checkFrequency() should not be called statically, assuming $this from incompatible context in /home1/thescif5/public_html/horizonepublishing/ojs302a/lib/pkp/plugins/generic/acron/PKPAcronPlugin.inc.php on line 315

Deprecated: Non-static method ScheduledTaskHelper::_isInRange() should not be called statically, assuming $this from incompatible context in /home1/thescif5/public_html/horizonepublishing/ojs302a/lib/pkp/classes/scheduledTask/ScheduledTaskHelper.inc.php on line 114

Deprecated: Non-static method ScheduledTaskHelper::checkFrequency() should not be called statically, assuming $this from incompatible context in /home1/thescif5/public_html/horizonepublishing/ojs302a/lib/pkp/plugins/generic/acron/PKPAcronPlugin.inc.php on line 315

Deprecated: Non-static method ScheduledTaskHelper::_isInRange() should not be called statically, assuming $this from incompatible context in /home1/thescif5/public_html/horizonepublishing/ojs302a/lib/pkp/classes/scheduledTask/ScheduledTaskHelper.inc.php on line 114

Deprecated: Non-static method ScheduledTaskHelper::checkFrequency() should not be called statically, assuming $this from incompatible context in /home1/thescif5/public_html/horizonepublishing/ojs302a/lib/pkp/plugins/generic/acron/PKPAcronPlugin.inc.php on line 315

Deprecated: Non-static method ScheduledTaskHelper::_isInRange() should not be called statically, assuming $this from incompatible context in /home1/thescif5/public_html/horizonepublishing/ojs302a/lib/pkp/classes/scheduledTask/ScheduledTaskHelper.inc.php on line 114

Deprecated: Non-static method ScheduledTaskHelper::checkFrequency() should not be called statically, assuming $this from incompatible context in /home1/thescif5/public_html/horizonepublishing/ojs302a/lib/pkp/plugins/generic/acron/PKPAcronPlugin.inc.php on line 315

Deprecated: Non-static method ScheduledTaskHelper::_isInRange() should not be called statically, assuming $this from incompatible context in /home1/thescif5/public_html/horizonepublishing/ojs302a/lib/pkp/classes/scheduledTask/ScheduledTaskHelper.inc.php on line 114

Warning: Cannot modify header information - headers already sent by (output started at /home1/thescif5/public_html/horizonepublishing/ojs302a/lib/pkp/plugins/generic/acron/PKPAcronPlugin.inc.php:315) in /home1/thescif5/public_html/horizonepublishing/ojs302a/lib/pkp/classes/core/PKPRequest.inc.php on line 99

Do you have display_errors turned on in config.inc.php? If so, try turning it off.

That setting is likely to break JSON messages and shouldn’t be used in a production environment.

The ‘display_errors’ was turned on in the config.inc.php. It was turned off, but the problem still persists.

Somebody in this forum suggested that local upgrade of the OJS database followed by exporting the db dump to the live server will solve most of the problems. It seems some of the servers prevent correct upgrading of the db. I am going to try that option. I will report here if it works.

Thanks

The problem still persists. The error message in the OJS installation folder is “… America/Denver] Malformed UTF-8 characters, possibly incorrectly encoded”.

Have you checked your settings to ensure they haven’t changed from your OJS 2.x config to your OJS 3.x config?

I have similar error, about plugin installation, below log my apache error

[Mon Jul 03 14:51:44.149177 2017] [:error] [pid 7680:tid 1952] [client ::1:57116] PHP Fatal error: Call to a member function getProductType() on string in D:\webserver\htdocs\ojs-stmikdb\lib\pkp\classes\plugins\PluginHelper.inc.php on line 107, referer: http://localhost/ojs-stmikdb/index.php/dutacom/management/settings/website

any can help me to solve this error ?

sorry my english is bad

Hi @Alfan_Aria_Mustofa,

I suspect you’re working with a plugin that’s missing a version descriptor, or perhaps isn’t intended for installation in the software you’re using. What plugin are you working with?

Regards,
Alec Smecher
Public Knowledge Project Team

I am using windows 10 and my local server is xampp. and after installation complete i want to install some plugin, but i find this problem. when i try install other plugin, i find same problem

Hi @Alfan_Aria_Mustofa,

What plugins are you trying to install?

Regards,
Alec Smecher
Public Knowledge Project Team

Quick Submit Plugin…

Hi @Alfan_Aria_Mustofa,

Can you describe how you’re installing the plugin?

Regards,
Alec Smecher
Public Knowledge Project Team