Open pawan001 opened 4 years ago
Are you using 2.1.9 release or the master branch?
We are using master branch
we have also use 2.1.9 release but we got same error
Error log [28-Jul-2020 12:40:08 UTC] PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'APIRouter' does not have a method 'getRequestedPage' in /home/vallerqu/public_html/ojs/lib/pkp/classes/core/PKPRequest.inc.php on line 760 [28-Jul-2020 12:40:08 UTC] Slim Application Error: Type: Error Message: Call to undefined function JATSParser\Body\array_key_last() File: /home/vallerqu/public_html/ojs/plugins/generic/jatsParser/JATSParser/src/JATSParser/Body/Par.php Line: 45 Trace: #0 /home/vallerqu/public_html/ojs/plugins/generic/jatsParser/JATSParser/src/JATSParser/Body/Par.php(16): JATSParser\Body\Par->findExtractRemoveBlockElements(Object(DOMElement), Object(DOMXPath))
View in rendered output by enabling the "displayErrorDetails" setting.
[28-Jul-2020 12:40:09 UTC] PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'APIRouter' does not have a method 'getRequestedPage' in /home/vallerqu/public_html/ojs/lib/pkp/classes/core/PKPRequest.inc.php on line 760 [28-Jul-2020 12:40:09 UTC] Slim Application Error: Type: Error Message: Call to undefined function JATSParser\Body\array_key_last() File: /home/vallerqu/public_html/ojs/plugins/generic/jatsParser/JATSParser/src/JATSParser/Body/Par.php Line: 45 Trace: #0 /home/vallerqu/public_html/ojs/plugins/generic/jatsParser/JATSParser/src/JATSParser/Body/Par.php(16): JATSParser\Body\Par->findExtractRemoveBlockElements(Object(DOMElement), Object(DOMXPath))
View in rendered output by enabling the "displayErrorDetails" setting.
[28-Jul-2020 12:40:10 UTC] PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'APIRouter' does not have a method 'getRequestedPage' in /home/vallerqu/public_html/ojs/lib/pkp/classes/core/PKPRequest.inc.php on line 760 [28-Jul-2020 12:40:10 UTC] Slim Application Error: Type: Error Message: Call to undefined function JATSParser\Body\array_key_last() File: /home/vallerqu/public_html/ojs/plugins/generic/jatsParser/JATSParser/src/JATSParser/Body/Par.php Line: 45 Trace: #0 /home/vallerqu/public_html/ojs/plugins/generic/jatsParser/JATSParser/src/JATSParser/Body/Par.php(16): JATSParser\Body\Par->findExtractRemoveBlockElements(Object(DOMElement), Object(DOMXPath))
View in rendered output by enabling the "displayErrorDetails" setting.
Check if your PHP version is 7.3 or higher
We are using PHP 7.3
That's strange, the error message says that array_key_last() function is missing from your distribution. According to the function description, it was introduced in PHP 7.3. Note that OJS 3.2.1 will work with PHP 7.2.
Can you describe how you determine PHP version that your OJS instance is using?
Than u for help problem have solved by change PHP version
dear we have one more question we want add section latest article in home page can help us we have add this code in latest article but section not appear
{if $article->getSectionTitle()}
{/if}
we are using this code for latest article and article display proper but section not show
{if (!$section.hideAuthor && $article->getHideAuthor() == $smarty.const.AUTHOR_TOC_DEFAULT) || $article->getHideAuthor() == $smarty.const.AUTHOR_TOC_SHOW} {assign var="showAuthor" value=true} {/if} {if $showAuthor || $article->getPages() || ($article->getDatePublished() && $showDatePublished)} {if $showAuthor}
{/if} {/if} {/if}
Dear sir
We have uploaded xml in production stage and now when we save we got error An unexpected error occurred. You may have been logged out.new ojs 3.2.2_1![Screenshot_2020-07-28-11-33-29-592_com android chrome](https://user-images.githubusercontent.com/2894996/88625387-48b2c980-d0c6-11ea-828b-918cefbd77ae.jpg)