Skip to content
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

Error with custom cert pluging #259

Open
EiffelD opened this issue Mar 22, 2023 · 2 comments
Open

Error with custom cert pluging #259

EiffelD opened this issue Mar 22, 2023 · 2 comments

Comments

@EiffelD
Copy link

EiffelD commented Mar 22, 2023

When trying to reposition elements for the custom cert plugin, we noticed the following error:

Error
Exception - htmlspecialchars(): Argument #1 ($string) must be of type string, action_link given

Debug info:
Error code: generalexceptionmessage

Stack trace:

line 100 of /lib/weblib.php: TypeError thrown

line 100 of /lib/weblib.php: call to htmlspecialchars()

line 1713 of /lib/outputcomponents.php: call to s()

line 1727 of /lib/outputcomponents.php: call to html_writer::attribute()

line 1656 of /lib/outputcomponents.php: call to html_writer::attributes()

line 1645 of /lib/outputcomponents.php: call to html_writer::start_tag()

line 1779 of /lib/outputcomponents.php: call to html_writer::tag()

line 2056 of /theme/snap/classes/output/core_renderer.php: call to html_writer::link()

line 53 of /theme/snap/layout/default.php: call to theme_snap\output\core_renderer->snapnavbar()

line 1401 of /lib/outputrenderers.php: call to include()

line 1331 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()

line 138 of /mod/customcert/rearrange.php: call to core_renderer->header()

We changed the theme to another default theme and it worked. Can you advise how to resolve this?

Moodle:3.11.13

@EiffelD
Copy link
Author

EiffelD commented Mar 24, 2023

Changing to a different theme works as expected.

@EiffelD
Copy link
Author

EiffelD commented Apr 20, 2023

We have changed to PHP v7.4 from 8.0 and noticed the problem is no longer occurring. Is there a timeline when the theme will be PHP 8.0 compliant as PHP 7.4 is no longer receiving updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant