Hello,
I am the administrator of an OJS journal and I would be very grateful for some help with a problem that appeared suddenly today.
The journal is running OJS 3.1.2-4 on shared hosting (Netsons), with PHP 7.4 and MariaDB. The website had been working normally until approximately 11:00 a.m. today (30 September 2026). It then suddenly lost all its formatting. Both the public website and the login page are now displayed as raw/unformatted HTML.
The journal itself and its content are still accessible, but no CSS appears to be loaded.
What I have checked
Using the browser developer tools, I inspected the generated HTML. The important point is that this does not appear to be a 404/403 problem with individual CSS files.
The generated <head> contains the usual meta information, title and some scripts, but there are no <link rel="stylesheet"> elements at all. The Network panel consequently shows no requests for the journal stylesheets.
I then checked the relevant frontend template:
lib/pkp/templates/frontend/components/headerHead.tpl
It contains:
<head>
<meta charset="{$defaultCharset|escape}">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>...</title>
{load_header context="frontend"}
{load_stylesheet context="frontend"}
</head>
Therefore, the template itself still contains the instruction to load the stylesheets, but {load_stylesheet context="frontend"} appears to be producing no stylesheet links.
Theme test
The journal normally uses the Health Sciences theme.
In the database (journal_settings) the setting was:
themePluginPath = healthSciences
I temporarily changed this to:
themePluginPath = default
and force-refreshed the website.
There was no change whatsoever: the Default theme was also completely unstyled, and no stylesheet links appeared in the generated HTML.
I have now restored:
themePluginPath = healthSciences
This seems to indicate that the problem is not specific to the Health Sciences theme.
I also inspected:
plugins/themes/healthSciences/HealthSciencesThemePlugin.inc.php
and its init() method still contains the expected calls to addStyle(), including:
$this->addStyle('stylesheet', 'styles/index.less');
as well as the other style dependencies and addScript() calls.
The theme files themselves have not recently been modified.
Cache
The OJS cache directory exists under:
public_html/cache
and contains the normal OJS cache directories, including _db, HTML, t_cache, t_compile, t_config, and URI.
We have already cleared the relevant OJS compiled/template cache during troubleshooting. OJS subsequently regenerated cache files, but the stylesheet problem remained.
PHP and server checks
The domain is explicitly configured to use PHP 7.4 (ea-php74).
The hosting provider has confirmed that no PHP or webserver updates were performed on the shared server this morning.
The .htaccess contains only the HTTPS redirect and the cPanel-generated PHP 7.4 handler; I found no unusual rewrite rules.
The PHP configuration has, among other settings:
memory_limit = 1024M
max_execution_time = 300
The error log contains various old/deprecation warnings, in particular:
PHP Deprecated: The each() function is deprecated...
/lib/pkp/lib/adodb/adodb.inc.php on line 1003
and a warning concerning a compiled template:
PHP Warning: Creating default object from empty value...
/cache/t_compile/...
However, I have found no fatal PHP error corresponding to the moment when the stylesheets stopped loading.
The hosting provider has also checked the server side and found no relevant server/webserver log explaining the missing stylesheet references.
DOI change made shortly before the problem
The only significant configuration change I made this morning was related to DOI configuration.
I entered a new DOI prefix (10.68205) for future publications. Because the timing made me wonder whether this could somehow be related, I searched the entire OJS database for that prefix.
There was exactly one occurrence, in plugin_settings:
plugin_name = doipubidplugin
context_id = 1
setting_name = doiPrefix
setting_value = 10.68205
setting_type = string
As a diagnostic test, I removed only this doiPrefix setting, returning the DOI configuration to its previous state.
This made no difference at all to the stylesheet problem. Therefore the DOI-prefix change does not appear to be the cause.
Plugin files
I also checked the plugin directories. The Crossref plugin files under:
plugins/importexport/crossref
are unchanged and dated from the original OJS installation (March 2020). There is no indication that the Crossref plugin or the theme was automatically updated today.
Current situation
At this point the most significant symptom seems to be:
OJS executes the frontend template containing
{load_stylesheet context="frontend"}, but generates zero<link rel="stylesheet">elements, regardless of whether the active theme is Health Sciences or Default.
The rest of the page HTML is generated, and the journal data remain available.
Could this indicate a problem with the plugin/theme registration mechanism, TemplateManager stylesheet hooks, plugin registry, or another part of the OJS stylesheet-loading pipeline?
In particular, I would be very grateful for advice on what to check next in OJS 3.1.2-4 before attempting a full restoration from backup.
Since this is a production journal with published content, I would prefer not to restore the entire installation or modify the database further until I understand which component is failing.
Thank you very much for any help.
Best regards,
Sotera Fornaro
Università della Campania “Luigi Vanvitelli”