WordPress.org

Ready to get started?Download WordPress

Forums

wordpress error in local server (1 post)

  1. mdkabir
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic