• 10-04-2009, 00:31:47
    #1
    Fatal error: Cannot redeclare reorder_cat() hatasının çözümü : phpBB2 Plus Destek
    burada yazıklanlar çok işime yaradı-yarıyor. hataları düzeltiyorum fakat bir yerde takıldım.
    Aldığım hata:
    Fatal error: Call to undefined function posting_gen_topic_types() in /home/zahmet/public_html/posting.php on line 1353

    Posting.php nin 1353. satırı bu şekilde:
    $topic_type_toggle = posting_gen_topic_types($forum_id, $post_data['topic_type']);
    Ben bu satırı
    $topic_type_toggle = "posting_gen_topic_types($forum_id, $post_data['topic_type'])";
    olarak değiştirdim ve şu hatayı aldım:

    Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/zahmet/public_html/posting.php on line 1353

    Nasıl bir düzenleme yapmalıyım?
  • 10-04-2009, 00:34:56
    #2
    Üyeliği durduruldu
    $topic_type_toggle = posting_gen_topic_types($forum_id, $post_data['topic_type']);
    şöyle yazarsaniz parse error gitmiş olur tabi doğru düşündügüm gibi fonksiyonu cagirmak istiyorsanız

    Fatal error: Cannot redeclare reorder_cat() hatasının çözümü : phpBB2 Plus Destek

    gibi hatayı mevcut olan fonksiyon dosyasını iki kere include edince alirsiniz

    Fatal error: Call to undefined function posting_gen_topic_types()

    hatasinida mecvut olan fonksiyon dosyasini hiç include etmezseniz alirsiniz
  • 10-04-2009, 00:35:08
    #3
    Tırnakları kaldır " " şunları.

    Kaldırıdıktan sonra

    Fatal error: Call to undefined function posting_gen_topic_types() in /home/zahmet/public_html/posting.php on line 1353

    bu hatayı alıyosan

    o fonksiyonu o dosyada bulamadım diyor php.
    O fonksiyonun olduğu dosyayı include etmelisin.
  • 10-04-2009, 00:40:53
    #4
    tırnakları kaldırdım. şimdi include edeceksem eğer nasıl bir kodla include edicem o function, includes/function_posting.php nin içinde.
  • 10-04-2009, 00:47:16
    #5
    include ('includes/function_posting.php');
  • 10-04-2009, 00:47:51
    #6
    eğer doğru anLadıysam
    require_once("includes/function_posting.php");
  • 10-04-2009, 00:52:58
    #7
    takilberime adlı üyeden alıntı: mesajı görüntüle
    include ('includes/function_posting.php');
    bu kodu ekleyince
    [phpBB Debug] PHP Notice: in file /posting.php on line 1353: include(includes/function_posting.php) [function.include]: failed to open stream: No such file or directory
    [phpBB Debug] PHP Notice: in file /posting.php on line 1353: include(includes/function_posting.php) [function.include]: failed to open stream: No such file or directory
    [phpBB Debug] PHP Notice: in file /posting.php on line 1353: include() [function.include]: Failed opening 'includes/function_posting.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') şekl,nde hata aldım
  • 10-04-2009, 00:54:29
    #8
    YuqseLX adlı üyeden alıntı: mesajı görüntüle
    eğer doğru anLadıysam
    require_once("includes/function_posting.php");
    bu kodu eklediğimde ise hata bu oldu:
    [phpBB Debug] PHP Notice: in file /posting.php on line 1353: require_once(includes/function_posting.php) [function.require-once]: failed to open stream: No such file or directory

    Fatal error: require_once() [function.require]: Failed opening required 'includes/function_posting.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/zahmet/public_html/posting.php on line 1353
  • 10-04-2009, 00:59:35
    #9
    Şimdi şöyle bişi var.
    Bu kodu ekleyince php o dosyayı bulamadım diyor.

    Burda path ayarlarından emin misin?
    Atıyorum bu script ./post/ klasöründeyse ve senin bahsettiğin includes/function_posting.php dosyası direk ana klasörden çağrılıyorsa

    include ('../includes/function_posting.php');

    şeklinde eklemen gerek.Yani dosyanın bulunduğu klasörleri ayrıntıları ile belirtmen lazım.

    include ('includes/function_posting.php');
    bu şekil eklersen posting.php ile aynı klasörde olması lazım includes/function_posting.php