Username and dropdown do not show (invisible) after login

Hi all!
I am guessing that I still have problems from my upgrade.
Ojs version: 3.1.2.1
Postgresql 11
Os: CentOS 7

When I click on Login on first page and login and I click on “View site” I come to the index page.
When I get there there is no Login link up in the right corner, there is nothing, it is just blue as the background.
I assume that there should be my username displayed and when I click on that a dropdown menu should show, right?

I get the following php warning over and over again in my apache log:

[php7:warn] [pid 17398] [client 216.244.66.241:41016] PHP Warning: Declaration of SubmissionKeywordEntryDAO::getByControlledVocabId($controlledVocabId, $rangeInfo = NULL) should be compatible with ControlledVocabEntryDAO::getByControlledVocabId($controlledVocabId, $rangeInfo = NULL, $filter = NULL) in /var/www/html/ojs/lib/pkp/classes/submission/SubmissionKeywordEntryDAO.inc.php on line 20

In my postgresql log I get the following error, over and over again:

2019-11-24 20:36:56.884 CET [8621] ERROR: duplicate key value violates unique constraint “controlled_vocab_symbolic”
2019-11-24 20:36:56.884 CET [8621] DETAIL: Key (symbolic, assoc_type, assoc_id)=(submissionKeyword, 1048585, 1313) already exists.
2019-11-24 20:36:56.884 CET [8621] STATEMENT: INSERT INTO controlled_vocabs
(symbolic, assoc_type, assoc_id)
VALUES
( $1, $2, $3)

How can I solve this issue and get the username and dropdown back?

Many thanks in advance!

Best regards
Marcus

Will it be safe if I remove unique constraint on table to see if this works?

Hi @marcus1,

No, it won’t be safe to relax that constraint. I don’t think it’s related to the user login problem, though – are there any other Fatal error messages in your PHP log? Can you post a screenshot of what you’re describing?

Regards,
Alec Smecher
Public Knowledge Project Team

Hi asmecher,
I found this php error:

[php7:error] script ‘/var/www/html/ojs/wp-login.php’ not found or unable to stat

Screeenshot before logged in, Login link is visible up in right corner:

Screenshot after login, there is nothing up in the right corner above search link:

Hi @marcus1,

Is it possible that someone customized some things in the “Navigation Menus” part of Setup? (See Settings > Website > Navigation Menus.)

Regards,
Alec Smecher
Public Knowledge Project Team

Hi asmecher,
Thanks for the hint!
That solved my mystery!
One of my working mates were customizing the menues and apparently cleaned up a bit too much!

Thanks again for your help!

Regards
Marcus

1 Like