How To / General

PHP8 error with joomdle wrapper: Undefined constant "STRING"

  • Web Buster UK Ltd
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
2 years 5 days ago - 2 years 5 days 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: 2 years 5 days ago by Web Buster UK Ltd.

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

More
2 years 5 days 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
  • Elite Member
  • Elite Member
More
2 years 4 days 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.