[OJS 3.1.2] Does not load style of the main page

I have version 3.1.2 of OJS with a problem when visualizing the correct style of the main page but if it makes the address of the different sections of the web page. Last week it works correctly
I tried to delete the files from the cache folder but it still appears with this inconvenience.

These are the warnings:

Warning: Declaration of DRIVERDAO::setOAI(&$oai) should be compatible with PKPOAIDAO::setOAI($oai) in /plugins/generic/driver/DRIVERDAO.inc.php on line  *19*
Call Stack
# Time Memory Function Location
1 0.2018 398104 {main}( ) .../index.php **:** 0
2 0.2109 1161176 Application->execute( ) .../index.php **:** 68
3 0.2111 1169776 Dispatcher->dispatch( ) .../PKPApplication.inc.php **:** 252
4 0.2195 1454960 PluginRegistry::loadCategory( ) .../Dispatcher.inc.php **:** 132
5 0.2433 2190576 PluginRegistry::register( ) .../PluginRegistry.inc.php **:** 138
6 0.2433 2190616 DRIVERPlugin->register( ) .../PluginRegistry.inc.php **:** 65
7 0.2436 2191976 DRIVERPlugin->import( ) .../DRIVERPlugin.inc.php **:** 32
8 0.2436 2192536 require_once( '/plugins/generic/driver/DRIVERDAO.inc.php' ) .../Plugin.inc.php **:** 470

( ! ) Warning: Declaration of OpenAIREDAO::setOAI(&$oai) should be compatible with PKPOAIDAO::setOAI($oai) in /plugins/generic/openAIRE/OpenAIREDAO.inc.php on line  *0*
Call Stack
# Time Memory Function Location
1 0.2018 398104 {main}( ) .../index.php **:** 0
2 0.2109 1161176 Application->execute( ) .../index.php **:** 68
3 0.2111 1169776 Dispatcher->dispatch( ) .../PKPApplication.inc.php **:** 252
4 0.2195 1454960 PluginRegistry::loadCategory( ) .../Dispatcher.inc.php **:** 132
5 0.2504 2619936 PluginRegistry::register( ) .../PluginRegistry.inc.php **:** 138
6 0.2504 2619976 OpenAIREPlugin->register( ) .../PluginRegistry.inc.php **:** 65
7 0.2507 2622608 OpenAIREPlugin->import( ) .../OpenAIREPlugin.inc.php **:** 26

