• Resolved alighaffaari

    (@alighaffaari)


    Hi there,

    I get this log message printed at the top of the Plugins page:

    Undefined variable $htaccess_code in ../wp-content/plugins/disable-xml-rpc-api/disable-xml-rpc-api.php:228

    I looked at the line mentioned in the message and found out that when “hotlink fix” is disabled, the variable $htaccess_code is never defined (first defined in the if block, when hotlink fix is enabled). So, concatenating $htaccess_code causes this warning message. I guess something like

    $htaccess_code = '';

    is required before the if block.

    • This topic was modified 2 years, 5 months ago by alighaffaari.
    • This topic was modified 2 years, 5 months ago by alighaffaari.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @alighaffaari

    Hope you are doing well today.

    This issue has been fixed in the last plugin version (Version 2.1.4.3).

    Please check your plugin for updates.

    Regards

    • This reply was modified 2 years, 5 months ago by sehreideas.
    Thread Starter alighaffaari

    (@alighaffaari)

    Hi @sehreideas,

    Thanks for your quick reply and I hope your are also doing well. I am using Version 2.1.4.3 and I get this message when I disable hotlink fix.

    Bests

    Hi @alighaffaari

    A new version has been released you can update the plugin to fix the issue.
    I’m closing this thread feel free to open a new one if you have any other issues.

    Regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Undefined variable $htaccess_code’ is closed to new replies.