Pages failing to load properly or function (only in Safari)?

An odd thing began happening last summer when our hosting provider (TSOHost/123reg) migrated/changed our hosting package (internally — not to a different provider). Our journal no longer functioned in Safari browsers (so it’s a serious problem for our Mac user base). From what I can gather, pages do not appear to load the default css stylesheet (we use Manuscript) and PDFs are not viewable or downloadable even.

This is the site: https://www.hcsjournal.org/ojs/index.php/hcs

I set the PHP version back down to 7.2 and made sure that OJS was using this in the htaccess files, in case this was the cause. Still no success. I contacted our hosting provider but they were none the wiser, and alerted me to the problem of the stylesheet not loading. I double checked various folder permissions and compared them to another OJS-based journal I manage, and found no obvious issues.

Since that date the error log has exploded in size. Below is an excerpt from today’s entries (the last few lines relating to my having tried to view the site in Safari on iOS):

[21-Jan-2025 16:21:59 UTC] PHP Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/exgq88javl0v/public_html/ojs/lib/pkp/lib/adodb/adodb.inc.php on line 1003
[21-Jan-2025 16:21:59 UTC] PHP Notice: Only variables should be assigned by reference in /home/exgq88javl0v/public_html/ojs/pages/index/IndexHandler.inc.php on line 68
[21-Jan-2025 16:21:59 UTC] PHP Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/exgq88javl0v/public_html/ojs/lib/pkp/lib/adodb/adodb.inc.php on line 1003
[21-Jan-2025 16:21:59 UTC] PHP Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/exgq88javl0v/public_html/ojs/lib/pkp/lib/adodb/adodb.inc.php on line 1003
[21-Jan-2025 16:22:15 UTC] PHP Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/exgq88javl0v/public_html/ojs/lib/pkp/lib/adodb/adodb.inc.php on line 1003
[21-Jan-2025 16:22:15 UTC] PHP Warning: Declaration of SubmissionKeywordEntryDAO::getByControlledVocabId($controlledVocabId, $rangeInfo = NULL) should be compatible with ControlledVocabEntryDAO::getByControlledVocabId($controlledVocabId, $rangeInfo = NULL, $filter = NULL) in /home/exgq88javl0v/public_html/ojs/lib/pkp/classes/submission/SubmissionKeywordEntryDAO.inc.php on line 20
[21-Jan-2025 16:22:15 UTC] PHP Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/exgq88javl0v/public_html/ojs/lib/pkp/lib/adodb/adodb.inc.php on line 1003
[21-Jan-2025 16:22:16 UTC] PHP Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/exgq88javl0v/public_html/ojs/lib/pkp/lib/adodb/adodb.inc.php on line 1003
[21-Jan-2025 16:22:46 UTC] PHP Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/exgq88javl0v/public_html/ojs/lib/pkp/lib/adodb/adodb.inc.php on line 1003
[21-Jan-2025 16:22:52 UTC] PHP Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/exgq88javl0v/public_html/ojs/lib/pkp/lib/adodb/adodb.inc.php on line 1003
[21-Jan-2025 16:23:56 UTC] PHP Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/exgq88javl0v/public_html/ojs/lib/pkp/lib/adodb/adodb.inc.php on line 1003
[21-Jan-2025 16:23:56 UTC] PHP Warning: Declaration of SubmissionKeywordEntryDAO::getByControlledVocabId($controlledVocabId, $rangeInfo = NULL) should be compatible with ControlledVocabEntryDAO::getByControlledVocabId($controlledVocabId, $rangeInfo = NULL, $filter = NULL) in /home/exgq88javl0v/public_html/ojs/lib/pkp/classes/submission/SubmissionKeywordEntryDAO.inc.php on line 20
[21-Jan-2025 16:23:56 UTC] PHP Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/exgq88javl0v/public_html/ojs/lib/pkp/lib/adodb/adodb.inc.php on line 1003
[21-Jan-2025 16:23:56 UTC] PHP Warning: Declaration of SubmissionKeywordEntryDAO::getByControlledVocabId($controlledVocabId, $rangeInfo = NULL) should be compatible with ControlledVocabEntryDAO::getByControlledVocabId($controlledVocabId, $rangeInfo = NULL, $filter = NULL) in /home/exgq88javl0v/public_html/ojs/lib/pkp/classes/submission/SubmissionKeywordEntryDAO.inc.php on line 20
[21-Jan-2025 16:23:57 UTC] PHP Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/exgq88javl0v/public_html/ojs/lib/pkp/lib/adodb/adodb.inc.php on line 1003
[21-Jan-2025 16:23:57 UTC] PHP Warning: Declaration of SubmissionKeywordEntryDAO::getByControlledVocabId($controlledVocabId, $rangeInfo = NULL) should be compatible with ControlledVocabEntryDAO::getByControlledVocabId($controlledVocabId, $rangeInfo = NULL, $filter = NULL) in /home/exgq88javl0v/public_html/ojs/lib/pkp/classes/submission/SubmissionKeywordEntryDAO.inc.php on line 20

I should be very grateful for any advice on this matter, because it is driving me to distraction. I had intended to perform some upgrades to the recent version of OJS but I dare not if the root cause is going to cause failure and corruption of data.

I’m using OJS 3.1.2.4

Incidentally, every time I log in to OJS I am met with an error message. Otherwise the site appears to function fine:

Regards,

Thilo

Hi @thilor,

I would suggest an upgrade – OJS 3.1.2-4 is extremely old, and while I don’t know the root cause of the Safari problem, an upgrade will definitely help with the error log (and help you narrow down on the cause of the remaining issues, if the upgrade doesn’t fix them outright).

If your install appears to work just fine on most browsers – as it does e.g. with Firefox – I don’t think there’s risk of an issue being compounded with an upgrade.

I can’t run Safari, but I would suggest using the web developer tools in the browser to explore why the stylesheets don’t seem to be applied. For example, is the browser even requesting them? Are there warnings in the browser’s error console?

Regards,
Alec Smecher
Public Knowledge Project Team

Thank you for your reply.

I can confirm that Safari is trying to call the css and three .js files but is failing with the error:
Failed to load resource: the server responded with a status of 404 ()
Yet the files are there.

What is odd is that I took a backup of the site and installed it in Xampp and it runs perfectly in PHP 7.1.

Would you recommend a one-leap upgrade from 3.1.2.4 or a staged one through intermediate versions? Should these be matched to minimum/maximum versions of PHP versions running on the server? I’m struggling to find reliable information on the subject.

Hi @thilor,

I would recommend leaping directly from 3.1.2-4 to the latest 3.3.0 LTS release.

The best documentation resource on upgrades is the upgrade guide:

https://docs.pkp.sfu.ca/dev/upgrade-guide/en/

Regards,
Alec Smecher
Public Knowledge Project Team

This topic was automatically closed after 12 days. New replies are no longer allowed.