[OJS 3.1] Payments tab keep on loading infinitely and Cant buy PDF (Page isn't working error)

The payments Tab keeps on loading infinitely
image

and in case you want to buy anything (Pdf for example), it shows page isn’t working
image

Hi @varshilmehta,

Check your PHP error log for details on both.

Is this an upgrade from an OJS 2.x install that previously contained payments?

Regards,
Alec Smecher
Public Knowledge Project Team

No, it is from 3.0.2 upgrade

> <script type="text/javascript">$.pkp = $.pkp || {};$.pkp.app = {"currentLocale":"en_US","primaryLocale":"en_US","baseUrl":"https:\/\/jmri.org.in","contextPath":"jmri","apiBasePath":"\/api\/v1","pathInfoEnabled":true,"accessRoles":{"manager":16,"siteAdmin":1,"author":65536,"reviewer":4096,"assistant":4097,"reader":1048576,"subeditor":17}};$.pkp.cons = {"REALLY_BIG_NUMBER":10000,"UPLOAD_MAX_FILESIZE":"256M","WORKFLOW_STAGE_ID_PUBLISHED":0,"WORKFLOW_STAGE_ID_SUBMISSION":1,"WORKFLOW_STAGE_ID_INTERNAL_REVIEW":2,"WORKFLOW_STAGE_ID_EXTERNAL_REVIEW":3,"WORKFLOW_STAGE_ID_EDITING":4,"WORKFLOW_STAGE_ID_PRODUCTION":5,"INSERT_TAG_VARIABLE_TYPE_PLAIN_TEXT":"PLAIN_TEXT","LISTBUILDER_SOURCE_TYPE_TEXT":0,"LISTBUILDER_SOURCE_TYPE_SELECT":1,"LISTBUILDER_OPTGROUP_LABEL":"optGroupLabel","ORDER_CATEGORY_GRID_CATEGORIES_ONLY":1,"ORDER_CATEGORY_GRID_CATEGORIES_ROWS_ONLY":2,"ORDER_CATEGORY_GRID_CATEGORIES_AND_ROWS":3};$.pkp.locale = {"form_dataHasChanged":"The data on this form has changed. Do wish to continue without saving?","common_close":"Close","common_ok":"OK","common_error":"Error","search_noKeywordError":"You must enter at least one search keyword.","api_submissions_unknownError":"An unexpected error has occurred. Please reload the page and try again."};$.pkp.plugins = {};$.pkp.plugins.tinymceplugin = {"tinymceParams":"[];"};$.pkp.currentUser = {"id":1,"accessRoles":[1,16,16,16,17,65536,4096,1048576],"csrfToken":"a34986957574bd450123959c6f38defa"}</script><script src="https://jmri.org.in/lib/pkp/js/lib/jquery/plugins/validate/jquery.validate.min.js" type="text/javascript"></script><script src="https://jmri.org.in/lib/pkp/lib/vendor/moxiecode/plupload/js/plupload.full.min.js" type="text/javascript"></script><script src="https://jmri.org.in/lib/pkp/lib/vendor/moxiecode/plupload/js/jquery.ui.plupload/jquery.ui.plupload.js" type="text/javascript"></script><script src="https://jmri.org.in/lib/pkp/lib/vendor/moxiecode/plupload/js/i18n/en.js" type="text/javascript"></script><script src="https://jmri.org.in/lib/pkp/lib/vendor/alex198710/pnotify/assets/js/pnotify.custom.min.js" type="text/javascript"></script><script src="https://jmri.org.in/js/pkp.min.js" type="text/javascript"></script><script src="https://jmri.org.in/lib/pkp/lib/vendor/tinymce/tinymce/tinymce.min.js" type="text/javascript"></script><script src="https://jmri.org.in/js/build.js" type="text/javascript"></script>

subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://sxt.cdn.skype.com/assets/fonts/SkypeAssets-Regular.woff
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://sxt.cdn.skype.com/assets/fonts/SkypeAssets-Regular.ttf
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://sxt.cdn.skype.com/assets/fonts/SkypeAssets-Light.woff
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://sxt.cdn.skype.com/assets/fonts/SkypeAssets-Light.ttf
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/notosans/v7/ByLA_FLEa-16SpQuTcQn4DTOQ_MqJVwkKsUn0wKzc2I.woff2
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/notosans/v7/ByLA_FLEa-16SpQuTcQn4DUj_cnvWIuuBMVgbX098Mw.woff2
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/notosans/v7/ByLA_FLEa-16SpQuTcQn4Jd-YqeGZiJEdX0sEGp0JvE.woff2
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/notosans/v7/ByLA_FLEa-16SpQuTcQn4EbcKLIaa1LC45dFaAfauRA.woff2
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/notosans/v7/ByLA_FLEa-16SpQuTcQn4Go_sUJ8uO4YLWRInS22T3Y.woff2
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/notosans/v7/ByLA_FLEa-16SpQuTcQn4L6up8jxqWt8HVA3mDhkV_0.woff2
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/notosans/v7/ByLA_FLEa-16SpQuTcQn4CYE0-AqJ3nfInTTiDXDjU4.woff2
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/notosans/v7/9Z3uUWMRR7crzm1TjRicDp6iIh_FvlUHQwED9Yt5Kbw.woff2
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/notosans/v7/9Z3uUWMRR7crzm1TjRicDi_vZmeiCMnoWNN9rHBYaTc.woff2
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/notosans/v7/9Z3uUWMRR7crzm1TjRicDpRg-9ZTZj4Oi-6CEThT2Do.woff2
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/notosans/v7/9Z3uUWMRR7crzm1TjRicDiFaMxiho_5XQnyRZzQsrZs.woff2
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/notosans/v7/9Z3uUWMRR7crzm1TjRicDgalQocB-__pDVGhF3uS2Ks.woff2
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/notosans/v7/9Z3uUWMRR7crzm1TjRicDmhQUTDJGru-0vvUpABgH8I.woff2
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/notosans/v7/9Z3uUWMRR7crzm1TjRicDujkDdvhIIFj_YMdgqpnSB0.woff2
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/notosans/v7/9Z3uUWMRR7crzm1TjRicDolIZu-HDpmDIZMigmsroc4.woff2
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/notosans/v7/C7bP6N8yXZ-PGLzbFLtQKRJtnKITppOI_IvcXXDNrsc.woff2
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/notosans/v7/iLJc6PpCnnbQjYc1Jq4v0xJtnKITppOI_IvcXXDNrsc.woff2
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/notosans/v7/5pCv5Yz4eMu9gmvX8nNhfRJtnKITppOI_IvcXXDNrsc.woff2
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/notosans/v7/gEkd0pn-sMtQ_P4HUpi6WBJtnKITppOI_IvcXXDNrsc.woff2
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/notosans/v7/iPF-u8L1qkTPHaKjvXERnxJtnKITppOI_IvcXXDNrsc.woff2
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/notosans/v7/mTzVK0-EJOCaJiOPeaz-hxJtnKITppOI_IvcXXDNrsc.woff2
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/notosans/v7/erE3KsIWUumgD1j_Ca-V-xJtnKITppOI_IvcXXDNrsc.woff2
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/notosans/v7/PIbvSEyHEdL91QLOQRnZ16-j2U0lmluP9RWlSytm3ho.woff2
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/notosans/v7/PIbvSEyHEdL91QLOQRnZ15X5f-9o1vgP2EXwfjgl7AY.woff2
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/notosans/v7/PIbvSEyHEdL91QLOQRnZ10Tj6bCwSDA5u__Fbjwz3f0.woff2
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/notosans/v7/PIbvSEyHEdL91QLOQRnZ1xWV49_lSm1NYrwo-zkhivY.woff2
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/notosans/v7/PIbvSEyHEdL91QLOQRnZ16aRobkAwv3vxw3jMhVENGA.woff2
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/notosans/v7/PIbvSEyHEdL91QLOQRnZ1_8zf_FOSsgRmwsS7Aa9k2w.woff2
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/notosans/v7/PIbvSEyHEdL91QLOQRnZ1z0LW-43aMEzIO6XUTLjad8.woff2
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/fonts/fontawesome-webfont.woff?v=4.7.0
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/fonts/fontawesome-webfont.ttf?v=4.7.0
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://sxt.cdn.skype.com/assets/fonts/SkypeAssets-Regular.woff
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://sxt.cdn.skype.com/assets/fonts/SkypeAssets-Regular.ttf
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://sxt.cdn.skype.com/assets/fonts/SkypeAssets-Light.woff
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://sxt.cdn.skype.com/assets/fonts/SkypeAssets-Light.ttf
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/notosans/v7/ByLA_FLEa-16SpQuTcQn4DTOQ_MqJVwkKsUn0wKzc2I.woff2
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/notosans/v7/ByLA_FLEa-16SpQuTcQn4DUj_cnvWIuuBMVgbX098Mw.woff2
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/notosans/v7/ByLA_FLEa-16SpQuTcQn4Jd-YqeGZiJEdX0sEGp0JvE.woff2
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/notosans/v7/ByLA_FLEa-16SpQuTcQn4EbcKLIaa1LC45dFaAfauRA.woff2
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/notosans/v7/ByLA_FLEa-16SpQuTcQn4Go_sUJ8uO4YLWRInS22T3Y.woff2
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/notosans/v7/ByLA_FLEa-16SpQuTcQn4L6up8jxqWt8HVA3mDhkV_0.woff2
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/notosans/v7/ByLA_FLEa-16SpQuTcQn4CYE0-AqJ3nfInTTiDXDjU4.woff2
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/notosans/v7/9Z3uUWMRR7crzm1TjRicDp6iIh_FvlUHQwED9Yt5Kbw.woff2
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/notosans/v7/9Z3uUWMRR7crzm1TjRicDi_vZmeiCMnoWNN9rHBYaTc.woff2
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/notosans/v7/9Z3uUWMRR7crzm1TjRicDpRg-9ZTZj4Oi-6CEThT2Do.woff2
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/notosans/v7/9Z3uUWMRR7crzm1TjRicDiFaMxiho_5XQnyRZzQsrZs.woff2
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/notosans/v7/9Z3uUWMRR7crzm1TjRicDgalQocB-__pDVGhF3uS2Ks.woff2
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/notosans/v7/9Z3uUWMRR7crzm1TjRicDmhQUTDJGru-0vvUpABgH8I.woff2
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/notosans/v7/9Z3uUWMRR7crzm1TjRicDujkDdvhIIFj_YMdgqpnSB0.woff2
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/notosans/v7/9Z3uUWMRR7crzm1TjRicDolIZu-HDpmDIZMigmsroc4.woff2
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/notosans/v7/C7bP6N8yXZ-PGLzbFLtQKRJtnKITppOI_IvcXXDNrsc.woff2
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/notosans/v7/iLJc6PpCnnbQjYc1Jq4v0xJtnKITppOI_IvcXXDNrsc.woff2
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/notosans/v7/5pCv5Yz4eMu9gmvX8nNhfRJtnKITppOI_IvcXXDNrsc.woff2
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/notosans/v7/gEkd0pn-sMtQ_P4HUpi6WBJtnKITppOI_IvcXXDNrsc.woff2
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/notosans/v7/iPF-u8L1qkTPHaKjvXERnxJtnKITppOI_IvcXXDNrsc.woff2
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/notosans/v7/mTzVK0-EJOCaJiOPeaz-hxJtnKITppOI_IvcXXDNrsc.woff2
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/notosans/v7/erE3KsIWUumgD1j_Ca-V-xJtnKITppOI_IvcXXDNrsc.woff2
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/notosans/v7/PIbvSEyHEdL91QLOQRnZ16-j2U0lmluP9RWlSytm3ho.woff2
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/notosans/v7/PIbvSEyHEdL91QLOQRnZ15X5f-9o1vgP2EXwfjgl7AY.woff2
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/notosans/v7/PIbvSEyHEdL91QLOQRnZ10Tj6bCwSDA5u__Fbjwz3f0.woff2
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/notosans/v7/PIbvSEyHEdL91QLOQRnZ1xWV49_lSm1NYrwo-zkhivY.woff2
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/notosans/v7/PIbvSEyHEdL91QLOQRnZ16aRobkAwv3vxw3jMhVENGA.woff2
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/notosans/v7/PIbvSEyHEdL91QLOQRnZ1_8zf_FOSsgRmwsS7Aa9k2w.woff2
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/notosans/v7/PIbvSEyHEdL91QLOQRnZ1z0LW-43aMEzIO6XUTLjad8.woff2
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/fonts/fontawesome-webfont.woff?v=4.7.0
subscriptions:1 Slow network is detected. Fallback font will be used while loading: https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/fonts/fontawesome-webfont.ttf?v=4.7.0

Take this pdf for an example. https://jmri.org.in/jmri/article/view/e000097/115

Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Hi @varshilmehta,

That looks like your browser console, not your PHP error log. Can you check your PHP error log?

Regards,
Alec Smecher
Public Knowledge Project Team

I donot have the php log. I have requested the server guys, but they didnt give. They said that you will be able to see the errors on top of the website, however, I cdnt see it.

This is something what i saw in the console as well.

Uncaught SyntaxError: Unexpected token < in JSON at position 1
at JSON.parse ()
at Function.n.parseJSON (jquery.min.js:4)
at a.pkp.controllers.TabHandler.dataFilter (pkp.min.js:211)
at Object.dataFilter (pkp.min.js:124)
at Qc (jquery.min.js:4)
at x (jquery.min.js:4)
at XMLHttpRequest.b (jquery.min.js:4)
subscriptions:2 Uncaught SyntaxError: Unexpected token < in JSON at position 1
at JSON.parse ()
at Function.n.parseJSON (jquery.min.js:4)
at a.pkp.controllers.TabHandler.dataFilter (pkp.min.js:211)
at Object.dataFilter (pkp.min.js:124)
at Qc (jquery.min.js:4)
at x (jquery.min.js:4)
at XMLHttpRequest.b (jquery.min.js:4)

Any ideas? I am not able to buy also any articles. There is just no option. The page doesnt load after we click on PDF

Hi @varshilmehta,

I’m afraid you’ll need to get access to your PHP error log. It’s extremely unusual for a host to deny access to this, and it’ll be very hard to debug OJS without it.

Regards,
Alec Smecher
Public Knowledge Project Team

I was able to solve it. It was actually due to upgradation error

Hi, varshilmehta.

Could you please give a pointer to how you solved the problem? I am getting this error from the system, trying to “buy” an article, and registering a new user at the same time:

PHP Fatal error: Interface ‘Symfony\Component\EventDispatcher\EventSubscriberInterface’ not found in /var/www/vhosts/my_domain/httpdocs/plugins/paymethod/paypal/vendor/guzzle/guzzle/src/Guzzle/Http/RedirectPlugin.php on line 20, referer: http://my_domain/index.php/EI/user/register?source=%2Findex.php%2FEI%2Farticle%2Fview%2F16%2F14

And a 500 on the frontpage.

Thank you in advance.

I was not able to solve the buying error. I meant here was that my payment
tab wasnt loading, but i upgraded once more and it started working. In my
journal, once you click the pdf, it would show 500 error dorectly.

Hi @Jos_38,

Did you install from git, or from the OJS 3.1 release .tar.gz file?

Regards,
Alec Smecher
Public Knowledge Project Team

Hi asmecher.

The tar.gz

Regards

Hi @Jos_38,

This appears to be the same issue as Guzzle Interface 'Symfony\Component\EventDispatcher\EventSubscriberInterface' not found · Issue #61 · guzzle/guzzle3 · GitHub. Could you try adding the suggested dependency to plugins/paymethod/paypal/composer.json then running composer install in plugins/paymethod/paypal to install the dependency?

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher,

Yes that took care of the 500 issue :ok_hand:

I got this output that may be, or maybe not, a concern?

Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.
Package operations: 1 install, 0 updates, 0 removals
Installing symfony/event-dispatcher (v2.8.28): Downloading (100%)
symfony/event-dispatcher suggests installing symfony/dependency-injection ()
symfony/event-dispatcher suggests installing symfony/http-kernel ()
Package guzzle/guzzle is abandoned, you should avoid using it. Use guzzlehttp/guzzle instead.
Generating autoload files

And when I try to create a payment via PayPal I get an error:
A transaction error occurred. Please contact the journal manager for details.

And that is I who are JM :slight_smile: So I did that already.

Regards
John

Hi @Jos_38,

Thanks for confirming – I’ve added the dependency at Paypal plugin has undeclared dependency · Issue #2996 · pkp/pkp-lib · GitHub.

The issue you’re seeing now is probably a “cannot authenticate” type message. Make sure your PayPal plugin’s settings are accurate.

Regards,
Alec Smecher
Public Knowledge Project Team

1 Like

I install from the OJS 3.1.0 release .tar.gz file.
CentOS 7.4
OJS 3.1.0
PHP 7.1
I am a beginner of centos. Can you check if my server has a running environment for the PayPal plugin?
Thank you very much for your support.

image
image

I am also not a developer. Please ask the concern people in the group. I have no idea about all of these. Even my paypal plugin isnt working.