Support » Plugin: iTunes Affiliate Pro » Creating default object from empty value

Viewing 5 replies - 1 through 5 (of 5 total)
  • Additional info: That warning message was displayed at the beginning of every post that had an iTunes Affiliate link associated with it.

    Reverting back to 1.3 resolved the issue.

    Plugin Author Jorge A. Gonzalez


    Might be an issue with DOMDocument.

    I am on vacation for another week. I will look into the issue when I get home.

    I was getting a similar error, only mine was saying the problem was on line 155.

    Anyway, I went in and changed that line:

    $doc->loadHTML(utf8_decode($text) );

    to the following:

    $decoded_text = utf8_decode($text);
        if ( $decoded_text == '' ) {
            return $doc->saveHTML();

    Which fixed it right up.

    Thanks Jorge, for this great plugin!

    Note that I was also getting some errors about incorrect html, so I changed the loadHTML line once again to the following:

    $dom->strictErrorChecking = false;

    This is in addition to the changes made previously.

    Plugin Author Jorge A. Gonzalez


    Just updated the plugin using your fixes @grind.

    Update plugin to version 1.5


Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Creating default object from empty value’ is closed to new replies.