phpBB Türkiye - phpBB3 Türkçe destek ve geliştirme

İçeriği atla

profesyonel phpBB3 hizmetleri

Sitemiz sadece phpBB 3.0 sürümüne destek vermektedir. Konu açmadan, ileti yazmadan önce lütfen site kuralları sayfamıza göz atınız.

Yönetim Panelinde yeni tema eklerken çıkan hata

Forum kuralları
Lütfen bu bölüm ve alt bölümlerde yardım isterken "yardım isteme şablonu" nu kullanınız.

Yönetim Panelinde yeni tema eklerken çıkan hata

İleti yaso_19 21 Ağu 2007 13:13

phpBB3 sürümü: RC4
Panonun tam adresi: http://www.ogrencilerinsitesi.com/forum
Dil paketini indirdiğiniz adres: burası
Eklentiler / Temalar: tema: Blue Moon
İşletim sistemi, php ve mysql sürümünüz: ne bilem :)

Soru/hata tanımlamaları:
Genel Hata
SQL ERROR [ mysql4 ]

Duplicate entry '0' for key 1 [1062]

SQL

INSERT INTO phpbb_styles_template (template_name, template_copyright, template_path, bbcode_bitfield, template_storedb) VALUES ('Blue Moon', '© phpBB Group, 2003', 'Blue Moon', 'kNg=', 0)

BACKTRACE

FILE: includes/db/mysql.php
LINE: 133
CALL: dbal_mysql->sql_error()

FILE: includes/acp/acp_styles.php
LINE: 3127
CALL: dbal_mysql->sql_query()

FILE: includes/acp/acp_styles.php
LINE: 2964
CALL: acp_styles->install_element()

FILE: includes/acp/acp_styles.php
LINE: 2643
CALL: acp_styles->install_style()

FILE: includes/acp/acp_styles.php
LINE: 135
CALL: acp_styles->install()

FILE: includes/functions_module.php
LINE: 463
CALL: acp_styles->main()

FILE: adm/index.php
LINE: 74
CALL: p_master->load_active()


Soru/hatadan önce ne değişiklik yaptınız:FTP ye temayı attım. Yönetim Paneli - Stillere girdim. Yükle dedim. ayarlar geldi. gönder dedim bu hata geldi. 2-3 defa tekrarladım bu hataya devam. bir fikri olan?
1. anahtar için 0 girişi birden çok yapıldı dmeek istiyor sanırım. birazdan bakıcam bi db ye.


Soru/hatayı gidermek için hangi yollara başvurdunuz, neler yaptınız: birazdan db ye dalıcam :)
yaso_19
kullanıcı
kullanıcı

İleti: 141
Kayıt: 21 Nis 2007 02:40
Konum: İzmir
İsim: Yasin
HTML: İyi
CSS: Orta
PHP: İyi
phpBB3: Orta
Sürüm: PhpBB3 Gold 3.0.2

 

Re: Yönetim Panelinde yeni tema eklerken çıkan hata

İleti ALEXIS 21 Ağu 2007 13:18

phpbb_styles_template 'e phpmyadmin ile baksana anormal bir durum, önceden sildiğin bir temanın artıkları vb. var mı, hazır phpmyadmini açmışken bir de optimize yap tüm veritabanını.
ALEXIS
kullanıcı
kullanıcı

Kullanıcı avatarı

İleti: 2907
Kayıt: 03 Arl 2006 08:57
Konum: İstanbul
İsim: Sevdin Filiz
HTML: Çok iyi
CSS: Çok iyi
PHP: İyi
phpBB3: İyi
Sürüm: phpBB 3.0.3

Re: Yönetim Panelinde yeni tema eklerken çıkan hata

İleti yaso_19 21 Ağu 2007 13:29

Db ye girdim, phpbb nin styles ile ilgili her yerine girdim ve daha önce yüklemeyi denediğim bi temadan geriye kalanların 0 olduğunu gördüm ve sildim.
Daha sonrasında yüklemeye çalıştığımda;



Uyarı

You must select a template, theme and imageset for this style.



Resim

