-
Notifications
You must be signed in to change notification settings - Fork 461
[Website Settings] added "Highlights" entries throw Uncaught TypeError in Highlight.php #11286
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
Hi @krga, thanks for the report - I was able to reproduce this by creating a highlight but leaving the "button label" field empty. |
Hi @bozana, can you review the small PRs above? I did the PR to 3.4 as well although the highlights functionality doesn't seem fully complete there (e.g. missing the database tables needed by default) and is behind a feature flag in the config file. |
#11286 make urlText field required for highlights
#11286 make urlText field required for highlights
Hi @kaitlinnewson, could you also provide the submodule updates for stable-3_4_0? |
Hi @bozana, apologies for missing those, they are now added to the list above, thanks! |
#11286 make urlText field required for highlights
Thanks a lot @kaitlinnewson! |
Valid Title
Description
When adding two "Highlights" entries in Website Settings of default theme will lead to a thrown Uncaught TypeError in
lib/pkp/classes/highlight/Highlight.php:150
and empty (white) journal start page.Steps to Reproduce
Expected Result
Journal start page should be loaded without issues, Highlights should be shown.
Actual Result
Journal start page is rendered empty. An Uncaught TypeError is thrown and shown in the www-error.log
Environment Details
Application Version
OJS 3.5 RC 2
Logs
Additional Information
No response
Pull Requests
pkp-lib
submodule updates
The text was updated successfully, but these errors were encountered: