Support » Plugin: Media Library Assistant » Array and string offset access syntax with curly braces is deprecated

  • Resolved Harm10

    (@harm10)


    Hi!

    I got this message in my log: Array and string offset access syntax with curly braces is deprecated.
    It is reported for media-library-assistant/includes/class-mla-data.php line 3985.
    Is this something you need to fix or do I do to change something?

    I upgraded to PHP 7.4 recently.

    • This topic was modified 1 year, 10 months ago by Harm10.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author David Lingren

    (@dglingren)

    Thanks for your report. I had a look at the source code for MLA v2.81 and found a possible match to this message, but on line 3994, not 3985. Can you confirm the MLA version you are using? The problem is harmless, except for the message.

    I will correct the problem I found and release a new Development Version shortly. The fix will also be in the next MLA version I release, but that won’t be until the end of February. I will post an update here when the Development Version goes out.

    Thanks for alerting me to this MLA issue!

    Thread Starter Harm10

    (@harm10)

    I am on 2.81 and have this message twice:
    class-mla-data-query.php on line 555
    class-mla-data.php on line 3985

    Plugin Author David Lingren

    (@dglingren)

    Thanks for confirming the details of your version and messages. I have corrected both of the curly brace occurrences you reported.

    I have uploaded a new MLA Development Version dated 20200210 that includes the corrected code. You can find step-by-step instructions for using the Development Version in this earlier topic:

    PHP Warning on media upload with Polylang

    It would be great if you can install and test the Development Version, then let me know how it works for your application. Thanks for motivating this MLA fix.

    Thread Starter Harm10

    (@harm10)

    I installed the Development version and the log message has disappeared.
    Thanks for fixing it!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Array and string offset access syntax with curly braces is deprecated’ is closed to new replies.