Title: Error when activating Facebook plugin
Last modified: August 19, 2016

---

# Error when activating Facebook plugin

 *  [chrischickenwire](https://wordpress.org/support/users/chrischickenwire/)
 * (@chrischickenwire)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/error-when-activating-facebook-plugin/)
 * Hi there,
 * I’m trying to use a plugin that puts a Facebook like button on all posts.
 * When I activate the plugin it comes up with this error:
 * Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot 
   be activated when in safe_mode or an open_basedir is set in /home/rjtonlin/public_html/
   wp/wp-content/plugins/facebook-like-button/inc/get_key.php on line 12
 * Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot 
   be activated when in safe_mode or an open_basedir is set in /home/rjtonlin/public_html/
   wp/wp-content/plugins/facebook-like-button/inc/get_key.php on line 13
 * Any idea why this would be, or how to fix it?

Viewing 1 replies (of 1 total)

 *  [ehudeli](https://wordpress.org/support/users/ehudeli/)
 * (@ehudeli)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/error-when-activating-facebook-plugin/#post-1615832)
 * Replace both troubled lines 12/13 with
 * $ch = curl_init();
    if(!ini_get(‘safe_mode’) && !ini_get(“open_basedir”)) { curl_setopt(
   $ch, CURLOPT_FOLLOWLOCATION, true); }

Viewing 1 replies (of 1 total)

The topic ‘Error when activating Facebook plugin’ is closed to new replies.

## Tags

 * [curl](https://wordpress.org/support/topic-tag/curl/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [ehudeli](https://wordpress.org/support/users/ehudeli/)
 * Last activity: [15 years, 9 months ago](https://wordpress.org/support/topic/error-when-activating-facebook-plugin/#post-1615832)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
