Error in page dashbord admin

Describe the issue or problem
I have an error in the image below, (If you click the notification button) my PDF file is not working, and I don’t see my articles in issue

What application are you using?
OJS 3.3.0.13

Additional information
I have an error in the dashboard, but the error disappears quickly

Help please :pray: :pray: :pray:

Hi @ILYASS_SABER,

Are you able to access your PHP error logs and report on errors found there? Those error messages usually provide more clues as to what the issue occurring is.

-Roger
PKP Team

Hi @rcgillis
thanks for your reply

image

Hello @rcgillis
can you help me please :pray:

Did you configure the allowed_hosts variable in config.inc.php ? See e.g. Server host www.domain.com not allowed!

Hello @mpbraendle @rcgillis
I have another error
see bellow error_log

[17-Sep-2023 17:18:03 UTC] PHP Fatal error: Uncaught RuntimeException: Unexpected data in output buffer. Maybe you have characters before an opening <?php tag? in /home/u879676513/domains/uovl.uk/public_html/journal/lib/pkp/lib/vendor/slim/slim/Slim/App.php:621
Stack trace:
#0 /home/u879676513/domains/uovl.uk/public_html/journal/lib/pkp/lib/vendor/slim/slim/Slim/App.php(317): Slim\App->finalize(Object(APIResponse))
#1 /home/u879676513/domains/uovl.uk/public_html/journal/lib/pkp/classes/core/APIRouter.inc.php(115): Slim\App->run()
#2 /home/u879676513/domains/uovl.uk/public_html/journal/lib/pkp/classes/core/Dispatcher.inc.php(144): APIRouter->route(Object(Request))
#3 /home/u879676513/domains/uovl.uk/public_html/journal/lib/pkp/classes/core/PKPApplication.inc.php(362): Dispatcher->dispatch(Object(Request))
#4 /home/u879676513/domains/uovl.uk/public_html/journal/index.php(68): PKPApplication->execute()
#5 {main}
thrown in /home/u879676513/domains/uovl.uk/public_html/journal/lib/pkp/lib/vendor/slim/slim/Slim/App.php on line 621
[17-Sep-2023 17:24:00 UTC] ojs2: 404 Not Found

Hello

@mpbraendle @rcgillis
Can you help me please ?

Is the problem with an upgrade?
@rcgillis @mpbraendle

Hi @ILYASS_SABER,

I’m not sure… did you try what was suggested around configuring the allowed_hosts? If so, what was the result?

-Roger
PKP Team

Hello @rcgillis yes i add my doamin and my subdomain in allowed_hosts

But I get this other error repeated several times :point_down: :point_down: :point_down:

[20-Sep-2023 22:02:55 UTC] PHP Fatal error:  Uncaught RuntimeException: Unexpected data in output buffer. Maybe you have characters before an opening <?php tag? in /home/u879676513/domains/uovl.uk/public_html/journal/lib/pkp/lib/vendor/slim/slim/Slim/App.php:621
Stack trace:
#0 /home/u879676513/domains/uovl.uk/public_html/journal/lib/pkp/lib/vendor/slim/slim/Slim/App.php(317): Slim\App->finalize(Object(APIResponse))
#1 /home/u879676513/domains/uovl.uk/public_html/journal/lib/pkp/classes/core/APIRouter.inc.php(115): Slim\App->run()
#2 /home/u879676513/domains/uovl.uk/public_html/journal/lib/pkp/classes/core/Dispatcher.inc.php(144): APIRouter->route(Object(Request))
#3 /home/u879676513/domains/uovl.uk/public_html/journal/lib/pkp/classes/core/PKPApplication.inc.php(362): Dispatcher->dispatch(Object(Request))
#4 /home/u879676513/domains/uovl.uk/public_html/journal/index.php(68): PKPApplication->execute()
#5 {main}
  thrown in /home/u879676513/domains/uovl.uk/public_html/journal/lib/pkp/lib/vendor/slim/slim/Slim/App.php on line 621

