[OJS 3.1.1.4] Paypal black page

#1

Hi everybody,
in my OJS installation when I click on the link in the paypal payment request email to publish an article, it shows me a blank page with this error:

Fatal error: Interface ‘Symfony\Component\EventDispatcher\EventSubscriberInterface’ not found in /var/www/vhosts/pagepress.org/httpdocs/medicine/plugins/paymethod/paypal/vendor/guzzle/guzzle/src/Guzzle/Http/RedirectPlugin.php on line 20

is it possible to correct it?
Thanks for the support.

Bye
Tiziano

0 Likes

#2

Hi @Tiziano

Take a look at this discussion: https://github.com/pkp/pkp-lib/issues/2996
You will need to install dependency:

cd plugins/paymethod/paypal
composer install
0 Likes

#3

Hi @Vitaliy,
I’ve followed the instructions but you’re giving me this message:

-bash: composer: command not found

0 Likes

#4

Composer roughly is an installator for PHP packages. The message means that it’s not installed on the system. You can either install it on the server and than run that command, or manually install the needed package.

0 Likes

#5

Hi @Vitaliy,
why did you know this composer to run the paypal payment?

0 Likes

#6

composer.json tells you what additional packages the plugin requires: https://github.com/pkp/ojs/blob/ojs-stable-3_1_1/plugins/paymethod/paypal/composer.json
they were not included in the OJS installation, so you need to install them.

0 Likes

#8

We went through this problem with an earlier version 3. It recurred again when upgrading to 3.1.1.4 so why was’nt applying the patch included in the upgrade?

0 Likes

OJS 3.1.1.4 does not accept paypal for user purchasing articles
#9

Hi @nickpanes,

There was an exclusion of a necessary library from the .tar.gz build process. I’ve fixed it here, and it’ll be included in the next release. Meanwhile (up to and including OJS 3.1.2) you’ll need to update the composer dependencies yourself.

Regards,
Alec Smecher
Public Knowledge Project Team

0 Likes

#10

Thanks, good to know.

0 Likes