How To / General

PHP8 error with joomdle wrapper: Undefined constant "STRING"

  • Web Buster UK Ltd
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
1 year 5 months ago - 1 year 5 months ago #1 by Web Buster UK Ltd
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.
Last edit: 1 year 5 months ago by Web Buster UK Ltd.

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

More
1 year 5 months ago #2 by Antonio Durán
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.

  • Web Buster UK Ltd
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
1 year 5 months ago #3 by Web Buster UK Ltd
Replied by Web Buster UK Ltd on topic PHP8 error with joomdle wrapper: Undefined constant "STRING"
Thanks, that's fixed it!

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