-
Notifications
You must be signed in to change notification settings - Fork 459
Plugin with "verb=settings" gives "Failed Ajax request or invalid JSON returned" #8064
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@marlara, the clue was the error log entry you posted in the forum:
You can resolve it by applying this change to the text editor plugin: pkp/textEditorExtras@46b8a7a Similar errors may exist in other plugins but they'll need to be resolved separately; please file them as additional issues. |
Unfortunately even with the change it gives the Ajax error. I have this errors now:
(with the Custom header plugin I got no errors in the log, but same Ajax problem) |
@marlara, none of those files are part of OJS, so I'm not sure where those messages are coming from. Are you sure there's nothing else relevant appearing in the error log? |
Unfortunately I am quite sure there is nothing relevant. This error has
been here for days and I checked everyday actually, but nothing appears.
The problem I think is with the call to the json? It is completely blank. I
tried to understand if there were some permission problems, but it doesn't
seem the case
Il gio 7 lug 2022, 16:57 Alec Smecher ***@***.***> ha scritto:
… @marlara <https://github.com/marlara>, none of those files are part of
OJS, so I'm not sure where those messages are coming from. Are you sure
there's nothing else relevant appearing in the error log?
—
Reply to this email directly, view it on GitHub
<#8064 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADB5O76ZRF6PXBPHJVMIQUTVS3V3XANCNFSM52TQ72ZQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@marlara, can you check your browser's web development tools to see what response the server is giving when it attempts to make the request to the |
It's a 500 Internal server error |
Hi @marlara -- that should definitely correspond to a more specific message somewhere in your server logs. If not your PHP error log, then perhaps your Apache (or equivalent) log; these are sometimes kept separately. |
Yes, in fact I cannot explain the missing logs. I checked the apache logs
and there is nothing. The php logs seems to be in the same apache log
file... I cannot figure out. I will check more, but I really checked
everywhere
Il ven 8 lug 2022, 16:52 Alec Smecher ***@***.***> ha scritto:
… Hi @marlara <https://github.com/marlara> -- that should definitely
correspond to a more specific message somewhere in your server logs. If not
your PHP error log, then perhaps your Apache (or equivalent) log; these are
sometimes kept separately.
—
Reply to this email directly, view it on GitHub
<#8064 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADB5O73J7L3R7FEAHCUHN73VTA6C7ANCNFSM52TQ72ZQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@asmecher I just only get these errors, which I don't really understand where they are coming from
In the access.log I get this line refering to the "Custom header plugin" (I am testing with that because I got the same errors)
So it's a 200 there |
So, I finally managed to get the PHP errors logging in. This is for the TextEditor extra:
For the Custom Header I will open another ticket |
Thanks, @marlara, that helps! Applying this change will correct that error message: pkp/textEditorExtras@528fea3 |
Going near: now I got 200 but the settings aren't appearing [Tue Jul 12 09:07:03.020650 2022] [php:notice] [pid 2442466] [client 85.206.38.111:48205] ojs2: 400 Bad Request Which I don't think is something related to that, but anyway. |
@marlara, hmm, it's fixed over here; is there either a Javascript (browser console log) error, or a warning in the PHP error log? Could you take a look at the JSON response for the request to the settings page? |
Describe the bug
Installing plugings that calls for an API with "verb=settings" gives no possibilities to configure it, see also: https://forum.pkp.sfu.ca/t/error-when-configuring-texteditor-extras-3-3-0-11/73666
To Reproduce
Steps to reproduce the behavior:
What application are you using?
OJS 3.3.0.11
Additional information
PHP version: 8.1 (but it appears also with PHP 8.0).
Multi-site installation with custom domains.
The JSON is actually completely empty, that's why there is the invalid JSON returned, but every call without the "verb=settings" works fine.
EDIT: I installed the plugin directly from the Plugin Gallery
The text was updated successfully, but these errors were encountered: