[Bug] Undefined Index issue in send-mail.php

  • Posted in : cvCard WP
  • isaumya
    Participant

    Hi,
    in my site error log, I’m getting a PHP notice on sent-mail.php as Undefined index.

    I thing it is because of line no 77. At line no 23 you mentioned the variable $message and then on line no 77 you are re assigning $message to $body. But you have use 2 extra quotes without any reason at line no 77.

    You did this –
    $body = “$message”;

    It should be –
    $body = $message; //without the quotes

    PHP will automatically does the implicit conversion if needed. I think this is the origin or the error on the error log.

    please fix this on the next update.

    Mehmet S.
    Keymaster

    Hi, there is no problem. They both work.

    Thanks

    isaumya
    Participant

    then what is the reason of the php Notice?

    Mehmet S.
    Keymaster

    don’t know, it is not something that breaks the functionality, it is a notice not an error, you may change the code as you wish if you don’t like it.

    isaumya
    Participant

    ok I’ll try changing the code and see if that remove the notice. If it remove the notice, I will let you know so that you can make the changes in the next update. I know its juusta notice, but still it is gonna populate my error_log which is very annoying.

    Anyways i’ll let u know if that thing fix the issue.

    Mehmet S.
    Keymaster

    Ok. Good luck.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register