Have you restarted Apache since making the changes to php.ini? They probably won’t be picked up in the existing webserver process.
It is a shared hosting. No control on server.
Mohammed Abdul Hannan Hazari
QAMER Publishing House
@ctgraham
Can any changes in .htaccess file help in disabling the PHP Strict Standards and PHP Deprecated warnings?
Try these instructions to enter the configuration via .htaccess:
@ctgraham
Still not able to save the masthead
Below are the lines from today’s PHP error log
[10-May-2017 05:09:18 America/New_York] PHP Deprecated: Non-static method ScheduledTaskHelper::checkFrequency() should not be called statically, assuming $this from incompatible context in /home/qamevedq/amphysiol.com/lib/pkp/plugins/generic/acron/PKPAcronPlugin.inc.php on line 315
[10-May-2017 05:09:18 America/New_York] PHP Deprecated: Non-static method ScheduledTaskHelper::_isInRange() should not be called statically, assuming $this from incompatible context in /home/qamevedq/amphysiol.com/lib/pkp/classes/scheduledTask/ScheduledTaskHelper.inc.php on line 114
[10-May-2017 05:09:18 America/New_York] PHP Deprecated: Non-static method ScheduledTaskHelper::checkFrequency() should not be called statically, assuming $this from incompatible context in /home/qamevedq/amphysiol.com/lib/pkp/plugins/generic/acron/PKPAcronPlugin.inc.php on line 315
[10-May-2017 05:09:18 America/New_York] PHP Deprecated: Non-static method ScheduledTaskHelper::_isInRange() should not be called statically, assuming $this from incompatible context in /home/qamevedq/amphysiol.com/lib/pkp/classes/scheduledTask/ScheduledTaskHelper.inc.php on line 114
[10-May-2017 05:09:18 America/New_York] PHP Deprecated: Non-static method ScheduledTaskHelper::checkFrequency() should not be called statically, assuming $this from incompatible context in /home/qamevedq/amphysiol.com/lib/pkp/plugins/generic/acron/PKPAcronPlugin.inc.php on line 315
[10-May-2017 05:09:18 America/New_York] PHP Deprecated: Non-static method ScheduledTaskHelper::_isInRange() should not be called statically, assuming $this from incompatible context in /home/qamevedq/amphysiol.com/lib/pkp/classes/scheduledTask/ScheduledTaskHelper.inc.php on line 114
[10-May-2017 05:09:18 America/New_York] PHP Deprecated: Non-static method ScheduledTaskHelper::checkFrequency() should not be called statically, assuming $this from incompatible context in /home/qamevedq/amphysiol.com/lib/pkp/plugins/generic/acron/PKPAcronPlugin.inc.php on line 315
[10-May-2017 05:09:18 America/New_York] PHP Deprecated: Non-static method ScheduledTaskHelper::_isInRange() should not be called statically, assuming $this from incompatible context in /home/qamevedq/amphysiol.com/lib/pkp/classes/scheduledTask/ScheduledTaskHelper.inc.php on line 114
[10-May-2017 05:09:18 America/New_York] PHP Deprecated: Non-static method ScheduledTaskHelper::checkFrequency() should not be called statically, assuming $this from incompatible context in /home/qamevedq/amphysiol.com/lib/pkp/plugins/generic/acron/PKPAcronPlugin.inc.php on line 315
[10-May-2017 05:09:18 America/New_York] PHP Deprecated: Non-static method ScheduledTaskHelper::_isInRange() should not be called statically, assuming $this from incompatible context in /home/qamevedq/amphysiol.com/lib/pkp/classes/scheduledTask/ScheduledTaskHelper.inc.php on line 114
[10-May-2017 05:09:18 America/New_York] PHP Deprecated: Non-static method Request::getContext() should not be called statically, assuming $this from incompatible context in /home/qamevedq/amphysiol.com/lib/pkp/classes/plugins/ThemePlugin.inc.php on line 409
[10-May-2017 05:09:18 America/New_York] PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically, assuming $this from incompatible context in /home/qamevedq/amphysiol.com/classes/core/Request.inc.php on line 68
[10-May-2017 05:09:18 America/New_York] PHP Deprecated: Non-static method Request::getContext() should not be called statically, assuming $this from incompatible context in /home/qamevedq/amphysiol.com/lib/pkp/classes/plugins/ThemePlugin.inc.php on line 409
[10-May-2017 05:09:18 America/New_York] PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically, assuming $this from incompatible context in /home/qamevedq/amphysiol.com/classes/core/Request.inc.php on line 68
Did the time of “10-May-2017 05:09:18” correspond to a time when you tried to save the masthead again? The messages from the error log will only be relevant if they come from the time when you tried to save the masthead.
Re-reading your initial report, I note you say “The save button start rotating for hours”. This raises the possibility that the error may simply be javascript related and not actually be touching the server. Open your web browser’s Web Inspector tool (usually accessed by F12), and use the Console tab to look for Javascript error messages. If the request goes to the server, you can also use the Network tab to see which request failed. Share those errors here.
The server time shown corresponds to the timing of my trying to save masthead (My country time zone is GMT+5:30 and the server is located in New York, the time is correct keeping in view the time zone difference)
As suggested by you, I opened the Inspector tool in Mozilla Firefox. Under console → JS → this was the error
Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user’s experience. For more help http://xhr.spec.whatwg.org/ jquery.min.js:4:25645
Under Network tab, this is shown
GET
http://amphysiol.com/index.php/amp/$$$call$$$/page/page/css [HTTP/1.1 200 OK 0ms]
GET
http://amphysiol.com/index.php/amp/$$$call$$$/page/page/css [HTTP/1.1 200 OK 3824ms]
After disabling and enabling addThis plugin and updating my PC’s Windows 10 the problem is solved. I am able to save the masthead now.
@ctgraham
Thanks for the continuous support in trouble shooting my problem.
We have exactly the same issue @ctgraham, but we access the OJS site from two different country and we both facing this same issue. We can not upload images, or have long text in Masthead field. The installation is fresh. I checked the log file and I can not see any relevant error message,
Please note that we tried different browser in different locations and the result is the same.
Here is the last lines in my log
[18-Jun-2017 17:45:12 America/Chicago] PHP Deprecated: Non-static method PKPRequest::getUserVar() should not be called statically, assuming $this from incompatible context in /home/cihanuni/public_html/journals/lib/pkp/classes/form/Form.inc.php on line 351
[18-Jun-2017 17:45:12 America/Chicago] PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically, assuming $this from incompatible context in /home/cihanuni/public_html/journals/lib/pkp/classes/core/PKPRequest.inc.php on line 582
[18-Jun-2017 17:45:13 America/Chicago] PHP Deprecated: Non-static method Request::getContext() should not be called statically, assuming $this from incompatible context in /home/cihanuni/public_html/journals/lib/pkp/classes/plugins/ThemePlugin.inc.php on line 409
[18-Jun-2017 17:45:13 America/Chicago] PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically, assuming $this from incompatible context in /home/cihanuni/public_html/journals/classes/core/Request.inc.php on line 68
[18-Jun-2017 17:45:13 America/Chicago] PHP Strict Standards: Declaration of DevelopedByBlockPlugin::getSeq() should be compatible with BlockPlugin::getSeq($contextId = NULL) in /home/cihanuni/public_html/journals/plugins/blocks/developedBy/DevelopedByBlockPlugin.inc.php on line 0
[18-Jun-2017 17:45:13 America/Chicago] PHP Strict Standards: Declaration of DevelopedByBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /home/cihanuni/public_html/journals/plugins/blocks/developedBy/DevelopedByBlockPlugin.inc.php on line 0
[18-Jun-2017 17:45:13 America/Chicago] PHP Strict Standards: Declaration of DevelopedByBlockPlugin::getEnabled() should be compatible with BlockPlugin::getEnabled($contextId = NULL) in /home/cihanuni/public_html/journals/plugins/blocks/developedBy/DevelopedByBlockPlugin.inc.php on line 0
[18-Jun-2017 17:45:13 America/Chicago] PHP Strict Standards: Declaration of CustomBlockPlugin::getSeq() should be compatible with BlockPlugin::getSeq($contextId = NULL) in /home/cihanuni/public_html/journals/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 0
[18-Jun-2017 17:45:13 America/Chicago] PHP Strict Standards: Declaration of CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /home/cihanuni/public_html/journals/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 0
[18-Jun-2017 17:45:13 America/Chicago] PHP Strict Standards: Declaration of CustomBlockPlugin::getEnabled() should be compatible with BlockPlugin::getEnabled($contextId = NULL) in /home/cihanuni/public_html/journals/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 0
[18-Jun-2017 17:45:13 America/Chicago] PHP Strict Standards: Declaration of CustomBlockPlugin::getContents() should be compatible with BlockPlugin::getContents($templateMgr, $request = NULL) in /home/cihanuni/public_html/journals/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 0
[18-Jun-2017 17:45:14 America/Chicago] PHP Deprecated: Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set ‘always_populate_raw_post_data’ to ‘-1’ in php.ini and use the php://input stream instead. in Unknown on line 0
[18-Jun-2017 17:45:15 America/Chicago] PHP Deprecated: Non-static method ScheduledTaskHelper::checkFrequency() should not be called statically, assuming $this from incompatible context in /home/cihanuni/public_html/journals/lib/pkp/plugins/generic/acron/PKPAcronPlugin.inc.php on line 315
[18-Jun-2017 17:45:15 America/Chicago] PHP Deprecated: Non-static method ScheduledTaskHelper::_isInRange() should not be called statically, assuming $this from incompatible context in /home/cihanuni/public_html/journals/lib/pkp/classes/scheduledTask/ScheduledTaskHelper.inc.php on line 114
[18-Jun-2017 17:45:15 America/Chicago] PHP Deprecated: Non-static method ScheduledTaskHelper::checkFrequency() should not be called statically, assuming $this from incompatible context in /home/cihanuni/public_html/journals/lib/pkp/plugins/generic/acron/PKPAcronPlugin.inc.php on line 315
[18-Jun-2017 17:45:15 America/Chicago] PHP Deprecated: Non-static method ScheduledTaskHelper::_isInRange() should not be called statically, assuming $this from incompatible context in /home/cihanuni/public_html/journals/lib/pkp/classes/scheduledTask/ScheduledTaskHelper.inc.php on line 114
[18-Jun-2017 17:45:15 America/Chicago] PHP Deprecated: Non-static method ScheduledTaskHelper::checkFrequency() should not be called statically, assuming $this from incompatible context in /home/cihanuni/public_html/journals/lib/pkp/plugins/generic/acron/PKPAcronPlugin.inc.php on line 315
[18-Jun-2017 17:45:15 America/Chicago] PHP Deprecated: Non-static method ScheduledTaskHelper::_isInRange() should not be called statically, assuming $this from incompatible context in /home/cihanuni/public_html/journals/lib/pkp/classes/scheduledTask/ScheduledTaskHelper.inc.php on line 114
[18-Jun-2017 17:45:15 America/Chicago] PHP Deprecated: Non-static method ScheduledTaskHelper::checkFrequency() should not be called statically, assuming $this from incompatible context in /home/cihanuni/public_html/journals/lib/pkp/plugins/generic/acron/PKPAcronPlugin.inc.php on line 315
[18-Jun-2017 17:45:15 America/Chicago] PHP Deprecated: Non-static method ScheduledTaskHelper::_isInRange() should not be called statically, assuming $this from incompatible context in /home/cihanuni/public_html/journals/lib/pkp/classes/scheduledTask/ScheduledTaskHelper.inc.php on line 114
[18-Jun-2017 17:45:15 America/Chicago] PHP Deprecated: Non-static method ScheduledTaskHelper::checkFrequency() should not be called statically, assuming $this from incompatible context in /home/cihanuni/public_html/journals/lib/pkp/plugins/generic/acron/PKPAcronPlugin.inc.php on line 315
[18-Jun-2017 17:45:15 America/Chicago] PHP Deprecated: Non-static method ScheduledTaskHelper::_isInRange() should not be called statically, assuming $this from incompatible context in /home/cihanuni/public_html/journals/lib/pkp/classes/scheduledTask/ScheduledTaskHelper.inc.php on line 114
[18-Jun-2017 17:45:15 America/Chicago] PHP Deprecated: Non-static method Request::getContext() should not be called statically, assuming $this from incompatible context in /home/cihanuni/public_html/journals/lib/pkp/classes/plugins/ThemePlugin.inc.php on line 409
[18-Jun-2017 17:45:15 America/Chicago] PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically, assuming $this from incompatible context in /home/cihanuni/public_html/journals/classes/core/Request.inc.php on line 68
[18-Jun-2017 17:45:15 America/Chicago] PHP Strict Standards: Declaration of DevelopedByBlockPlugin::getSeq() should be compatible with BlockPlugin::getSeq($contextId = NULL) in /home/cihanuni/public_html/journals/plugins/blocks/developedBy/DevelopedByBlockPlugin.inc.php on line 0
[18-Jun-2017 17:45:15 America/Chicago] PHP Strict Standards: Declaration of DevelopedByBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /home/cihanuni/public_html/journals/plugins/blocks/developedBy/DevelopedByBlockPlugin.inc.php on line 0
[18-Jun-2017 17:45:15 America/Chicago] PHP Strict Standards: Declaration of DevelopedByBlockPlugin::getEnabled() should be compatible with BlockPlugin::getEnabled($contextId = NULL) in /home/cihanuni/public_html/journals/plugins/blocks/developedBy/DevelopedByBlockPlugin.inc.php on line 0
[18-Jun-2017 17:45:15 America/Chicago] PHP Strict Standards: Declaration of CustomBlockPlugin::getSeq() should be compatible with BlockPlugin::getSeq($contextId = NULL) in /home/cihanuni/public_html/journals/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 0
[18-Jun-2017 17:45:15 America/Chicago] PHP Strict Standards: Declaration of CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /home/cihanuni/public_html/journals/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 0
[18-Jun-2017 17:45:15 America/Chicago] PHP Strict Standards: Declaration of CustomBlockPlugin::getEnabled() should be compatible with BlockPlugin::getEnabled($contextId = NULL) in /home/cihanuni/public_html/journals/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 0
[18-Jun-2017 17:45:15 America/Chicago] PHP Strict Standards: Declaration of CustomBlockPlugin::getContents() should be compatible with BlockPlugin::getContents($templateMgr, $request = NULL) in /home/cihanuni/public_html/journals/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 0
The messages in your error log beginning with “PHP Strict Standards” or “PHP Deprecated” will not generally be helpful in diagnosing the problem. You are looking for either messages in the error log at the time of the request that don’t contain these prefixes (look instead for “Error” or “Fatal” or similar), or you may need to look in your web browser’s console for javascript error messages (in the case where the request never made it to the server).
I did search for those terms Error and Fatal but there were non in log file. I check the consul, please see the attachment. It is just this note in the NET rather than JS consul. When I installed the OJS I selected the Database charset to UTF-8 as we use Arabic too, Is this a problem?
I also noticed that as long as the test in continuous text it will be saved, but if it contain paragraph break or line break or TABLE it will hang. I could not also upload images…
The HTTP 403 message in your screenshot is likely the cause. A 403 error indicates that the webserver (or an earlier firewall) blocked the request without passing it on to OJS. This is likely due to request filtering, such as a Web Application Firewall device in front of your webserver on the network, or an internal webserver module, such as mod_security in Apache.
That s, There is a ModSecurity in Cpanel and I turn that off for the OJS3 site, Now there is now issues. But this module does not have any setting to tune it down. Will it be any security issue please? It says
Warning: ModSecurity is disabled for one or more of your domains. Only disable ModSecurity while you troubleshoot a problem with your configuration. Without ModSecurity enabled, your domains lose the extra layer of protection that the module provides.
ModSecurity comes with a set of standard rules which can be enabled/disabled/appended; but you may not be able to do that directly, depending on your hosting environment.
Check with your hosting support about whether or not you (or they on your behalf) can disable specific ModSecurity rules. If so, you’ll need to identify the rule that is blocking this specific request.
Hi @ctgraham,
I am facing the same issue reported in this thread and the OJS does not save any information in the Journal Settings tabs Masthead and Contact.
I have checked if there was a security issue, but there is not. Everything seems correct as you can check on the captured debug image attached. However, no new information is saved in the Masthead or Contact tabs.
The only HTTP error I could verify was HTTP/1.1 304 No Modified (see figure below). Could this be the problem?
Thank you,
Gustavo
An HTTP 304 response is not an error, but an expected response to a check for a page already cached in the browser.
Since OJS is apparently reporting success on saving the form data, you will want to next check your webserver error log for any non-fatal errors, such as problems writing to the cache files in your files_dir
. Also try clearing your browser’s cache to confirm you aren’t holding on to any cached pages locally (though this is unlikely).
i had the same issue, i am using latest ojs version,
my php error is [06-Sep-2019 18:21:38 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; CounterReport has a deprecated constructor in /plugins/reports/counter/classes/CounterReport.inc.php on line 33
The messages in your error log beginning with “PHP Strict Standards” or “PHP Deprecated” will not generally be helpful in diagnosing the problem. You are looking for messages in the error log at the time of the request that don’t contain these prefixes (look instead for “Error” or “Fatal” or perhaps “Warning”), or you may need to look in your web browser’s console for javascript error messages (in the case where the request never made it to the server).
Thank you
please find the errors
[10-Sep-2019 16:48:46 UTC] PHP Warning: Declaration of HypothesisPlugin::register($category, $path) should be compatible with LazyLoadPlugin::register($category, $path, $mainContextId = NULL) in /home/rubatosi/public_html/journals/plugins/generic/hypothesis/HypothesisPlugin.inc.php on line 67
[10-Sep-2019 16:48:46 UTC] PHP Warning: Declaration of PlagiarismPlugin::register($category, $path) should be compatible with LazyLoadPlugin::register($category, $path, $mainContextId = NULL) in /home/rubatosi/public_html/journals/plugins/generic/plagiarism/PlagiarismPlugin.inc.php on line 119
[10-Sep-2019 16:48:46 UTC] PHP Warning: Declaration of PlagiarismPlugin::getEnabled() should be compatible with LazyLoadPlugin::getEnabled($contextId = NULL) in /home/rubatosi/public_html/journals/plugins/generic/plagiarism/PlagiarismPlugin.inc.php on line 119
[10-Sep-2019 16:48:46 UTC] PHP Warning: Declaration of CoinsPlugin::register($category, $path) should be compatible with LazyLoadPlugin::register($category, $path, $mainContextId = NULL) in /home/rubatosi/public_html/journals/plugins/generic/coins/CoinsPlugin.inc.php on line 133
[10-Sep-2019 16:48:46 UTC] PHP Warning: Declaration of TexturePlugin::register($category, $path) should be compatible with LazyLoadPlugin::register($category, $path, $mainContextId = NULL) in /home/rubatosi/public_html/journals/plugins/generic/texture/TexturePlugin.inc.php on line 141
[10-Sep-2019 16:48:46 UTC] PHP Warning: Declaration of CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /home/rubatosi/public_html/journals/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 134
[10-Sep-2019 16:48:46 UTC] PHP Warning: Declaration of DRIVERDAO::setOAI(&$oai) should be compatible with PKPOAIDAO::setOAI($oai) in /home/rubatosi/public_html/journals/plugins/generic/driver/DRIVERDAO.inc.php on line 19
[10-Sep-2019 16:48:46 UTC] PHP Warning: Declaration of SwordImportExportPlugin::register($category, $path) should be compatible with Plugin::register($category, $path, $mainContextId = NULL) in /home/rubatosi/public_html/journals/plugins/generic/sword/SwordImportExportPlugin.inc.php on line 233
[10-Sep-2019 16:48:46 UTC] PHP Warning: Declaration of JournalOAI::sets($offset, $limit, &$total) should be compatible with OAI::sets($offset, &$total) in /home/rubatosi/public_html/journals/classes/oai/ojs/JournalOAI.inc.php on line 230