wmaraci reklam
lidertakipci

Showycase teması WP 3.6 sorunu

23 Mesajlar 2.516 Okunma
advertseo
wmaraci reklam

EmPa EmPa GRAFİKER & Bilgisayar Müh Kullanıcı
  • Üyelik 08.09.2011
  • Yaş/Cinsiyet 29 / E
  • Meslek Öğrenci
  • Konum Elazığ
  • Ad Soyad K** P**
  • Mesajlar 539
  • Beğeniler 93 / 86
  • Ticaret 0, (%0)

soulmy adlı üyeden alıntı

Tema dosyalarına...

Bütün tema dosyalarında /widget-video.php dosyasını arattım ama hiç bir dosyada böyle bir şey yazmıyor. :(
 

 

KEP Creativity | Digital Agency
wmaraci
reklam

soulmy soulmy WM Aracı Kullanıcı
  • Üyelik 12.06.2012
  • Yaş/Cinsiyet 38 / E
  • Meslek Öğretmen
  • Konum Samsun
  • Ad Soyad O** Y**
  • Mesajlar 1722
  • Beğeniler 398 / 400
  • Ticaret 20, (%100)
Dostum aldığın hataya göre has_shortcode() fonksiyonu 2 kere oluşturulmuş diyor. Genelde bu olay, bir dosyanın 2 kere include edilmesiyle oluşuyor. Bu yüzden kontrol et demiştim. Madem hiç bir dosyada böyle bir şey yazmıyor, o halde has_shortcode fonksiyonu başka php dosyalarda 2 kere oluşturulmuş ya da eklentilerden birinde olabilir.

Temayı nereden indirdin, bir de ben bakayım.
 

 

.

EmPa EmPa GRAFİKER & Bilgisayar Müh Kullanıcı
  • Üyelik 08.09.2011
  • Yaş/Cinsiyet 29 / E
  • Meslek Öğrenci
  • Konum Elazığ
  • Ad Soyad K** P**
  • Mesajlar 539
  • Beğeniler 93 / 86
  • Ticaret 0, (%0)

soulmy adlı üyeden alıntı

Dostum aldığın hataya göre has_shortcode() fonksiyonu 2 kere oluşturulmuş diyor. Genelde bu olay, bir dosyanın 2 kere include edilmesiyle oluşuyor. Bu yüzden kontrol et demiştim. Madem hiç bir dosyada böyle bir şey yazmıyor, o halde has_shortcode fonksiyonu başka php dosyalarda 2 kere oluşturulmuş ya da eklentilerden birinde olabilir.

Temayı nereden indirdin, bir de ben bakayım.

Biraz önce tema sürümünü yükselttim fakat sorun değişmedi yine hata veriyor. Fakat bu sefer verdiği satırda sadece } işareti bulunuyor halen çözebilmiş değilim. Aşağıda ilgili kısmı veriyorum 263.satırda problem olduğunu söylüyor wp 263. satır vereceğim koddaki son satırdır.
/*----------------------------------------------/
FUNCTION TO CHECK IF POST HAS SHORTCODE
/----------------------------------------------*/
function has_shortcode($shortcode = '') {

if ( have_posts() ){
$postID = get_the_ID();
$post_to_check = get_post($postID);

// false because we have to search through the post content first
$found = false;

// if no short code was provided, return false
if (!$shortcode) {
return $found;
}
// check the post content for the shortcode
if ( stripos($post_to_check->post_content, '[' . $shortcode) !== false ) {
// we have found the short code
$found = true;
}

// return our final results
return $found;
}
}
 

 

KEP Creativity | Digital Agency

soulmy soulmy WM Aracı Kullanıcı
  • Üyelik 12.06.2012
  • Yaş/Cinsiyet 38 / E
  • Meslek Öğretmen
  • Konum Samsun
  • Ad Soyad O** Y**
  • Mesajlar 1722
  • Beğeniler 398 / 400
  • Ticaret 20, (%100)
Herhangi bir hata göremedim. Dosyanın tamamını gönderseniz... Bir de hata kodu tam olarak nedir?
 

 

.
wmaraci
wmaraci

EmPa EmPa GRAFİKER & Bilgisayar Müh Kullanıcı
  • Üyelik 08.09.2011
  • Yaş/Cinsiyet 29 / E
  • Meslek Öğrenci
  • Konum Elazığ
  • Ad Soyad K** P**
  • Mesajlar 539
  • Beğeniler 93 / 86
  • Ticaret 0, (%0)

