OJS-3.4.0-8
PHP-8.3.21
We have successfully migrated our entire application and database to the new server. Most functionalities are working as expected. However, we are encountering an issue while uploading files in the References/ Galleys (or something else) section.
Specifically, the system displays the following message during upload/ update References:
“An unexpected error occurred. Please reload the page and try again.”
Despite the error, the upload seems to proceed normally and does not cause any functional issue — but the error message is misleading and causes confusion for me/ users
during the process.
Please find the attached log extract and screenshot for your reference.
We request you to kindly investigate this and suggest a fix or workaround to suppress the error if no actual failure is occurring.
Looking forward to your support.
Failed to load resource: the /index.php/IJAgS/api/v1/vocabs?vocab=submissionKeyword&locale=en&_=1747222751618:1 server responded with a status of 504 (Gateway Timeout)
Hi @shantanusingh,
Are you able to provide PHP error log messages? Browser console log error messages don’t tend to be as helpful.
-Roger
PKP Team
Hi @rcgillis
I reviewed the access logs at the time the error occurred and found relevant entries during that period.
php-fpm/www-error.log
Skipped indexation: No suitable parser for the submission file "path/../../articleID/fileName.pdf"
ssl_error_log
[proxy_fcgi:error] [pid 67945:tid 68025] (70007)The timeout specified has expired: [client 11.11.11.11:50500] AH01075: Error dispatching request to : (polling), referer: https://URL/index.php/Path/workflow/index/articleID/3
We have enabled the setting mentioned below. Is it useful?
;;;;;;;;;;;;;;;;;;;
; Search Settings ;
;;;;;;;;;;;;;;;;;;;
[search]
; Minimum indexed word length
min_word_length = 3
; The maximum number of search results fetched per keyword. These results
; are fetched and merged to provide results for searches with several keywords.
results_per_keyword = 500
; Paths to helper programs for indexing non-text files.
; Programs are assumed to output the converted text to stdout, and "%s" is
; replaced by the file argument.
; Note that using full paths to the binaries is recommended.
; Uncomment applicable lines to enable (at most one per file type).
; Additional "index[MIME_TYPE]" lines can be added for any mime type to be
; indexed.
; PDF
index[application/pdf] = "/usr/bin/pstotext -enc UTF-8 -nopgbrk %s - | /usr/bin/tr '[:cntrl:]' ' '"
index[application/pdf] = "/usr/bin/pdftotext -enc UTF-8 -nopgbrk %s - | /usr/bin/tr '[:cntrl:]' ' '"
; PostScript
; index[application/postscript] = "/usr/bin/pstotext -enc UTF-8 -nopgbrk %s - | /usr/bin/tr '[:cntrl:]' ' '"
; index[application/postscript] = "/usr/bin/ps2ascii %s | /usr/bin/tr '[:cntrl:]' ' '"
; Microsoft Word
index[application/msword] = "/usr/bin/antiword %s"
index[application/msword] = "/usr/bin/catdoc %s"
Just enable one of the index[application/pdf] settings. Usually the one for pdftotext (for which you have to check if it is installed on your server).
Hi All
After enabling the above setting one error got resolved but one is still reporting as mentioned below.
[proxy_fcgi:error] [pid 67945:tid 68025] (70007)The timeout specified has expired: [client 11.11.11.11:50500] AH01075: Error dispatching request to : (polling), referer: https://URL/index.php/Path/workflow/index/articleID/3