OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Blank page viewing article after upgrade to 2.3.7

Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
What to do if you have a technical problem with OJS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a development question, try the OJS Development subforum.

Re: Blank page viewing article after upgrade to 2.3.7

Postby ntorres » Wed Jan 09, 2013 6:35 am

Hi Jason

I tried to write this log messages and I found no value to publishedArticle. This value is put in else branch

if ($journal->getSetting('enablePublicArticleId')) {
$publishedArticle =& $publishedArticleDao->getPublishedArticleByBestArticleId((int) $journalId, $articleId, true);
} else {
$publishedArticle =& $publishedArticleDao->getPublishedArticleByArticleId((int) $articleId, (int) $journalId, true);
}

So I review the getPublishedArticleByArticleId function


function &getPublishedArticleByArticleId($articleId, $journalId = null, $useCache = false) {
if ($useCache) {
$cache =& $this->_getPublishedArticleCache();
$returner = $cache->get($articleId);
if ($returner && $journalId != null && $journalId != $returner->getJournalId()) $returner = null;
return $returner;
}

and no value os returned from cahe.

If I call the getPublishedArticleByArticleId function whith false value to useCahe parameter I can access to the article.

How can I review or regenerate the cache?

Regards,

Natalia
ntorres
 
Posts: 65
Joined: Thu Nov 17, 2005 1:19 am

Re: Blank page viewing article after upgrade to 2.3.7

Postby JasonNugent » Wed Jan 09, 2013 7:55 am

Hi Natalia,

Does your web server have read and write access to the cache directory within OJS, and all of its sub directories? Caching should occur automatically if the user that your web server runs as can do those things.

Also, what is the 'cache' setting in your config.inc.php file set to?

Regards,
Jason
JasonNugent
Site Admin
 
Posts: 893
Joined: Tue Jan 10, 2006 6:20 am

Re: Blank page viewing article after upgrade to 2.3.7

Postby ntorres » Wed Jan 09, 2013 8:31 am

Hi Jason,
the web server has access to write and read to the cache directory and there are some files
fc-journalSettings-xxx.php
fc-locale-03b174b61510807426c2a2c128f6a86a.php
fc-locale-list.php
fc-pluginSettings-xx-yyy.php

and directories
HTML
t_cache
t_compile
t_config

The 'cache' setting in config.inc.php file :

;;;;;;;;;;;;;;;;;;
; Cache Settings ;
;;;;;;;;;;;;;;;;;;

[cache]

; Choose the type of object data caching to use. Options are:
; - memcache: Use the memcache server configured below
; - xcache: Use the xcache variable store
; - apc: Use the APC variable store
; - none: Use no caching.
object_cache = none

; Enable memcache support
memcache_hostname = localhost
memcache_port = 11211

; For site visitors who are not logged in, many pages are often entirely
; static (e.g. About, the home page, etc). If the option below is enabled,
; these pages will be cached in local flat files for the number of hours
; specified in the web_cache_hours option. This will cut down on server
; overhead for many requests, but should be used with caution because:
; 1) Things like journal metadata changes will not be reflected in cached
; data until the cache expires or is cleared, and
; 2) This caching WILL NOT RESPECT DOMAIN-BASED SUBSCRIPTIONS.
; However, for situations like hosting high-volume open access journals, it's
; an easy way of decreasing server load.

web_cache = Off
web_cache_hours = 1

I tried to set web_cache to On but it doesn't but I can't access to articles yet.

Regards,
Natalia
ntorres
 
Posts: 65
Joined: Thu Nov 17, 2005 1:19 am

Re: Blank page viewing article after upgrade to 2.3.7

Postby ntorres » Thu Jan 10, 2013 6:13 am

Hi Jason

I've tried to set web_cache to On but then I can't access to my ojs installation home page, I get a blank page
natalia
ntorres
 
Posts: 65
Joined: Thu Nov 17, 2005 1:19 am

Previous

Return to OJS Technical Support

Who is online

Users browsing this forum: No registered users and 6 guests