Boulama Kandine
asked 11 years ago

Hello !

I baught the theme called DW Focus this afternoon. So when i use it with wamp, they show me a PHP error when I go in the posts.

Thats what I see after the post :

Fatal error: Call to undefined function curl_init() in C:\serveur\wamp\www\otimbi\wp-content\themes\dw-focus\functions.php on line 908

 

( ! ) Fatal error: Call to undefined function curl_init() in C:\serveur\wamp\www\otimbi\wp-content\themes\dw-focus\functions.php on line 908

Call Stack

#
Time
Memory
Function
Location

1
0.0009
671136
{main}( )
..\index.php:0

2
0.0032
675984
require( ‘C:\serveur\wamp\www\otimbi\wp-blog-header.php’ )
..\index.php:17

3
0.6047
31516976
require_once( ‘C:\serveur\wamp\www\otimbi\wp-includes\template-loader.php’ )
..\wp-blog-header.php:16

4
0.6076
31539008
include( ‘C:\serveur\wamp\www\otimbi\wp-content\themes\dw-focus\single.php’ )
..\template-loader.php:47

5
0.9062
31842352
get_template_part( )
..\single.php:17

6
0.9063
31843144
locate_template( )
..\general-template.php:128

7
0.9067
31843288
load_template( )
..\template.php:381

8
0.9074
31878304
require( ‘C:\serveur\wamp\www\otimbi\wp-content\themes\dw-focus\content-single.php’ )
..\template.php:407

9
0.9150
31879312
dw_focus_post_actions( )
..\content-single.php:30

10
0.9159
31879616
dw_get_twitter_count( )
..\functions.php:414

11
0.9159
31879776
dw_file_get_content( )
..\functions.php:886

How can you help me ?

Thanks 🙂

1 Answers
DominicStaff
answered 11 years ago

I think that is mistake on your localhost (wamp) which is not yet enable curl. To enable curl on the wamp, please, follow the steps below:

1. Close WAMP (if running)

2. Navigate to WAMP\bin\php\(your version of php)\
3. Edit php.ini
4. Search for curl, uncomment extension=php_curl.dll
5. Navigate to WAMP\bin\Apache\(your version of apache)\bin\
6. Edit php.ini
7. Search for curl, uncomment extension=php_curl.dll
8. Save both
9. Restart WAMP

Hope this helps !
Regards,
Dominic

Powered by DW Question & Answer Pro