( ! ) Warning: Cannot modify header information - headers already sent by (output started at /plugins/generic/openAIRE/OpenAIREDAO.inc.php:0) in /lib/pkp/classes/template/PKPTemplateManager.inc.php on line  *836*
Call Stack
# Time Memory Function Location
1 0.2018 398104 {main}( ) .../index.php **:** 0
2 0.2109 1161176 Application->execute( ) .../index.php **:** 68
3 0.2111 1169776 Dispatcher->dispatch( ) .../PKPApplication.inc.php **:** 252
4 0.2529 2674088 PageRouter->route( ) .../Dispatcher.inc.php **:** 134
5 0.2666 2670072 PageRouter->_authorizeInitializeAndCallRequest( ) .../PKPPageRouter.inc.php **:** 231
6 0.2669 2742600 IndexHandler->index( ) .../PKPRouter.inc.php **:** 390
7 0.3128 2994432 TemplateManager->display( ) .../IndexHandler.inc.php **:** 75
8 0.3174 3009256 [header](http://www.php.net/function.header) ( ) .../PKPTemplateManager.inc.php **:** 836

( ! ) Warning: Cannot modify header information - headers already sent by (output started at /plugins/generic/openAIRE/OpenAIREDAO.inc.php:0) in /lib/pkp/classes/template/PKPTemplateManager.inc.php on line  *837*
Call Stack
# Time Memory Function Location
1 0.2018 398104 {main}( ) .../index.php **:** 0
2 0.2109 1161176 Application->execute( ) .../index.php **:** 68
3 0.2111 1169776 Dispatcher->dispatch( ) .../PKPApplication.inc.php **:** 252
4 0.2529 2674088 PageRouter->route( ) .../Dispatcher.inc.php **:** 134
5 0.2666 2670072 PageRouter->_authorizeInitializeAndCallRequest( ) .../PKPPageRouter.inc.php **:** 231
6 0.2669 2742600 IndexHandler->index( ) .../PKPRouter.inc.php **:** 390
7 0.3128 2994432 TemplateManager->display( ) .../IndexHandler.inc.php **:** 75
8 0.3179 3009240 [header](http://www.php.net/function.header) ( ) .../PKPTemplateManager.inc.php **:** 837

And I show a screenshot:

image

Hi @jpmaidana,

These are only cosmetic warnings.

Are you directing messages in the browser? Can you direct them into the log file to see the full picture?

I am seeing that the images are loaded and the loading of css styles is missing

What part of the code are the css files created in?

In several places, e.g., ThemePlugin::addStyle.
If styles aren’t loaded there should be an error message in PHP logs. Some information also can give browser’s inspect tools (errors in the console, problems with requests, etc.).

Some of these errors may be causing the css files to fail to load

PHP 1. {main}() index.php:0
PHP 2. Application->execute() index.php:68
PHP 3. Dispatcher->dispatch() lib\pkp\classes\core\PKPApplication.inc.php:252
PHP 4. PluginRegistry::loadCategory() lib\pkp\classes\core\Dispatcher.inc.php:132
PHP 5. PluginRegistry::register() lib\pkp\classes\plugins\PluginRegistry.inc.php:138
PHP 6. DRIVERPlugin->register() lib\pkp\classes\plugins\PluginRegistry.inc.php:65
PHP 7. DRIVERPlugin->import() plugins\generic\driver\DRIVERPlugin.inc.php:32
PHP 8. require_once() lib\pkp\classes\plugins\Plugin.inc.php:470
PHP Warning: Declaration of OpenAIREDAO::setOAI(&$oai) should be compatible with PKPOAIDAO::setOAI($oai) in plugins\generic\openAIRE\OpenAIREDAO.inc.php on line 0

Application->execute() index.php:68
PHP 3. Dispatcher->dispatch() lib\pkp\classes\core\PKPApplication.inc.php:252
PHP 4. PluginRegistry::loadCategory() lib\pkp\classes\core\Dispatcher.inc.php:132
PHP 5. PluginRegistry::register() lib\pkp\classes\plugins\PluginRegistry.inc.php:138
PHP 6. OpenAIREPlugin->register() lib\pkp\classes\plugins\PluginRegistry.inc.php:65
PHP 7. OpenAIREPlugin->import() plugins\generic\openAIRE\OpenAIREPlugin.inc.php:26

Hi @jpmaidana,

Is this the full error message or only stack trace? It should start from PHP Fatal error:, contain error message itself and a reference to the line of code where problem appears first.

It doesn’t show me any with “PHP Fatal error”. Nor do I get errors in the web browser console.
The only style file that loads is orcidProfile.css
These are the complete lines of the log:

PHP Deprecated:  The each() function is deprecated. This message will be suppressed on further calls in \lib\pkp\lib\adodb\adodb.inc.php on line 1003
    PHP Stack trace:
    PHP   1. {main}() \index.php:0
    PHP   2. Application->execute() \index.php:68
    PHP   3. Dispatcher->dispatch() \lib\pkp\classes\core\PKPApplication.inc.php:252
    PHP   4. PageRouter->isCacheable() \lib\pkp\classes\core\Dispatcher.inc.php:117
    PHP   5. Validation::isLoggedIn() \lib\pkp\classes\core\PKPPageRouter.inc.php:66
    PHP   6. SessionManager::getManager() \lib\pkp\classes\security\Validation.inc.php:371
    PHP   7. SessionManager->__construct() \lib\pkp\classes\session\SessionManager.inc.php:129
    PHP   8. session_start() \lib\pkp\classes\session\SessionManager.inc.php:58
    PHP   9. SessionManager->read() \lib\pkp\classes\session\SessionManager.inc.php:58
    PHP  10. SessionDAO->getSession() \lib\pkp\classes\session\SessionManager.inc.php:168
    PHP  11. SessionDAO->retrieve() \lib\pkp\classes\session\SessionDAO.inc.php:37
    PHP  12. ADODB_mysqli->Execute() \lib\pkp\classes\db\DAO.inc.php:100
    PHP  13. each() \lib\pkp\lib\adodb\adodb.inc.php:1003
    PHP Deprecated:  The each() function is deprecated. This message will be suppressed on further calls in \lib\pkp\lib\adodb\adodb.inc.php on line 1003
    PHP Stack trace:
    PHP   1. {main}() \index.php:0
    PHP   2. Application->execute() \index.php:68
    PHP   3. Dispatcher->dispatch() \lib\pkp\classes\core\PKPApplication.inc.php:252
    PHP   4. PageRouter->isCacheable() \lib\pkp\classes\core\Dispatcher.inc.php:117
    PHP   5. Validation::isLoggedIn() \lib\pkp\classes\core\PKPPageRouter.inc.php:66
    PHP   6. SessionManager::getManager() \lib\pkp\classes\security\Validation.inc.php:371
    PHP   7. SessionManager->__construct() \lib\pkp\classes\session\SessionManager.inc.php:129
    PHP   8. session_start() \lib\pkp\classes\session\SessionManager.inc.php:58
    PHP   9. SessionManager->read() \lib\pkp\classes\session\SessionManager.inc.php:58
    PHP  10. SessionDAO->getSession() \lib\pkp\classes\session\SessionManager.inc.php:168
    PHP  11. SessionDAO->retrieve() \lib\pkp\classes\session\SessionDAO.inc.php:37
    PHP  12. ADODB_mysqli->Execute() \lib\pkp\classes\db\DAO.inc.php:100
    PHP  13. each() \lib\pkp\lib\adodb\adodb.inc.php:1003
    PHP Warning:  Declaration of DRIVERDAO::setOAI(&$oai) should be compatible with PKPOAIDAO::setOAI($oai) in \plugins\generic\driver\DRIVERDAO.inc.php on line 19
    PHP Stack trace:
    PHP   1. {main}() \index.php:0
    PHP   2. Application->execute() \index.php:68
    PHP   3. Dispatcher->dispatch() \lib\pkp\classes\core\PKPApplication.inc.php:252
    PHP   4. PluginRegistry::loadCategory() \lib\pkp\classes\core\Dispatcher.inc.php:132
    PHP   5. PluginRegistry::register() \lib\pkp\classes\plugins\PluginRegistry.inc.php:138
    PHP   6. DRIVERPlugin->register() \lib\pkp\classes\plugins\PluginRegistry.inc.php:65
    PHP   7. DRIVERPlugin->import() \plugins\generic\driver\DRIVERPlugin.inc.php:32
    PHP   8. require_once() \lib\pkp\classes\plugins\Plugin.inc.php:470
    PHP Warning:  Declaration of OpenAIREDAO::setOAI(&$oai) should be compatible with PKPOAIDAO::setOAI($oai) in \plugins\generic\openAIRE\OpenAIREDAO.inc.php on line 0
    PHP Stack trace:
    PHP   1. {main}() \index.php:0
    PHP   2. Application->execute() \index.php:68
    PHP   3. Dispatcher->dispatch() \lib\pkp\classes\core\PKPApplication.inc.php:252
    PHP   4. PluginRegistry::loadCategory() \lib\pkp\classes\core\Dispatcher.inc.php:132
    PHP   5. PluginRegistry::register() \lib\pkp\classes\plugins\PluginRegistry.inc.php:138
    PHP   6. OpenAIREPlugin->register() \lib\pkp\classes\plugins\PluginRegistry.inc.php:65
    PHP   7. OpenAIREPlugin->import() \plugins\generic\openAIRE\OpenAIREPlugin.inc.php:26

Nothing specifically dedicated to the issue here.

Can you double-check? The browser should notify if styles aren’t being loading. What browser are you using (and version)? In Google Chrome it’s ctrl+shift+i, then console tab. Also may be useful to check network tab, in particular how links to styles are looking like and what is the response.

When loading the page I only get a few warnings.

image

Then when browsing the articles it shows me the following errors

image

I am using version of Chrome 83 and Firefox 76

Does your server allow to use CDN?