SLIM APPLICATION ERROR in ojs 3

How to solve Author can not upload files in OJS 3? always appears the message “SLIM APPLICATION ERROR”
please guidance sir

Hi @Tambun_Sihotang,

Could you check your PHP error log, please? If unsure of how to do that, please see here: How do I find my PHP error log?

-Roger
PKP Team

I have checked the php log error in my cpanel
the result is attached
there is no problem
is there any other way to make the author can submit his article without any “SLIM APPLICATION ERROR”.

Thank you

Thanks for your response @Tambun_Sihotang. Without any error log messages it can be difficult to ascertain the issue. There are several posts where users have encountered this error and managed to resolve them - you may wish to have a look:

That said, this error is not necessarily related to the issues that others may have had with their OJS installs and may be unique to your OJS installation - typically error logs give a better indication of what the issue is, but in your case, it’s difficult to say. Another community member or PKP team member may be able to provide some help if they have an opportunity.

-Roger
PKP Team

Well thank you for your response
I hope that as soon as possible there are other teams that can provide suggestions and solutions

regards

Go to your file manager and go to the public_html folder…

Maybe the error log file is there…

I dont know how the error log is setup on your server.

Just try go to the public_html folder and see if there is a file with the name error log there.

Or inside the log folder there.

You need to find the error log file and view it…

I I found it.
after that what I need to do sir
please help

Thank you

View the file and find the fatal error when it happened.

Paste the full error stack trace here…

I found it and wanted to attach it here, but there are not enough characters, only 32000 words.
while the error log consists of 1723873.
how else can I paste it sir
Thank you.

regards

You should only copy the fatal error… not all… it should said php fatal error and the the stack trace… there ia a number infront of it…

Only the fatal error… not all the log

Refer to this thread…

[09-Jan-2025 21:17:27 Asia/Jakarta] Slim Application Error:
Type: League\Flysystem\UnableToCreateDirectory
Message: Unable to create a directory at /home/user/domain/domain/public_html/ejournal/files/journals/1/articles/20. mkdir(): Permission denied
File: /home/user/domain/domain/public_html/ejournal/lib/pkp/lib/vendor/league/flysystem/src/UnableToCreateDirectory.php
Line: 18
Trace: #0

Find the word error and copy paste the error only

I found it sir
what’s the next step sir

[04-Jan-2025 04:13:35 UTC] Slim Application Error:
Type: Error
Message: Call to a member function getFilePath() on null
File: /home/u1585630/public_html/ejournal/plugins/generic/fileValidator/FileValidatorPlugin.inc.php
Line: 44

Lets wait for the dev @asmecher to response…

all i understand is the error come from the plug in file validator.

Do you use the plug in? If you disable the plugin, does your system work?

I’ve tried it
but still when submitting there is a slim application error statement

Whats the new error? It must be difference if you disable the plug in…


instead it became like this sir