soulmy adlı üyeden alıntı

Herhangi bir hata göremedim. Dosyanın tamamını gönderseniz... Bir de hata kodu tam olarak nedir?

Yeni hata kodu:
Fatal error: Cannot redeclare has_shortcode() (previously declared in /home/kemre/public_html/wp-includes/shortcodes.php:153) in /home/kemre/public_html/wp-content/themes/showycase/functions.php on line 263

Functions.php: http://yadi.sk/d/peRjjEFW8rSgx
 

 

KEP Creativity | Digital Agency

soulmy soulmy WM Aracı Kullanıcı
  • Üyelik 12.06.2012
  • Yaş/Cinsiyet 38 / E
  • Meslek Öğretmen
  • Konum Samsun
  • Ad Soyad O** Y**
  • Mesajlar 1722
  • Beğeniler 398 / 400
  • Ticaret 20, (%100)

EmPa adlı üyeden alıntı

Yeni hata kodu:
Fatal error: Cannot redeclare has_shortcode() (previously declared in /home/kemre/public_html/wp-includes/shortcodes.php:153) in /home/kemre/public_html/wp-content/themes/showycase/functions.php on line 263

Functions.php: http://yadi.sk/d/peRjjEFW8rSgx


Şimdi ufak bir araştırma yaptım.

https://codex.wordpress.org/Function_Reference/has_shortcode

Bu sayfada da görüldüğü gibi WP'te has_shortcode fonksiyonu zaten bulunmakta. Bir de function.php dosyasına konulunca 2. kez oluşturulduğu için hata vermekte.

Önünde 2 seçenek var.

1) Ya wp-includes/shortcodes.php bu dosyadaki has_shortcode fonksiyonu sileceksin. 153. satırda başlıyor.

2) Ya da function.php dosyasındaki has_shortcode fonksiyonu sileceksin.

karar senin :)
 

 

.

EmPa EmPa GRAFİKER & Bilgisayar Müh Kullanıcı
  • Üyelik 08.09.2011
  • Yaş/Cinsiyet 29 / E
  • Meslek Öğrenci
  • Konum Elazığ
  • Ad Soyad K** P**
  • Mesajlar 539
  • Beğeniler 93 / 86
  • Ticaret 0, (%0)

soulmy adlı üyeden alıntı

Şimdi ufak bir araştırma yaptım.

https://codex.wordpress.org/Function_Reference/has_shortcode

Bu sayfada da görüldüğü gibi WP'te has_shortcode fonksiyonu zaten bulunmakta. Bir de function.php dosyasına konulunca 2. kez oluşturulduğu için hata vermekte.

Önünde 2 seçenek var.

1) Ya wp-includes/shortcodes.php bu dosyadaki has_shortcode fonksiyonu sileceksin. 153. satırda başlıyor.

2) Ya da function.php dosyasındaki has_shortcode fonksiyonu sileceksin.

karar senin :)

Dediğinizi yaptım ve yine bir hata oluştu:
Warning: Missing argument 2 for has_shortcode(), called in /home/kemre/public_html/wp-content/themes/showycase/functions.php on line 274 and defined in /home/kemre/public_html/wp-includes/shortcodes.php on line 153

Warning: Missing argument 2 for has_shortcode(), called in /home/kemre/public_html/wp-content/themes/showycase/functions.php on line 275 and defined in /home/kemre/public_html/wp-includes/shortcodes.php on line 153

Warning: Missing argument 2 for has_shortcode(), called in /home/kemre/public_html/wp-content/themes/showycase/functions.php on line 276 and defined in /home/kemre/public_html/wp-includes/shortcodes.php on line 153

Warning: Missing argument 2 for has_shortcode(), called in /home/kemre/public_html/wp-content/themes/showycase/functions.php on line 285 and defined in /home/kemre/public_html/wp-includes/shortcodes.php on line 153

Warning: Missing argument 2 for has_shortcode(), called in /home/kemre/public_html/wp-content/themes/showycase/functions.php on line 295 and defined in /home/kemre/public_html/wp-includes/shortcodes.php on line 153

Warning: Missing argument 2 for has_shortcode(), called in /home/kemre/public_html/wp-content/themes/showycase/functions.php on line 299 and defined in /home/kemre/public_html/wp-includes/shortcodes.php on line 153

