After upgrade to 3.0.1 (from 3.0), cover issue is missing?

After 3.0 to 3.0.1 the cover issue is missing and the link to the image is strange:

.../public/journals/1/Array

Hi @vebaev,

What theme are you using? The Bootstrap3 theme still needs to be updated for OJS 3.0.1. I’m hoping to get a compatible release out soon, but running into some issues with the cover images.

Yes, Bootstrap3 theme

A release is coming probably later today if everything goes smoothly.

I’ll also be adding documentation to the theme which indicates which releases are compatible with which versions of OJS. In the future it will be a good idea to keep an eye on the GitHub repository before performing application updates.

If the fix is urgent, here’s a .diff showing the changes required for localized cover image support. But this will probably go out later today.

diff --git a/templates/frontend/objects/article_details.tpl b/templates/frontend/objects/article_details.tpl
index c05d32f..164fd66 100644
--- a/templates/frontend/objects/article_details.tpl
+++ b/templates/frontend/objects/article_details.tpl
@@ -35,13 +35,13 @@
 			<h2 class="sr-only">{translate key="plugins.themes.bootstrap3.article.sidebar"}</h2>
 
 			{* Article/Issue cover image *}
-			{if $article->getCoverImage() || $issue->getCoverImage()}
+			{if $article->getLocalizedCoverImage() || $issue->getLocalizedCoverImage()}
 				<div class="cover-image">
-					{if $article->getCoverImage()}
-						<img class="img-responsive" src="{$publicFilesDir}/{$article->getCoverImage()|escape}"{if $article->getCoverImageAltText()} alt="{$article->getCoverImageAltText()|escape}"{/if}>
+					{if $article->getLocalizedCoverImage()}
+						<img class="img-responsive" src="{$publicFilesDir}/{$article->getLocalizedCoverImage()|escape}"{if $article->getLocalizedCoverImageAltText()} alt="{$article->getLocalizedCoverImageAltText()|escape}"{/if}>
 					{else}
 						<a href="{url page="issue" op="view" path=$issue->getBestIssueId()}">
-							<img class="img-responsive" src="{$publicFilesDir}/{$issue->getCoverImage()|escape}"{if $issue->getCoverImageAltText()} alt="{$issue->getCoverImageAltText()|escape}"{/if}>
+							<img class="img-responsive" src="{$publicFilesDir}/{$issue->getLocalizedCoverImage()|escape}"{if $issue->getLocalizedCoverImageAltText()} alt="{$issue->getLocalizedCoverImageAltText()|escape}"{/if}>
 						</a>
 					{/if}
 				</div>
diff --git a/templates/frontend/objects/article_summary.tpl b/templates/frontend/objects/article_summary.tpl
index 717b175..7ae3fd4 100644
--- a/templates/frontend/objects/article_summary.tpl
+++ b/templates/frontend/objects/article_summary.tpl
@@ -18,10 +18,10 @@
 {/if}
 
 <div class="article-summary media">
-	{if $article->getCoverImage()}
+	{if $article->getLocalizedCoverImage()}
 		<div class="cover media-left">
 			<a href="{url page="article" op="view" path=$articlePath}" class="file">
-				<img class="media-object" src="{$publicFilesDir|escape}/{$article->getCoverImage()|escape}">
+				<img class="media-object" src="{$publicFilesDir|escape}/{$article->getLocalizedCoverImage()|escape}">
 			</a>
 		</div>
 	{/if}
diff --git a/templates/frontend/objects/issue_summary.tpl b/templates/frontend/objects/issue_summary.tpl
index 21de11d..230cb71 100644
--- a/templates/frontend/objects/issue_summary.tpl
+++ b/templates/frontend/objects/issue_summary.tpl
@@ -16,10 +16,10 @@
 	{assign var=issueSeries value=$issue->getIssueSeries()}
 
 	{* Show cover image and use cover description *}
-	{if $issue->getCoverImage()}
+	{if $issue->getLocalizedCoverImage()}
 		<div class="media-left">
 			<a class="cover" href="{url op="view" path=$issue->getBestIssueId($currentJournal)}">
-				<img class="media-object" src="{$coverImagePath|escape}{$issue->getCoverImage()}">
+				<img class="media-object" src="{$coverImagePath|escape}{$issue->getLocalizedCoverImage()}">
 			</a>
 		</div>
 	{/if}
diff --git a/templates/frontend/objects/issue_toc.tpl b/templates/frontend/objects/issue_toc.tpl
index a0652c6..3362a5e 100644
--- a/templates/frontend/objects/issue_toc.tpl
+++ b/templates/frontend/objects/issue_toc.tpl
@@ -25,11 +25,11 @@
 	<div class="heading">
 
 		{* Issue cover image and description*}
-		{assign var=issueCover value=$issue->getCoverImage()}
+		{assign var=issueCover value=$issue->getLocalizedCoverImage()}
 		{if $issueCover}
 			<div class="thumbnail">
 				<a class="cover" href="{url op="view" page="issue" path=$issue->getBestIssueId()}">
-					<img class="img-responsive" src="{$coverImagePath|escape}{$issueCover|escape}"{if $issue->getCoverImageAltText() != ''} alt="{$issue->getCoverImageAltText()|escape}"{/if}>
+					<img class="img-responsive" src="{$coverImagePath|escape}{$issueCover|escape}"{if $issue->getLocalizedCoverImageAltText() != ''} alt="{$issue->getLocalizedCoverImageAltText()|escape}"{/if}>
 				</a>
 				{if $issue->hasDescription()}
 					<div class="description">

Hi @vebaev,

I’ve released an update to the Bootstrap3 theme which includes compatibility with OJS 3.0.1. It should fix the issues you’re having.