Hi @ILYASS_SABER,

If you’re able to reproduce this error with a specific request, look at the page output and see what is displayed. Do you have any modifications or plugins that generate output where it shouldn’t be? Is it possible that you’ve introduced whitespace accidentally to the start of a .php script?

Regards,
Alec Smecher
Public Knowledge Project Team

Hello @asmecher @rcgillis
No, I did not add any php code

About error after login, it appears and disappears so quickly that I cannot see its contents

Also pdf doesn’t work
https://journal.uovl.uk/index.php/jsra/article/view/6/4

Stack trace:
#0 /home/u879676513/domains/uovl.uk/public_html/journal/lib/pkp/lib/vendor/slim/slim/Slim/App.php(317): Slim\App->finalize(Object(APIResponse))
#1 /home/u879676513/domains/uovl.uk/public_html/journal/lib/pkp/classes/core/APIRouter.inc.php(115): Slim\App->run()
#2 /home/u879676513/domains/uovl.uk/public_html/journal/lib/pkp/classes/core/Dispatcher.inc.php(144): APIRouter->route(Object(Request))
#3 /home/u879676513/domains/uovl.uk/public_html/journal/lib/pkp/classes/core/PKPApplication.inc.php(362): Dispatcher->dispatch(Object(Request))
#4 /home/u879676513/domains/uovl.uk/public_html/journal/index.php(68): PKPApplication->execute()
#5 {main}
  thrown in /home/u879676513/domains/uovl.uk/public_html/journal/lib/pkp/lib/vendor/slim/slim/Slim/App.php on line 621
[23-Sep-2023 22:04:52 UTC] PHP Notice:  Undefined index: certification in /home/u879676513/domains/uovl.uk/public_html/journal/lib/pkp/classes/plugins/PluginGalleryDAO.inc.php on line 194
[23-Sep-2023 22:04:52 UTC] PHP Notice:  Undefined index: certification in /home/u879676513/domains/uovl.uk/public_html/journal/lib/pkp/classes/plugins/PluginGalleryDAO.inc.php on line 194
[23-Sep-2023 22:04:52 UTC] PHP Notice:  Undefined index: certification in /home/u879676513/domains/uovl.uk/public_html/journal/lib/pkp/classes/plugins/PluginGalleryDAO.inc.php on line 194
[23-Sep-2023 22:04:52 UTC] PHP Notice:  Undefined index: certification in /home/u879676513/domains/uovl.uk/public_html/journal/lib/pkp/classes/plugins/PluginGalleryDAO.inc.php on line 194
[23-Sep-2023 22:04:52 UTC] PHP Notice:  Undefined index: certification in /home/u879676513/domains/uovl.uk/public_html/journal/lib/pkp/classes/plugins/PluginGalleryDAO.inc.php on line 194
[23-Sep-2023 22:05:08 UTC] PHP Warning:  Declaration of AddThisSettingsForm::fetch($request) should be compatible with Form::fetch($request, $template = NULL, $display = false) in /home/u879676513/domains/uovl.uk/public_html/journal/plugins/generic/addThis/AddThisSettingsForm.inc.php on line 100

@asmecher @mpbraendle @rcgillis
can you help me please

Hi @ILYASS_SABER,

You’ve got spaces appearing before the PDF code starts in the PDF file, which causes the file to seem corrupted. Along with the error message above, I think this means that something has added whitespace to the top of a .php script.

Here’s a StackOverflow thread about the problem and some ideas for how to resolve it:
https://stackoverflow.com/questions/12415675/find-whitespace-injecting-php-files

OJS source code does not come with these, so someone or something must’ve added them on your server. You’ll have to find and remove those spaces.

Regards,
Alec Smecher
Public Knowledge Project Team

This topic was automatically closed after 11 days. New replies are no longer allowed.