• Hi Team,

    While using the [playlist ids="1234"] it shows the following errors.

    Notice: Undefined index: file in /var/www/web/wp-includes/media.php on line 1723

    I have checked by passing the images attribute value false but it seems not working. Need your help on this.

    Please note that I am using the self hosted mp3 file.

    Thanks in advance

    • This topic was modified 6 months, 2 weeks ago by tristup.
    • This topic was modified 6 months, 2 weeks ago by tristup.
Viewing 7 replies - 1 through 7 (of 7 total)
  • I cannot reproduce the message in my case. I have specified an mp3 file as the file. There is neither an output from this nor any warning.

    Which file did you select?
    Which WordPress version are you using?
    Have you deactivated all plugins as a test?

    Thread Starter tristup

    (@tristup)

    Hi @threadi ,

    I have selected the MP3 file and it is showing correctly in frontend. Currently I am using WordPress version 6.4.2. And there is no option to deactivate the plugins. Can you please enlighten a bit on this.

    Thanks

    You can manage the plugins on the plugin screen, see: https://www.ads-software.com/documentation/article/plugins-screen/

    If you do not have this, you are not the administrator of your project. Then you would have to contact the person who set it up for you.

    Thread Starter tristup

    (@tristup)

    Hi @threadi ,

    I have access to the plugins, but I was trying to test without deactivating any of them. I can back trace root cause of the issue, if I find out the exact file or method is generating the error. Can you please guide me to find out that. If you find the similar issue in past, please refer to that.

    Thanks

    The way would be to exclude components in the exclusion procedure. As mentioned above, this starts with deactivating all plugins.

    It would also make sense to change the theme to a standard theme such as TwentyTwentyFour.

    If the message still appears, you could also try selecting a different file. If the message does not appear with the other file, it is due to the file originally used.

    If that doesn’t help either, you could debug the PHP code, always following the path that WordPress takes to interpret the shortcode. This requires appropriate knowledge of PHP and WordPress. If you don’t have this, find someone who can help you. You can find someone like this here, for example: https://jobs.wordpress.net

    Another tip: you can also use the file with the shortcode in a fresh WordPress installation, just like I did. No plugin, just the standard theme. Only if you also receive the message in this constellation could it be a bug in WordPress.

    Finally, please note: you will only receive a PHP notice. This is not an error, nor is it a warning. It’s just an anomaly that indicates an inaccuracy in the data used at that point. You can also suppress the message via PHP settings if it does not affect the content.

    Thread Starter tristup

    (@tristup)

    Hi @threadi ,

    As you have suggested, I have activated the default theme Twenty Twenty Four and deactivated all the plugins but it shows the same errors. The setups are following:

    1. Theme: Twenty Twenty Four
    2. Plugin: All are deactivated
    3. WordPress version : 6.4.2
    4. PHP version: 7.4.33

    Is it a known issue or some conflict with the above setups, can you please guide me on this.

    Thanks

    threadi

    (@threadi)

    I can’t find a ticket in Core Trac on this topic. So I tried to recreate it myself. I have a constellation like yours, only with PHP 8.0 (since 7.4 no longer exists for me) and with the latest WordPress 6.5.3. I still can’t reproduce the problem.

    So please update your WordPress to the latest version. This may solve the problem. If not, please describe the way you store the shortcode.

    And again as a note: the message is not an error but a hint from PHP.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Playlist showing File Index Notices’ is closed to new replies.