• 19-07-2025, 16:44:50
    #1
    merhabalar

    2025-07-19 13:30:07 - PHP Notice: Undefined offset: 3 in /home/-/public_html/storage/modification/catalog/controller/startup/startup.php on line 57
    2025-07-19 13:30:07 - PHP Notice: Undefined offset: 2 in /home/-/public_html/storage/modification/catalog/controller/startup/startup.php on line 57
    2025-07-19 13:30:07 - PHP Notice: Undefined offset: 1 in /home/-/public_html/storage/modification/catalog/controller/startup/startup.php on line 57
    2025-07-19 13:30:07 - PHP Notice: A non well formed numeric value encountered in /home/-/public_html/storage/modification/catalog/controller/startup/startup.php on line 57

    opencart sitemde bu hatayı almaktayım. Yardımcı olabilecek arkadaş varmı?
  • 19-07-2025, 16:47:40
    #2
    ugur_krky adlı üyeden alıntı: mesajı görüntüle
    merhabalar

    2025-07-19 13:30:07 - PHP Notice: Undefined offset: 3 in /home/-/public_html/storage/modification/catalog/controller/startup/startup.php on line 57
    2025-07-19 13:30:07 - PHP Notice: Undefined offset: 2 in /home/-/public_html/storage/modification/catalog/controller/startup/startup.php on line 57
    2025-07-19 13:30:07 - PHP Notice: Undefined offset: 1 in /home/-/public_html/storage/modification/catalog/controller/startup/startup.php on line 57
    2025-07-19 13:30:07 - PHP Notice: A non well formed numeric value encountered in /home/-/public_html/storage/modification/catalog/controller/startup/startup.php on line 57

    opencart sitemde bu hatayı almaktayım. Yardımcı olabilecek arkadaş varmı?
    startup.php 57 satır aralığındaki kodu paylaşabilirmisin
  • 19-07-2025, 16:49:09
    #3
    umdbkr adlı üyeden alıntı: mesajı görüntüle
    startup.php 57 satır aralığındaki kodu paylaşabilirmisin
    $ips=($ips[3] + $ips[2] * 256 + $ips[1] * 256 * 256 + $ips[0] * 256 * 256 * 256);

    tamamınıda yazabilirim
  • 19-07-2025, 16:51:21
    #4
    ugur_krky adlı üyeden alıntı: mesajı görüntüle
    $ips=($ips[3] + $ips[2] * 256 + $ips[1] * 256 * 256 + $ips[0] * 256 * 256 * 256);

    tamamınıda yazabilirim
    aralığında ki kod bloğunu paylaşın ki diğer kodlarıda görelim
  • 19-07-2025, 16:54:01
    #5
    ugur_krky adlı üyeden alıntı: mesajı görüntüle
    $ips=($ips[3] + $ips[2] * 256 + $ips[1] * 256 * 256 + $ips[0] * 256 * 256 * 256);

    tamamınıda yazabilirim

    // Url
    $this->registry->set('url', new Url($this->config->get('config_url'), $this->config->get('config_ssl')));

    // Journal Theme Modification
    if (isset($this->session->data['user_id']) && $this->session->data['user_id'] && isset($this->request->get['j3dt']) && $this->request->get['j3dt']) {
    if (version_compare(VERSION, '3', '>=')) {
    $this->config->set('config_theme', 'default');
    $this->config->set('theme_default_status', 1);
    } else {
    $this->config->set('config_theme', 'theme_default');
    $this->config->set('theme_default_status', 1);
    }
    }

    if (empty($this->session->data['language'])) {
    $ip_address = $this->request->server['REMOTE_ADDR'];

    $ips = explode(".", $ip_address);

    $ips=($ips[3] + $ips[2] * 256 + $ips[1] * 256 * 256 + $ips[0] * 256 * 256 * 256);
    $this->load->model('extension/startup');
    $country_info=$this->model_extension_startup->getCountrycode($ips);
    if(!empty($country_info)){

    if(empty($this->session->data['shipping_address']['country_id']))
    {
    $this->session->data['shipping_address']['country_id']=$country_info['country_id'];
    $this->session->data['payment_address']['country_id']=$country_info['country_id'];
    $this->session->data['shipping_address']['zone_id']=0;
    $this->session->data['payment_address']['zone_id']=0;


    }
    $data['autodetect_values'] = $this->config->get('autodetect_value');
    //print_r($data['autodetect_values']);
    $autodetect_value = array();

    foreach ($data['autodetect_values'] as $result) {
    $currency_info=$this->model_extension_startup->getcurrencycode($result['currency_id']);

    $language_info=$this->model_extension_startup->getlanguagecode($result['language_id']);

    $languagecode=$language_info['code'];
    $currencycode=$currency_info['code'];


    $data['autodetect_value'][$result['country_id']] = array(
    'languagecode' =>$languagecode,
    'currencycode' =>$currencycode
    );
    }

    if(isset($data['autodetect_value'][$country_info['country_id']]))
    {

    $this->session->data['language']= $data['autodetect_value'][$country_info['country_id']]['languagecode'];
    $this->session->data['currency']= $data['autodetect_value'][$country_info['country_id']]['currencycode'];
    }
    else{
    $currency_info=$this->model_extension_startup->getcurrencycode( $this->config->get('autodetect_currency_id'));
    $language_info=$this->model_extension_startup->getlanguagecode( $this->config->get('autodetect_language_id'));
    $this->session->data['language']= $language_info['code'];
    $this->session->data['currency']= $currency_info['code'];

    }
    }
    }

    // End Journal Theme Modification
  • 19-07-2025, 16:54:33
    #6
    ugur_krky adlı üyeden alıntı: mesajı görüntüle
    merhabalar

    2025-07-19 13:30:07 - PHP Notice: Undefined offset: 3 in /home/-/public_html/storage/modification/catalog/controller/startup/startup.php on line 57
    2025-07-19 13:30:07 - PHP Notice: Undefined offset: 2 in /home/-/public_html/storage/modification/catalog/controller/startup/startup.php on line 57
    2025-07-19 13:30:07 - PHP Notice: Undefined offset: 1 in /home/-/public_html/storage/modification/catalog/controller/startup/startup.php on line 57
    2025-07-19 13:30:07 - PHP Notice: A non well formed numeric value encountered in /home/-/public_html/storage/modification/catalog/controller/startup/startup.php on line 57

    opencart sitemde bu hatayı almaktayım. Yardımcı olabilecek arkadaş varmı?
    Selamlar, profildeki WhatsApp numaramız üzerinden iletişime geçerseniz, yardımcı olalım sizlere.
  • 19-07-2025, 17:01:42
    #7
    // Url
    $this->registry->set('url', new Url($this->config->get('config_url'), $this->config->get('config_ssl')));
    
    // Journal Theme Modification
    if (isset($this->session->data['user_id']) && $this->session->data['user_id'] && isset($this->request->get['j3dt']) && $this->request->get['j3dt']) {
        if (version_compare(VERSION, '3', '>=')) {
            $this->config->set('config_theme', 'default');
            $this->config->set('theme_default_status', 1);
        } else {
            $this->config->set('config_theme', 'theme_default');
            $this->config->set('theme_default_status', 1);
        }
    }
    
    if (empty($this->session->data['language'])) {
        $ip_address = $this->request->server['REMOTE_ADDR'];
    
        if (filter_var($ip_address, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4)) {
            $ips = explode(".", $ip_address);
    
            if (count($ips) === 4) {          
                $ip_numeric = ($ips[3] + $ips[2] * 256 + $ips[1] * 256 * 256 + $ips[0] * 256 * 256 * 256);
    
                $this->load->model('extension/startup');
                $country_info = $this->model_extension_startup->getCountrycode($ip_numeric);
    
                if (!empty($country_info)) {
                    if (empty($this->session->data['shipping_address']['country_id'])) {
                        $this->session->data['shipping_address']['country_id'] = $country_info['country_id'];
                        $this->session->data['payment_address']['country_id'] = $country_info['country_id'];
                        $this->session->data['shipping_address']['zone_id'] = 0;
                        $this->session->data['payment_address']['zone_id'] = 0;
                    }
    
                    $data['autodetect_values'] = $this->config->get('autodetect_value');
                    $autodetect_value = array();
    
                    if (!empty($data['autodetect_values'])) {
                        foreach ($data['autodetect_values'] as $result) {
                            $currency_info = $this->model_extension_startup->getcurrencycode($result['currency_id']);
                            $language_info = $this->model_extension_startup->getlanguagecode($result['language_id']);
    
                            if (!empty($currency_info) && !empty($language_info)) {
                                $data['autodetect_value'][$result['country_id']] = array(
                                    'languagecode' => $language_info['code'],
                                    'currencycode' => $currency_info['code']
                                );
                            }
                        }
                    }
    
                    if (isset($data['autodetect_value'][$country_info['country_id']])) {
                        $this->session->data['language'] = $data['autodetect_value'][$country_info['country_id']]['languagecode'];
                        $this->session->data['currency'] = $data['autodetect_value'][$country_info['country_id']]['currencycode'];
                    } else {
                        $currency_info = $this->model_extension_startup->getcurrencycode($this->config->get('autodetect_currency_id'));
                        $language_info = $this->model_extension_startup->getlanguagecode($this->config->get('autodetect_language_id'));
    
                        if (!empty($currency_info) && !empty($language_info)) {
                            $this->session->data['language'] = $language_info['code'];
                            $this->session->data['currency'] = $currency_info['code'];
                        }
                    }
                }
            }
        }
    }
    // End Journal Theme Modification
    yedek alıp deneyebilirmisiniz
  • 19-07-2025, 17:08:03
    #8
    umdbkr adlı üyeden alıntı: mesajı görüntüle
    // Url
    $this->registry->set('url', new Url($this->config->get('config_url'), $this->config->get('config_ssl')));
    
    // Journal Theme Modification
    if (isset($this->session->data['user_id']) && $this->session->data['user_id'] && isset($this->request->get['j3dt']) && $this->request->get['j3dt']) {
        if (version_compare(VERSION, '3', '>=')) {
            $this->config->set('config_theme', 'default');
            $this->config->set('theme_default_status', 1);
        } else {
            $this->config->set('config_theme', 'theme_default');
            $this->config->set('theme_default_status', 1);
        }
    }
    
    if (empty($this->session->data['language'])) {
        $ip_address = $this->request->server['REMOTE_ADDR'];
    
        if (filter_var($ip_address, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4)) {
            $ips = explode(".", $ip_address);
    
            if (count($ips) === 4) {          
                $ip_numeric = ($ips[3] + $ips[2] * 256 + $ips[1] * 256 * 256 + $ips[0] * 256 * 256 * 256);
    
                $this->load->model('extension/startup');
                $country_info = $this->model_extension_startup->getCountrycode($ip_numeric);
    
                if (!empty($country_info)) {
                    if (empty($this->session->data['shipping_address']['country_id'])) {
                        $this->session->data['shipping_address']['country_id'] = $country_info['country_id'];
                        $this->session->data['payment_address']['country_id'] = $country_info['country_id'];
                        $this->session->data['shipping_address']['zone_id'] = 0;
                        $this->session->data['payment_address']['zone_id'] = 0;
                    }
    
                    $data['autodetect_values'] = $this->config->get('autodetect_value');
                    $autodetect_value = array();
    
                    if (!empty($data['autodetect_values'])) {
                        foreach ($data['autodetect_values'] as $result) {
                            $currency_info = $this->model_extension_startup->getcurrencycode($result['currency_id']);
                            $language_info = $this->model_extension_startup->getlanguagecode($result['language_id']);
    
                            if (!empty($currency_info) && !empty($language_info)) {
                                $data['autodetect_value'][$result['country_id']] = array(
                                    'languagecode' => $language_info['code'],
                                    'currencycode' => $currency_info['code']
                                );
                            }
                        }
                    }
    
                    if (isset($data['autodetect_value'][$country_info['country_id']])) {
                        $this->session->data['language'] = $data['autodetect_value'][$country_info['country_id']]['languagecode'];
                        $this->session->data['currency'] = $data['autodetect_value'][$country_info['country_id']]['currencycode'];
                    } else {
                        $currency_info = $this->model_extension_startup->getcurrencycode($this->config->get('autodetect_currency_id'));
                        $language_info = $this->model_extension_startup->getlanguagecode($this->config->get('autodetect_language_id'));
    
                        if (!empty($currency_info) && !empty($language_info)) {
                            $this->session->data['language'] = $language_info['code'];
                            $this->session->data['currency'] = $currency_info['code'];
                        }
                    }
                }
            }
        }
    }
    // End Journal Theme Modification
    yedek alıp deneyebilirmisiniz


    http error 500 verdi maalesef
  • 19-07-2025, 17:13:12
    #9
    // Url
    $this->registry->set('url', new Url($this->config->get('config_url'), $this->config->get('config_ssl')));
    
    // Journal Theme Modification
    if (
        isset($this->session->data['user_id']) && $this->session->data['user_id'] &&
        isset($this->request->get['j3dt']) && $this->request->get['j3dt']
    ) {
        if (version_compare(VERSION, '3', '>=')) {
            $this->config->set('config_theme', 'default');
            $this->config->set('theme_default_status', 1);
        } else {
            $this->config->set('config_theme', 'theme_default');
            $this->config->set('theme_default_status', 1);
        }
    }
    
    if (empty($this->session->data['language'])) {
        $ip_address = $this->request->server['REMOTE_ADDR'];
    
        if (filter_var($ip_address, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4)) {
            $ips = explode('.', $ip_address);
    
            if (count($ips) === 4) {
                $ip_numeric = ($ips[3] + $ips[2] * 256 + $ips[1] * 256 * 256 + $ips[0] * 256 * 256 * 256);
    
                $this->load->model('extension/startup');
                $country_info = $this->model_extension_startup->getCountrycode($ip_numeric);
    
                if (!empty($country_info)) {
                    if (empty($this->session->data['shipping_address']['country_id'])) {
                        $this->session->data['shipping_address']['country_id'] = $country_info['country_id'];
                        $this->session->data['payment_address']['country_id'] = $country_info['country_id'];
                        $this->session->data['shipping_address']['zone_id'] = 0;
                        $this->session->data['payment_address']['zone_id'] = 0;
                    }
    
                    $autodetect_values = $this->config->get('autodetect_value');
                    $autodetect_value = array();
    
                    if (is_array($autodetect_values)) {
                        foreach ($autodetect_values as $result) {
                            $currency_info = $this->model_extension_startup->getcurrencycode($result['currency_id']);
                            $language_info = $this->model_extension_startup->getlanguagecode($result['language_id']);
    
                            if (!empty($currency_info) && !empty($language_info)) {
                                $autodetect_value[$result['country_id']] = array(
                                    'languagecode' => $language_info['code'],
                                    'currencycode' => $currency_info['code']
                                );
                            }
                        }
                    }
    
                    if (isset($autodetect_value[$country_info['country_id']])) {
                        $this->session->data['language'] = $autodetect_value[$country_info['country_id']]['languagecode'];
                        $this->session->data['currency'] = $autodetect_value[$country_info['country_id']]['currencycode'];
                    } else 
                    {            
                        $currency_info = $this->model_extension_startup->getcurrencycode($this->config->get('autodetect_currency_id'));
                        $language_info = $this->model_extension_startup->getlanguagecode($this->config->get('autodetect_language_id'));
    
                        if (!empty($currency_info) && !empty($language_info)) {
                            $this->session->data['language'] = $language_info['code'];
                            $this->session->data['currency'] = $currency_info['code'];
                        }
                    }
                }
            }
        }
    }
    // End Journal Theme Modification
    bunu denermisiniz.