Export Failure Native Xml plugin 3.1.1.2

When I tried to export article, articles or issue I received error page>

This page isn’t working
website of journal is currently unable to handle this request.
HTTP ERROR 500

In older OJS this plugin work very well. Is there some problems with this plugin in OJS 3.1.1.2 or I need to do something else.
Thanks…

Hi @Lazar_Stosic,

Check your PHP error log for details.

Regards,
Alec Smecher
Public Knowledge Project Team

In PHP error log found>

[27-Jun-2018 14:25:58 Europe/Belgrade] PHP Fatal error: Call to a member function getAttribute() on null in /home/ijcadsee/public_html/lib/pkp/plugins/importexport/native/filter/SubmissionNativeXmlFilter.inc.php on line 284

and

[Thu Jun 21 10:08:08.680254 2018] [ssl:error] [pid 3772] [client 180.76.15.20:31611] AH02225: Re-negotiation request failed
[Thu Jun 21 10:08:08.680296 2018] [ssl:error] [pid 3772] SSL Library Error: error:14080152:SSL routines:SSL3_ACCEPT:unsafe legacy renegotiation disabled
[Thu Jun 21 12:07:50.183177 2018] [fcgid:warn] [pid 13961] (70007)The timeout specified has expired: [client 62.68.97.69:51730] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function, referer: https://ef.unibl.org/
[Thu Jun 21 12:12:30.759727 2018] [fcgid:warn] [pid 14316] [client 46.229.168.75:17870] mod_fcgid: stderr: ALERT - Unable to open logfile: /tmp/suhosin.log (attacker ‘46.229.168.75’, file ‘/var/www/efbl/htdocs/index.php’)
[Thu Jun 21 12:12:30.759765 2018] [fcgid:warn] [pid 14316] [client 46.229.168.75:17870] mod_fcgid: stderr: ALERT - Unable to open logfile: /tmp/suhosin.log (attacker ‘46.229.168.75’, file ‘/var/www/efbl/htdocs/index.php’)
[Thu Jun 21 12:23:14.689378 2018] [fcgid:warn] [pid 15950] [client 46.229.168.80:61784] mod_fcgid: stderr: ALERT - Unable to open logfile: /tmp/suhosin.log (attacker ‘46.229.168.80’, file ‘/var/www/efbl/htdocs/index.php’)
[Thu Jun 21 12:23:14.689409 2018] [fcgid:warn] [pid 15950] [client 46.229.168.80:61784] mod_fcgid: stderr: ALERT - Unable to open logfile: /tmp/suhosin.log (attacker ‘46.229.168.80’, file ‘/var/www/efbl/htdocs/index.php’)

and lot of errors like

[Wed Jun 20 18:09:46.405712 2018] [negotiation:error] [pid 22748] [client 66.249.70.9:43327] AH00687: Negotiation: discovered file(s) matching request: /var/www/efbl/htdocs/actaeconomica/ae/index (None could be negotiated).

Hi @Lazar_Stosic,

What do you see in line 284 of lib/pkp/plugins/importexport/native/filter/SubmissionNativeXmlFilter.inc.php? I see…

$submissionFileNodesByFileId = array();

…but it seems that yours is different. Have there been any modifications to that code?

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher,

The code was not changed. The installation is new and after publishing first issue I want to made XML files and issue. The code is exactly as you wrote.

image

Any other idea?

Regards,
Lazar

Hi @Lazar_Stosic,

Very strange – the error message refers to a function call that doesn’t exist on the line of code it quotes. Are you sure the message didn’t come from e.g. before you made a change of some kind on your server?

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher,

From some reason Native XML plugin gave me web page with new error:

Validation errors:
Element ‘{http://pkp.sfu.ca}affiliation’, attribute ‘locale’: [facet ‘pattern’] The value ‘sr_RS@latin’ is not accepted by the pattern ‘[a-z][a-z]_[A-Z][A-Z]’.

Element ‘{http://pkp.sfu.ca}affiliation’, attribute ‘locale’: ‘sr_RS@latin’ is not a valid value of the atomic type ‘{http://pkp.sfu.ca}locale’.

Element ‘{http://pkp.sfu.ca}affiliation’, attribute ‘locale’: [facet ‘pattern’] The value ‘sr_RS@latin’ is not accepted by the pattern ‘[a-z][a-z]_[A-Z][A-Z]’.

Element ‘{http://pkp.sfu.ca}affiliation’, attribute ‘locale’: ‘sr_RS@latin’ is not a valid value of the atomic type ‘{http://pkp.sfu.ca}locale’.

Element ‘{http://pkp.sfu.ca}affiliation’, attribute ‘locale’: [facet ‘pattern’] The value ‘sr_RS@latin’ is not accepted by the pattern ‘[a-z][a-z]_[A-Z][A-Z]’.

Element ‘{http://pkp.sfu.ca}affiliation’, attribute ‘locale’: ‘sr_RS@latin’ is not a valid value of the atomic type ‘{http://pkp.sfu.ca}locale’.

Element ‘{http://pkp.sfu.ca}title’, attribute ‘locale’: [facet ‘pattern’] The value ‘sr_RS@latin’ is not accepted by the pattern ‘[a-z][a-z]_[A-Z][A-Z]’.

Element ‘{http://pkp.sfu.ca}title’, attribute ‘locale’: ‘sr_RS@latin’ is not a valid value of the atomic type ‘{http://pkp.sfu.ca}locale’.

Element ‘{http://pkp.sfu.ca}abstract’, attribute ‘locale’: [facet ‘pattern’] The value ‘sr_RS@latin’ is not accepted by the pattern ‘[a-z][a-z]_[A-Z][A-Z]’.

Element ‘{http://pkp.sfu.ca}abstract’, attribute ‘locale’: ‘sr_RS@latin’ is not a valid value of the atomic type ‘{http://pkp.sfu.ca}locale’.

Element ‘{http://pkp.sfu.ca}copyrightHolder’, attribute ‘locale’: [facet ‘pattern’] The value ‘sr_RS@latin’ is not accepted by the pattern ‘[a-z][a-z]_[A-Z][A-Z]’.

Element ‘{http://pkp.sfu.ca}copyrightHolder’, attribute ‘locale’: ‘sr_RS@latin’ is not a valid value of the atomic type ‘{http://pkp.sfu.ca}locale’.

Element ‘{http://pkp.sfu.ca}submission_file’: This element is not expected. Expected is one of ( {http://pkp.sfu.ca}keywords, {http://pkp.sfu.ca}agencies, {http://pkp.sfu.ca}disciplines, {http://pkp.sfu.ca}subjects, {http://pkp.sfu.ca}authors ).

Invalid XML:

<?xml version="1.0"?>

Is above errors because second language is different from English? Till yesterday I received an empty web page and now receive this error. In meantime, I wait answer from your side and didn`t do nothing.

Regards,
Lazar

Hi @Lazar_Stosic,

See Allow extended locale names in import/export XML · Issue #3873 · pkp/pkp-lib · GitHub – I’ll post a patch to resolve this in a moment. It’ll need to be applied in the lib/pkp subdirectory.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher,
As always, you are right. The problem was solved and now everything work well.
Thanks.
Lazar