• 05-04-2014, 22:09:16
    #1
    Merhaba arkadaşlar,
    Şu linkteki yöntem ile ; https://www.codeprex.com/tema-disind...n-wp-load-php/

    Temama ait olmayan dosyada tema fonksiyonlarını çalıştırmak istiyorum bunun için wp-load entegre etmem gerek php sayfama. Entegre ettim linkte verilen kodu. sadece başındaki include kodunu. o dizinde error_log oluştu sanırsam wpload'ı bulamadı. Bende ;

    $domain = 'http://'.$_SERVER["HTTP_HOST"];
    	include($domain.'/wp-load.php');
    Şöyle bir kod yazdım bu sefer buldu ama error_log'da şöyle bir hata yazıyor ;
    [05-Apr-2014 22:04:48 Europe/Istanbul] PHP Warning:  include() [<a href='function.include'>function.include</a>]: http:// wrapper is disabled in the server configuration by allow_url_include=0 in /home/abc/public_html/wp-content/themes/Tema/includes/twitter-api/twitter.php on line 4
    [05-Apr-2014 22:04:48 Europe/Istanbul] PHP Warning:  include(http://www.abc.com/wp-load.php) [<a href='function.include'>function.include</a>]: failed to open stream: no suitable wrapper could be found in /home/abc/public_html/wp-content/themes/tema/includes/twitter-api/twitter.php on line 4
    [05-Apr-2014 22:04:48 Europe/Istanbul] PHP Warning:  include() [<a href='function.include'>function.include</a>]: Failed opening 'http://www.abc.com/wp-load.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/abc/public_html/wp-content/themes/Tema/includes/twitter-api/twitter.php on line 4
    Bu sorunun tam açıklaması nedir ?
  • 06-04-2014, 15:03:23
    #2
    Yardımcı olursanız sevinirim arkadaşlar sorunu hala çözebilmiş değilim.