Bu hatayı dün Vista adlı temayı yüklemeye çalışırken de aldım :S
Normalde orda imageset, theme bölümlerinde seçme kutusunun olması gerek değil mi :?
vede veritabanına neden 0 olarak girer temanın id sini, delimidir nedir, prosilver bile 1 olarak girilmiş :S

db yi kontrol ettim, uyarladım, onardım, analiz ettim şimdi de..
yaso_19
kullanıcı
kullanıcı

İleti: 141
Kayıt: 21 Nis 2007 02:40
Konum: İzmir
İsim: Yasin
HTML: İyi
CSS: Orta
PHP: İyi
phpBB3: Orta
Sürüm: PhpBB3 Gold 3.0.2

Re: Yönetim Panelinde yeni tema eklerken çıkan hata

İleti yaso_19 21 Ağu 2007 13:44

He bide,
uyarıyı veriyo ama,
phpbb_styles_imageset
phpbb_styles_template
phpbb_styles_theme
tablolarına bi güzel ekliyo.. aaa hep beni bulur zaten deli midir nedir :evil:


Konudışı: Abi mesaj değiştirme süresi çok kısa yaaa :S boşu boşuna yeni post yazdık şimdi :S
yaso_19
kullanıcı
kullanıcı

İleti: 141
Kayıt: 21 Nis 2007 02:40
Konum: İzmir
İsim: Yasin
HTML: İyi
CSS: Orta
PHP: İyi
phpBB3: Orta
Sürüm: PhpBB3 Gold 3.0.2

Re: Yönetim Panelinde yeni tema eklerken çıkan hata

İleti yaso_19 21 Ağu 2007 14:59

