New OJS 3 Theme on Bootstrap 4

I have the Bootstrap 4 (Oldgregg) theme. In One of the article when I publish while the abstract does not appear, all the texts that appear in the left column (PDF, References, Details) are strike-through text as you can see in following images?.
image

or
image
Where this could come from

Hi @rmosavi

I have no idea. Maybe from custom CSS. Can you send me a link to the problematic article in the private message?

@rmosavi, I see that the page isn’t fully loaded. Do you have an access to the PHP error log? It should contain something regarding this issue, relevant are errors and fatal errors that occur just after you trying access this page.

Thank you I will look at and let you know. Interestingly, this does not happen when I change the theme to other themes such as Health and default.

HI Vitaliy,

I was unable to get the error log as it does not generate any error. I tested with BOOTStrap 3 theme, it still give the same problem. What else should I look for to resolve it?

Dear @Vitaliy
The article pages which have xml galley could not be accessed, e.g. Berpikir kritis siswa ditinjau dari gaya kognitif visualizer dan verbalizer dalam menyelesaikan masalah geometri | Beta: Jurnal Tadris Matematika
Meanwhile, the articles which have only pdf galley can be accessed.

I have just upgraded from 3.1.0.0 to the latest version then use the latest oldGregg. Here is the error log
[28-Oct-2018 12:27:56 UTC] PHP Fatal error: Class 'JATSParser\Body\Document' not found in /home/k2542002/public_html/plugins/themes/oldGregg/OldGreggThemePlugin.inc.php on line 185

Hi @kawahyu

Can you change this line:

to
if (!class_exists('\JATSParser\Body\Document', true)) {
and tell if this solves the problem.

1 Like

Hi @rmosavi

Can you look to or ask someone to look into the PHP logs just after accessing problematic page? It’s hard to say something about the problem without logs.

The reason behind this error is that sometime ago JATS Parser plugin was installed to the system. This plugin has conflicts with the same classes inside Old Gregg theme and I’m trying to avoid them. In you case this check empty($jatsParserSettings) gives false and Old Gregg theme fails to load. This happens if JATS Parser plugin was deleted from the system without prior deactivation.

1 Like

I have a problem accessing an article on OJS 3/old Gregg on the MAC computer while it is accessible on a PC:

doesn’t work on mac but works on pc

https://www.agrimaroc.org/index.php/Actes_IAVH2/article/view/617

https://www.agrimaroc.org/index.php/Actes_IAVH2/article/view/621

works on mac and pc

https://www.agrimaroc.org/index.php/Actes_IAVH2/article/view/655

https://www.agrimaroc.org/index.php/Actes_IAVH2/article/view/618

Thanks for the help

Hi @houara

I’m getting redirects to the search page from those links. Are you sure that those articles are published and have a free access?

Thank you @Vitality,

You are right the articles were not published. Now the articles are visible even when I am not logged in.

I have revised the line with if (!class_exists('\JATSParser\Body\Document', true)) {
but the error remains.

Here is the error log

[09-Feb-2019 05:39:04 UTC] PHP Parse error: syntax error, unexpected ':', expecting ';' or '{' in /home/k2542002/public_html/plugins/themes/oldGregg/jatsParser/src/JATSParser/Body/Document.inc.php on line 36

This is the article page with xml https://jurnalbeta.ac.id/index.php/betaJTM/article/view/109

Hmm, that’s looks like incompatibility with PHP version. As I remember, those declaration types are started to be supported from v 7.1. Can you check what PHP version your OJS instance is using?

The journal uses PHP 5.6. We have tried using PHP 7 but the site went blank at all

OJS is fully compatible with PHP 7+. Did you try to change mysql driver to mysqli in config.inc.php when changing PHP version?

We missed this when changing to php 7+. It works now with php 7.1 and https://jurnalbeta.ac.id/index.php/betaJTM/article/view/109 is normal .

Thanks a lot

1 Like

Dear @Vitaliy
We found one article is not accessible for the article page van Hiele instructional package for vocational school students’ spatial reasoning | Beta: Jurnal Tadris Matematika

Here are the error logs

[22-Feb-2019 04:07:12 UTC] PHP Fatal error: Uncaught TypeError: Return value of JATSParser\Back\Individual::getGivenNames() must be of the type string, null returned in /home/k2542002/public_html/plugins/themes/oldGregg/jatsParser/src/JATSParser/Back/Individual.inc.php:65 Stack trace: #0 /home/k2542002/public_html/cache/t_compile/6267f877acd9b945f8a07db7bb24329a969a952a^%%CC^CCC^CCC19982%%authors.tpl.php(25): JATSParser\Back\Individual->getGivenNames() #1 /home/k2542002/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/Smarty.class.php(1870): include('/home/k2542002/...') #2 /home/k2542002/public_html/lib/pkp/classes/template/PKPTemplateManager.inc.php(406): Smarty->_smarty_include(Array) #3 /home/k2542002/public_html/cache/t_compile/6267f877acd9b945f8a07db7bb24329a969a952a^%%B9^B96^B963E297%%book.tpl.php(9): PKPTemplateManager->_smarty_include(Array) #4 /home/k2542002/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/Smarty.class.php(1870): include('/home/k2542002/...') #5 /home/k2542002/public_html/lib/pkp/classes/template/PKPTemplateManager.inc.php( in /home/k2542002/public_html/plugins/themes/oldGregg/jatsParser/src/JATSParser/Back/Individual.inc.php on line 65

Hi @kawahyu

The error means that one of the authors listed in the references of JATS XML doesn’t have given-names field filled in.

I have checked the xml file properly, the given names for the authors were filled.
I tried the xml in another web https://dryam.website/index.php/jer/article/view/6/5, it works.