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?.
@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.
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?
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
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.
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
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?
[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