× How To / General

PHP8 error with joomdle wrapper: Undefined constant "STRING"

10 months 3 weeks ago 10 months 3 weeks ago by Web Buster UK Ltd.
Web Buster UK Ltd
Posts: 137
More
Topic Author
PHP8 error with joomdle wrapper: Undefined constant "STRING" #1
Hi Antonio. We are in the process of upgrading to PHP8, and noticed this error when using Joomdle's Moodle wrapper:

Undefined constant "STRING"


Most likely there's missing quotes to encapsulate STRING somewhere in the code.

Please Log in or Create an account to join the conversation.

10 months 3 weeks ago
Antonio Durán
Posts: 7815
More
PHP8 error with joomdle wrapper: Undefined constant "STRING" #2
Good catch. As you say, I found the string STRING without the quotes at components/com_joomdle/views/wrapper/view.html.php, line 118.
You can add the quotes yourself while I release a new version.

Thanks for the bug report!

Please Log in or Create an account to join the conversation.

10 months 3 weeks ago
Web Buster UK Ltd
Posts: 137
More
Topic Author
PHP8 error with joomdle wrapper: Undefined constant "STRING" #3
Thanks, that's fixed it!

Please Log in or Create an account to join the conversation.