araştırdım biraz; includes/acp/acp_styles.php de bişiler buldum:
Kod: Tümünü seç
/**
   * Install Style/Template/Theme/Imageset
   */
   function install($mode)
   {
      global $phpbb_root_path, $phpEx, $config, $db, $cache, $user, $template;

      $l_type = strtoupper($mode);

      $error = $installcfg = $style_row = array();
      $root_path = $cfg_file = '';
      $element_ary = array('template' => STYLES_TEMPLATE_TABLE, 'theme' => STYLES_THEME_TABLE, 'imageset' => STYLES_IMAGESET_TABLE);

      $install_path = request_var('path', '');
      $update = (isset($_POST['update'])) ? true : false;

      // Installing, obtain cfg file contents
      if ($install_path)
      {
         $root_path = $phpbb_root_path . 'styles/' . $install_path . '/';
         $cfg_file = ($mode == 'style') ? "$root_path$mode.cfg" : "$root_path$mode/$mode.cfg";

         if (!file_exists($cfg_file))
         {
            $error[] = $user->lang[$l_type . '_ERR_NOT_' . $l_type];
         }
         else
         {
            $installcfg = parse_cfg_file($cfg_file);
         }
      }

      // Installing
      if (sizeof($installcfg))
      {
         $name      = $installcfg['name'];
         $copyright   = $installcfg['copyright'];
         $version   = $installcfg['version'];

         $style_row = array(
            $mode . '_id'         => 0,
            $mode . '_name'         => '',
            $mode . '_copyright'   => ''
         );

         switch ($mode)
         {
            case 'style':

               $style_row = array(
                  'style_id'         => 0,
                  'style_name'      => $installcfg['name'],
                  'style_copyright'   => $installcfg['copyright']
               );

               $reqd_template = (isset($installcfg['required_template'])) ? $installcfg['required_template'] : false;
               $reqd_theme = (isset($installcfg['required_theme'])) ? $installcfg['required_theme'] : false;
               $reqd_imageset = (isset($installcfg['required_imageset'])) ? $installcfg['required_imageset'] : false;

               // Check to see if each element is already installed, if it is grab the id
               foreach ($element_ary as $element => $table)
               {
                  $style_row = array_merge($style_row, array(
                     $element . '_id'         => 0,
                     $element . '_name'         => '',
                     $element . '_copyright'      => '')
                  );

                   $this->test_installed($element, $error, (${'reqd_' . $element}) ? $phpbb_root_path . 'styles/' . $reqd_template . '/' : $root_path, ${'reqd_' . $element}, $style_row[$element . '_id'], $style_row[$element . '_name'], $style_row[$element . '_copyright']);

                  if (!$style_row[$element . '_name'])
                  {
                     $style_row[$element . '_name'] = $reqd_template;
                  }
               }

            break;

            case 'template':
               $this->test_installed('template', $error, $root_path, false, $style_row['template_id'], $style_row['template_name'], $style_row['template_copyright']);
            break;

            case 'theme':
               $this->test_installed('theme', $error, $root_path, false, $style_row['theme_id'], $style_row['theme_name'], $style_row['theme_copyright']);
            break;

            case 'imageset':
               $this->test_installed('imageset', $error, $root_path, false, $style_row['imageset_id'], $style_row['imageset_name'], $style_row['imageset_copyright']);
            break;
         }
      }
      else
      {
         trigger_error($user->lang['NO_' . $l_type] . adm_back_link($this->u_action), E_USER_WARNING);
      }

      $style_row['store_db'] = request_var('store_db', 0);
      $style_row['style_active'] = request_var('style_active', 1);
      $style_row['style_default'] = request_var('style_default', 0);

      // User has submitted form and no errors have occurred
      if ($update && !sizeof($error))
      {
         if ($mode == 'style')
         {
            foreach ($element_ary as $element => $table)
            {
               ${$element . '_root_path'} = (${'reqd_' . $element}) ? $phpbb_root_path . 'styles/' . ${'reqd_' . $element} . '/' : false;
               ${$element . '_path'} = (${'reqd_' . $element}) ? ${'reqd_' . $element} : false;
            }
            $this->install_style($error, 'install', $root_path, $style_row['style_id'], $style_row['style_name'], $install_path, $style_row['style_copyright'], $style_row['style_active'], $style_row['style_default'], $style_row, $template_root_path, $template_path, $theme_root_path, $theme_path, $imageset_root_path, $imageset_path);
         }
         else
         {
            $style_row['store_db'] = $this->install_element($mode, $error, 'install', $root_path, $style_row[$mode . '_id'], $style_row[$mode . '_name'], $install_path, $style_row[$mode . '_copyright'], $style_row['store_db']);
         }

         if (!sizeof($error))
         {
            $cache->destroy('sql', STYLES_TABLE);

            $message = ($style_row['store_db']) ? '_ADDED_DB' : '_ADDED';
            trigger_error($user->lang[$l_type . $message] . adm_back_link($this->u_action));
         }
      }

      $this->page_title = 'INSTALL_' . $l_type;

      $template->assign_vars(array(
         'S_DETAILS'         => true,
         'S_INSTALL'         => true,
         'S_ERROR_MSG'      => (sizeof($error)) ? true : false,
         'S_STYLE'         => ($mode == 'style') ? true : false,
         'S_TEMPLATE'      => ($mode == 'template') ? true : false,
         'S_THEME'         => ($mode == 'theme') ? true : false,

         'S_STORE_DB'         => (isset($style_row[$mode . '_storedb'])) ? $style_row[$mode . '_storedb'] : 0,
         'S_STYLE_ACTIVE'      => (isset($style_row['style_active'])) ? $style_row['style_active'] : 0,
         'S_STYLE_DEFAULT'      => (isset($style_row['style_default'])) ? $style_row['style_default'] : 0,

         'U_ACTION'         => $this->u_action . "&action=install&path=" . urlencode($install_path),
         'U_BACK'         => $this->u_action,

         'L_TITLE'            => $user->lang[$this->page_title],
         'L_EXPLAIN'            => $user->lang[$this->page_title . '_EXPLAIN'],
         'L_NAME'            => $user->lang[$l_type . '_NAME'],
         'L_LOCATION'         => ($mode == 'template' || $mode == 'theme') ? $user->lang[$l_type . '_LOCATION'] : '',
         'L_LOCATION_EXPLAIN'   => ($mode == 'template' || $mode == 'theme') ? $user->lang[$l_type . '_LOCATION_EXPLAIN'] : '',

         'ERROR_MSG'         => (sizeof($error)) ? implode('<br />', $error) : '',
         'NAME'            => $style_row[$mode . '_name'],
         'COPYRIGHT'         => $style_row[$mode . '_copyright'],
         'TEMPLATE_NAME'      => ($mode == 'style') ? $style_row['template_name'] : '',
         'THEME_NAME'      => ($mode == 'style') ? $style_row['theme_name'] : '',
         'IMAGESET_NAME'      => ($mode == 'style') ? $style_row['imageset_name'] : '')
      );
   }