Warning: Missing argument 2 for has_shortcode(), called in /home/kemre/public_html/wp-content/themes/showycase/functions.php on line 303 and defined in /home/kemre/public_html/wp-includes/shortcodes.php on line 153

Warning: Missing argument 2 for has_shortcode(), called in /home/kemre/public_html/wp-content/themes/showycase/functions.php on line 368 and defined in /home/kemre/public_html/wp-includes/shortcodes.php on line 153

Warning: Missing argument 2 for has_shortcode(), called in /home/kemre/public_html/wp-content/themes/showycase/functions.php on line 369 and defined in /home/kemre/public_html/wp-includes/shortcodes.php on line 153

Warning: Missing argument 2 for has_shortcode(), called in /home/kemre/public_html/wp-content/themes/showycase/functions.php on line 378 and defined in /home/kemre/public_html/wp-includes/shortcodes.php on line 153

Warning: Missing argument 2 for has_shortcode(), called in /home/kemre/public_html/wp-content/themes/showycase/functions.php on line 392 and defined in /home/kemre/public_html/wp-includes/shortcodes.php on line 153

Warning: Missing argument 2 for has_shortcode(), called in /home/kemre/public_html/wp-content/themes/showycase/functions/head-scripts.php on line 7 and defined in /home/kemre/public_html/wp-includes/shortcodes.php on line 153

Warning: Missing argument 2 for has_shortcode(), called in /home/kemre/public_html/wp-content/themes/showycase/functions/head-scripts.php on line 8 and defined in /home/kemre/public_html/wp-includes/shortcodes.php on line 153

Warning: Missing argument 2 for has_shortcode(), called in /home/kemre/public_html/wp-content/themes/showycase/functions/head-scripts.php on line 9 and defined in /home/kemre/public_html/wp-includes/shortcodes.php on line 153

Warning: Missing argument 2 for has_shortcode(), called in /home/kemre/public_html/wp-content/themes/showycase/functions/head-scripts.php on line 10 and defined in /home/kemre/public_html/wp-includes/shortcodes.php on line 153
 

 

KEP Creativity | Digital Agency

soulmy soulmy WM Aracı Kullanıcı
  • Üyelik 12.06.2012
  • Yaş/Cinsiyet 38 / E
  • Meslek Öğretmen
  • Konum Samsun
  • Ad Soyad O** Y**
  • Mesajlar 1722
  • Beğeniler 398 / 400
  • Ticaret 20, (%100)
Sanırım 1. dediğimi yaptınız o halde 2. dediğimi yapıp dener misin?

Ayrıca wp-includes/shortcodes.php dosyasında sildiğiniz fonksiyonu tekrar eklemeyi unutmayın.
 

 

.

EmPa EmPa GRAFİKER & Bilgisayar Müh Kullanıcı
  • Üyelik 08.09.2011
  • Yaş/Cinsiyet 29 / E
  • Meslek Öğrenci
  • Konum Elazığ
  • Ad Soyad K** P**
  • Mesajlar 539
  • Beğeniler 93 / 86
  • Ticaret 0, (%0)

soulmy adlı üyeden alıntı

Sanırım 1. dediğimi yaptınız o halde 2. dediğimi yapıp dener misin?

Ayrıca wp-includes/shortcodes.php dosyasında sildiğiniz fonksiyonu tekrar eklemeyi unutmayın.

Aksine ikinci dediğinizi yaptım birinci dediğinizi deniyorum
 

 

KEP Creativity | Digital Agency

soulmy soulmy WM Aracı Kullanıcı
  • Üyelik 12.06.2012
  • Yaş/Cinsiyet 38 / E
  • Meslek Öğretmen
  • Konum Samsun
  • Ad Soyad O** Y**
  • Mesajlar 1722
  • Beğeniler 398 / 400
  • Ticaret 20, (%100)

EmPa adlı üyeden alıntı

Aksine ikinci dediğinizi yaptım birinci dediğinizi deniyorum


Entresan :eek:

Neyse, sonucu bekliyorum.
 

 

.
wmaraci
Konuyu toplam 1 kişi okuyor. (0 kullanıcı ve 1 misafir)
Site Ayarları
  • Tema Seçeneği
  • Site Sesleri
  • Bildirimler
  • Özel Mesaj Al