pkp / bootstrap3

A community-built theme for OJS 3 that implements Bootstrap 3 components.
GNU General Public License v3.0
53 stars 98 forks source link

Archive blank page #83

Closed kctadmin closed 6 years ago

kctadmin commented 6 years ago

Hi, I am using ojs 3.1.1.0 in localhost xampp v3.2.2, when i click Archive in my website it directed to a blank page.

this is the error shown in error log

PHP Fatal error: Uncaught Error: Call to a member function getPageCount() on array in C:\xampp\htdocs\ojs\cache\t_compile\b1833e07cde48b95bfa6dfe66d9ad2430979a526^%%6B^6B5^6B5271FB%%issueArchive.tpl.php:6\nStack trace:\n#0 C:\xampp\htdocs\ojs\lib\pkp\lib\vendor\smarty\smarty\libs\Smarty.class.php(1257): include()\n#1 C:\xampp\htdocs\ojs\lib\pkp\classes\template\PKPTemplateManager.inc.php(797): Smarty->fetch('frontend/pages/...', NULL, 'b1833e07cde48b9...', true)\n#2 C:\xampp\htdocs\ojs\lib\pkp\lib\vendor\smarty\smarty\libs\Smarty.class.php(1107): PKPTemplateManager->fetch('frontend/pages/...', NULL, 'b1833e07cde48b9...', true)\n#3 C:\xampp\htdocs\ojs\lib\pkp\classes\template\PKPTemplateManager.inc.php(872): Smarty->display('frontend/pages/...', NULL, NULL)\n#4 C:\xampp\htdocs\ojs\pages\issue\IssueHandler.inc.php(152): PKPTemplateManager->display('frontend/pages/...')\n#5 C:\xampp\htdocs\ojs\lib\pkp\classes\core\PKPRouter.inc.php(372): IssueHandler->archive(Array, Object(Request))\n#6 C:\xampp\htdocs\ojs\lib\pkp\classes\core\PKPPageRo in C:\xampp\htdocs\ojs\cache\t_compile\b1833e07cde48b95bfa6dfe66d9ad2430979a526^%%6B^6B5^6B5271FB%%issueArchive.tpl.php on line 6, referer: http://localhost/OJS/index.php/art/index

Please help to solve this problem

NateWr commented 6 years ago

Hi, it sounds like you don't have the latest version of the Bootstrap3 theme. You can get the latest release here:

https://github.com/NateWr/bootstrap3/releases

And you can see which versions of the theme are compatible with which versions of OJS 3 here:

https://github.com/NateWr/bootstrap3#version-compatibility

kctadmin commented 6 years ago

Hi, Thanks for your reply i will check and reply you

kctadmin commented 6 years ago

Hi, Just now i noticed that Archive is not working when using child theme. but it is working fine in bootstrap3. Please give some suggestion.

<?php

/**

class kctChildThemePlugin extends ThemePlugin { /**

?>

this is my child theme

NateWr commented 6 years ago

If you have a template file in your child theme, at /templates/frontend/pages/issueArchive.tpl, you'll need to update that to match the pagination pattern in the Bootstrap 3 theme.

kctadmin commented 6 years ago

Can you please guide me to match pagination pattern ?

NateWr commented 6 years ago

https://github.com/NateWr/bootstrap3/blob/master/templates/frontend/pages/issueArchive.tpl#L43-L59

kctadmin commented 6 years ago

hi, Problem Solved. Thank you very much.