WordPress.org

Ready to get started?Download WordPress

Forums

Post Thumb Revisited
Code Hack to Fix Error (3 posts)

  1. NPSites
    Member
    Posted 3 years ago #

    in your file
    post-thumb-functions.php

    on line 470 comment this line

    // curl_setopt ($handle, CURLOPT_MUTE, TRUE);

    CURLOPT_MUTE is no longer an option and needs to be commented out or it will throw back an error.

    http://wordpress.org/extend/plugins/alakhnors-post-thumb/

  2. hunnicuttz
    Member
    Posted 2 years ago #

    How do you comment it out? Do I just delete this line or do I replace it with something? I'm new to this.

  3. NPSites
    Member
    Posted 2 years ago #

    you put those two hashes // infront of a line in php and it comments it..

    You could also delete it if you want

    Updated versions of this plugin may not have this problem

    Comments in code are a good thing to get useto
    // something here describing this part of the code

    that way you know what modifications you made....

    remember though in php you have to be inside the actual php code.. template files can have a mixture of html and php

    <?php
    // the code below says chicken
    echo "chicken";
    ?>

    <?php
    // saying chicken has been turned off
    //echo "chicken";
    ?>

    the // turns the code into a comment

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic