pkp / sword

Allow Journal Managers and (optionally) Authors to deposit articles via the SWORD protocol
GNU General Public License v3.0
1 stars 9 forks source link

Isuue on publishing an article #24

Closed ghost closed 4 years ago

ghost commented 4 years ago

Hi,

On publishing an article, the article is published successfully, however; an error,

An unexpected error occurred. You may have been logged out. Please reload the page and try again.

is shown!

asmecher commented 4 years ago

@ahmedgad-it, is this related to the SWORD plugin?

ghost commented 4 years ago

Yes, on disabling SWORD plugin, everything is working OK. I've noticed this issue from the error log, and it is SWORD-related.

asmecher commented 4 years ago

@ahmedgad-it, what do you see in the error log?

ghost commented 4 years ago

@ahmedgad-it, what do you see in the error log?

[Sun May 17 11:11:50.544910 2020] [php7:warn] [pid 6180:tid 1984] [client 192.168.14.1:49492] PHP Warning: require_once(D:\xampp\htdocs\journals\plugins\generic\sword\classes/../libs/swordappv2/swordappclient.php): failed to open stream: No such file or directory in D:\xampp\htdocs\journals\plugins\generic\sword\classes\PKPSwordDeposit.inc.php on line 16, referer:

[Sun May 17 11:11:50.544910 2020] [php7:error] [pid 6180:tid 1984] [client 192.168.14.1:49492] PHP Fatal error: require_once(): Failed opening required 'D:\xampp\htdocs\journals\plugins\generic\sword\classes/../libs/swordappv2/swordappclient.php' (include_path='D:\xampp\php\PEAR') in D:\xampp\htdocs\journals\plugins\generic\sword\classes\PKPSwordDeposit.inc.php on line 16, referer:

asmecher commented 4 years ago

@ahmedgad-it, how did you install the plugin?

ghost commented 4 years ago

@ahmedgad-it, how did you install the plugin?

Manually by copy & paste plugin folder to the plugins directory, then running the upgrade script.

asmecher commented 4 years ago

@ahmedgad-it, the plugin will be missing its dependencies if you install it that way. I'd suggest installing it using the Plugin Gallery, or failing that, use the plugin upload tool and give it a .tar.gz package from the git repository's "Releases" area.

ghost commented 4 years ago

Oh, sorry, I really do not remember, but if it exists in the Plugin Gallery, so i have installed it from within there.

asmecher commented 4 years ago

@ahmedgad-it, does the file D:\xampp\htdocs\journals\plugins\generic\sword\libs\swordappv2\swordappclient.php exist?

ghost commented 4 years ago

@ahmedgad-it, does the file D:\xampp\htdocs\journals\plugins\generic\sword\libs\swordappv2\swordappclient.php exist?

No, it does not exist.

asmecher commented 4 years ago

@ahmedgad-it, then I don't think the plugin was installed using the plugin gallery.