Title: curl string error
Last modified: August 20, 2016

---

# curl string error

 *  [markwatson](https://wordpress.org/support/users/markwatson/)
 * (@markwatson)
 * [14 years ago](https://wordpress.org/support/topic/curl-string-error/)
 * Hi
 * I’ve got a site that is quite old now, but happily running an old theme that 
   relies heavily on Post Thumb Revisited. I migrated the site from one server to
   another and now its not working – not displaying (or creating) the thumbs.
 * The error log is showing
 * Warning: curl_setopt() expects parameter 2 to be long, string given in /home/
   sites/mysite.com/public_html/wp-content/plugins/post-thumb/lib/post-thumb-functions.
   php on line 105
 * This is beyond my expertise. Any suggestions as to what this is pointing to. 
   My web hosts suggests that it may be requiring php v5.2, but also says that even
   with that it may well not work as ‘all loopback connections are blocked for security
   reasons’.
 * Any advice on fixing this? (On the basis that I want to fix, and don’t want to
   mess with a previously smooth running theme/plugin combo, albeit an old one, 
   even if other options are now available).
 * Mark

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Rachel Baker](https://wordpress.org/support/users/rachelbaker/)
 * (@rachelbaker)
 * [14 years ago](https://wordpress.org/support/topic/curl-string-error/#post-2757087)
 * Mark,
 * Can you post the code from your /wp-content/plugins/post-thumb/lib/post-thumb-
   functions.php file to Pastebin and submit the link to the file.
 * Also, what version of PHP is your new host running?
 *  Thread Starter [markwatson](https://wordpress.org/support/users/markwatson/)
 * (@markwatson)
 * [14 years ago](https://wordpress.org/support/topic/curl-string-error/#post-2757092)
 * Rachel
 * Thx 🙂
 * The new host has 5.3, and I’ve set it to 5.2 as they have suggested, with no 
   effect.
 * [http://pastebin.com/ecb1Abjj](http://pastebin.com/ecb1Abjj) for the code.
 * TIA
 * Mark
 *  [Rachel Baker](https://wordpress.org/support/users/rachelbaker/)
 * (@rachelbaker)
 * [14 years ago](https://wordpress.org/support/topic/curl-string-error/#post-2757106)
 * Looks like the cURL settings are created via input into the plugin options page.
   I would check that options page, and perhaps re-save the settings.
 * However this plugin is using a loopback, so you might just want to switch to 
   a different plugin.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘curl string error’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [Rachel Baker](https://wordpress.org/support/users/rachelbaker/)
 * Last activity: [14 years ago](https://wordpress.org/support/topic/curl-string-error/#post-2757106)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
