Opencart Türkiye Destek Sitesi ,E-Ticaret Yazılımı Destek Paylaşım Forumu

Tam Görünüm: Facebook Connect Bağlantı Hatası!!!
Şu Anda Arşiv Görüntüleme Modundasınız. Siteyi normal görüntülemek için, Buraya Tıklayın
Arkadaşlar bu problemle karşılaşan varmı ?

Notice: Undefined index: email in /home/xxxxxxx/domains/xxxxxxx.com/public_html/catalog/controller/account/fbjsconnect.php on line 38Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxxxx/domains/xxxxxxx.com/public_html/index.php:100) in /home/xxxxxxx/domains/xxxxxxx.com/public_html/system/engine/controller.php on line 28Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxxxx/domains/xxxxxxx.com/public_html/index.php:100) in /home/xxxxxxx/domains/xxxxxxx.com/public_html/system/engine/controller.php on line 29

aynı prıblemle karşılaşıp çözen varsa lütfen yazsın kolay gelsin iyi çalışmalar.
şeklinde düzenledim böyle dene bakalım.

PHP Kod:
<?php 
class ControllerAccountfbjsconnect extends Controller {
    private 
$error = array();
          
      public function 
index() {

        if (
$this->customer->isLogged()) {
              
$this->redirect($this->url->link('account/account''''SSL'));
            }

        
$this->language->load('module/fbjsconnect');

        if(!isset(
$this->fbjsconnect)){            
            require_once(
DIR_SYSTEM 'vendor/facebook-sdk/facebook.php');

            
$this->fbjsconnect = new Facebook(array(
                
'appId'  => $this->config->get('fbjsconnect_apikey'),
                
'secret' => $this->config->get('fbjsconnect_apisecret'),
            ));
        }

        
$_SERVER_CLEANED $_SERVER;
        
$_SERVER $this->clean_decode($_SERVER);

        
$fbuser $this->fbjsconnect->getUser();
        
$fbuser_profile null;
        if (
$fbuser){
            try {
                
$fbuser_profile $this->fbjsconnect->api("/$fbuser");
            } catch (
FacebookApiException $e) {
                
error_log($e);
                
$fbuser null;
            }
        }

        
$_SERVER $_SERVER_CLEANED;
    
        if(
$fbuser_profile['id'] && $fbuser_profile['email']){
            
$this->load->model('account/customer');

            
$email $fbuser_profile['email'];
            
$password $this->get_password($fbuser_profile['id']);

            if(
$this->customer->login($email$password)){
                
$this->redirect($this->url->link('common/home')); 
            }

            
$email_query $this->db->query("SELECT `email` FROM " DB_PREFIX "customer WHERE LOWER(email) = '" $this->db->escape(strtolower($email)) . "'");

            if(
$email_query->num_rows){
                
$this->model_account_customer->editPassword($email$password);
                
                if(
$this->customer->login($email$password)){
                    
$this->redirect($this->url->link('account/account''''SSL')); 
                }
            }
            else{
                
$config_customer_approval $this->config->get('config_customer_approval');
                
$this->config->set('config_customer_approval',0);

                
$this->request->post['email'] = $email;
            
                
$add_data=array();
                
$add_data['email'] = $fbuser_profile['email'];
                
$add_data['password'] = $password;
                
$add_data['firstname'] = isset($fbuser_profile['first_name']) ? $fbuser_profile['first_name'] : '';
                
$add_data['lastname'] = isset($fbuser_profile['last_name']) ? $fbuser_profile['last_name'] : '';
                
$add_data['fax'] = '';
                
$add_data['telephone'] = '';
                
$add_data['company'] = '';
                
$add_data['address_1'] = '';
                
$add_data['address_2'] = '';
                
$add_data['city'] = '';
                
$add_data['postcode'] = '';
                
$add_data['country_id'] = 215;
                
$add_data['zone_id'] = 0;
                
$add_data['company_id'] = '';
                
$add_data['tax_id'] = '';
                
$this->model_account_customer->addCustomer($add_data);
                
$this->config->set('config_customer_approval',$config_customer_approval);

                if(
$this->customer->login($email$password)){
                    unset(
$this->session->data['guest']);
                    
$this->redirect($this->url->link('common/home'));
                }
            }

        }

        
$this->redirect($this->url->link('account/account''''SSL'));

    }

    private function 
get_password($str) {
        
$password $this->config->get('fbjsconnect_pwdsecret') ? $this->config->get('fbjsconnect_pwdsecret') : 'fb';
        
$password.=substr($this->config->get('fbjsconnect_apisecret'),0,3).substr($str,0,3).substr($this->config->get('fbjsconnect_apisecret'),-3).substr($str,-3);
        return 
strtolower($password);
    }

    private function 
clean_decode($data) {
            if (
is_array($data)) {
              foreach (
$data as $key => $value) {
                unset(
$data[$key]);
                
$data[$this->clean_decode($key)] = $this->clean_decode($value);
              }
        } else { 
              
$data htmlspecialchars_decode($dataENT_COMPAT);
        }

        return 
$data;
    }
    
}
?>
index.php yi aç <?php den sonra ob start kodu ekle
Referans Adresler