burdaki bikaç 0 dikkatimi çekti, ne iş bunlar? :? ya sıyırcam şimdi, yeni tema ekleyemiyom hey allahım...

---

0 pasif mi bırakıyo bunları yaw nedir bu anlayamadım bi türlü...

---

hatayı verdiren yer:

Kod: Tümünü seç
if ($mode == 'style' && (!$style_row['template_id'] || !$style_row['theme_id'] || !$style_row['imageset_id']))
         {
            $error[] = $user->lang['STYLE_ERR_NO_IDS'];
         }

burda o zaman iş cfg lere dönüyo sanırım? cfg den veriyi mi alamıyo nedir bu yaaa delirecem..

bide şurası dikkatimi çekti;
Kod: Tümünü seç
if ($mode == 'style')
      {
         foreach ($element_ary as $element => $table)
         {
            $sql = "SELECT {$element}_id, {$element}_name
               FROM $table
               ORDER BY {$element}_id ASC";
            $result = $db->sql_query($sql);

            ${$element . '_options'} = '';
            while ($row = $db->sql_fetchrow($result))
            {
               $selected = ($row[$element . '_id'] == $style_row[$element . '_id']) ? ' selected="selected"' : '';
               ${$element . '_options'} .= '<option value="' . $row[$element . '_id'] . '"' . $selected . '>' . $row[$element . '_name'] . '</option>';
            }
            $db->sql_freeresult($result);
         }
      }

burada seçme kutusunu belirtmiş, fakat mode=style sa demiş. o zmn noluyo? bendeki style a tanımlı mı gelmiyo da seçme kutusu vermiyo bana.. pffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff.
yaso_19
kullanıcı
kullanıcı

İleti: 141
Kayıt: 21 Nis 2007 02:40
Konum: İzmir
İsim: Yasin
HTML: İyi
CSS: Orta
PHP: İyi
phpBB3: Orta
Sürüm: PhpBB3 Gold 3.0.2

Re: Yönetim Panelinde yeni tema eklerken çıkan hata

İleti yaso_19 21 Ağu 2007 16:20

benden başka cevap yazan yok iyimi :)
varmı bir fikri olan arkadaşlar?
yaso_19
kullanıcı
kullanıcı

İleti: 141
Kayıt: 21 Nis 2007 02:40
Konum: İzmir
İsim: Yasin
HTML: İyi
CSS: Orta
PHP: İyi
phpBB3: Orta
Sürüm: PhpBB3 Gold 3.0.2

Re: Yönetim Panelinde yeni tema eklerken çıkan hata

İleti yaso_19 23 Ağu 2007 10:48

http://www.phpbb.com/community/viewtopi ... 4&t=575858

Phpbb.com a eklendi bakalım orda çözebilecek biri olacakmı..
yaso_19
kullanıcı
kullanıcı

İleti: 141
Kayıt: 21 Nis 2007 02:40
Konum: İzmir
İsim: Yasin
HTML: İyi
CSS: Orta
PHP: İyi
phpBB3: Orta
Sürüm: PhpBB3 Gold 3.0.2

Re: Yönetim Panelinde yeni tema eklerken çıkan hata

İleti Simuzer 23 Ağu 2007 12:44

Sabri'nin konusu
viewtopic.php?f=98&t=880

RC4 için çözümü:
viewtopic.php?p=3774#p3774
Gelişmiş phpBB3 Premod Sistemi | Simuzer Premod
http://www.simuzer.com
Simuzer
kullanıcı
kullanıcı

Kullanıcı avatarı

İleti: 1047
Kayıt: 28 Mar 2007 20:19
HTML: İyi
CSS: Orta
PHP: Başlangıç
phpBB3: Orta
Sürüm: 3.0.2


Hata Mesajları


Kimler çevrimiçi

Bu forumu görüntüleyenler: Kayıtlı kullanıcı yok ve 1 misafir