Title: wordpress error in local server
Last modified: August 20, 2016

---

# wordpress error in local server

 *  [Kabir Hossain](https://wordpress.org/support/users/mdkabir/)
 * (@mdkabir)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/wordpress-error-in-local-server/)
 * I download Sunny Blue Sky theme-1.0.9 from WordPress.org
    when i want to access
   the page from local server the browser show a message that “The site’s security
   certificate is not trusted” and also provide 2 options first is Processed anyway,
   second is Back to safety. Then i observe the browser title bar SSl Error. When
   i click Processed any way then my page is viewed. After then I add Secure WordPress
   plugins,then an message is shown top of the header image that is”Warning: file_exists()[
   function.file-exists]: Unable to find the wrapper “https” – did you forget to
   enable it when you configured PHP? in C:\xampp\htdocs\wordpress\wp-content\plugins\
   secure-wordpress\secure-wordpress.php on line 570″ that code is
 *     ```
       /**
                * add index.php to plugin-derectory
                */
               {
        567     public function add_index($path, $enable)
                   $file = trailingslashit($path) . 'index.php';
                   if ($enable) {
        570             if (!file_exists($file)) {
        571                 $fh = @fopen($file, 'w');
                           if ($fh) {fclose($fh);}
                       }
                   }
                   else {
                       if (file_exists($file) && filesize($file) === 0) {
                           @unlink($file);
                       }
                   }
       580      }
   
       After that i block that code such as
               /**
                * add index.php to plugin-derectory
                */
               {
               public function add_index($path, $enable)
                   $file = trailingslashit($path) . 'index.php';
                   if ($enable) {
                       //if (!file_exists($file)) {
                         //  $fh = @fopen($file, 'w');
                       //    if ($fh) {fclose($fh);}
                       //}
                   }
                   else {
                       if (file_exists($file) && filesize($file) === 0) {
                           @unlink($file);
                       }
                   }
               }
       ```
   
 * _[Moderator Note: Please post code or markup snippets between backticks or use
   the code button. As it stands, your posted code may now have been permanently
   damaged/corrupted by the forum’s parser.]_
 * then header message is not shown, but the SSL error and browser message is already
   is shown.
    What problems ? Anybody help me.

The topic ‘wordpress error in local server’ is closed to new replies.

## Tags

 * [plugin error](https://wordpress.org/support/topic-tag/plugin-error/)
 * [ssl error](https://wordpress.org/support/topic-tag/ssl-error/)
 * [WordPress Error](https://wordpress.org/support/topic-tag/wordpress-error/)

 * In: [Localhost Installs](https://wordpress.org/support/forum/localhost-installs/)
 * 0 replies
 * 1 participant
 * Last reply from: [Kabir Hossain](https://wordpress.org/support/users/mdkabir/)
 * Last activity: [13 years, 5 months ago](https://wordpress.org/support/topic/wordpress-error-in-local-server/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
