SimplePortal

Support => International Support => Turkish (Türkçe) => Topic started by: grafitus on March 19, 2009, 03:32:52 PM

Title: Pretty Urls Çak??mas?
Post by: grafitus on March 19, 2009, 03:32:52 PM
Sinan Abi,
 
Özel mesajlar?ma cevap alamad???m için burdan yaz?yorum..?imdi yepyeni kurdu?um Smf 2.0 RC1 foruma önce pretty sonra da simpleportal kurunca Subs.php'de çak??ma oluyor ve sürekli hata veriyor baz? bölümlerde..Hata veriyor ancak ayarlamalar? da kay?r ediyor..
 
Hata sat?r?: 2611
 
Ald???m hata: Fatal error: require_once() [function.require (http://www.pcadam.com/function.require)]: Failed opening required '/PrettyUrls-Filters.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/pcadmcom/public_html/Sources/Subs.php on line 2611
 
 
Hata al?nana fonksiyon:
 
Code: [Select]

// Make sure the browser doesn't come back and repost the form data.  Should be used whenever anything is posted.
function redirectexit($setLocation = '', $refresh = false)
{
 global $scripturl, $context, $modSettings, $db_show_debug, $db_cache;
 // In case we have mail to send, better do that - as obExit doesn't always quite make it...
 if (!empty($context['flush_mail']))
  AddMailQueue(true);
 $add = preg_match('~^(ftp|http)[s]?://~', $setLocation) == 0 && substr($setLocation, 0, 6) != 'about:';
 
 // Redirect to the forums action not the portal, when Simple Portal is active. ;)
 if((empty($setLocation) || $scripturl == $setLocation) && !empty($modSettings['portalactive']) && empty($modSettings['sp_disableForumRedirect']))
  $setLocation = 'action=forum';
 if (WIRELESS)
 {
  // Add the scripturl on if needed.
  if ($add)
   $setLocation = $scripturl . '?' . $setLocation;
  $char = strpos($setLocation, '?') === false ? '?' : ';';
  if (strpos($setLocation, '#') ==! false)
   $setLocation = strtr($setLocation, array('#' => $char . WIRELESS_PROTOCOL . '#'));
  else
   $setLocation .= $char . WIRELESS_PROTOCOL;
 }
 elseif ($add)
  $setLocation = $scripturl . ($setLocation != '' ? '?' . $setLocation : '');
 // Put the session ID in.
 if (defined('SID') && SID != '')
  $setLocation = preg_replace('/^' . preg_quote($scripturl, '/') . '(?!\?' . preg_quote(SID, '/') . ')(\?)?/', $scripturl . '?' . SID . ';', $setLocation);
 // Keep that debug in their for template debugging!
 elseif (isset($_GET['debug']))
  $setLocation = preg_replace('/^' . preg_quote($scripturl, '/') . '(\?)?/', $scripturl . '?debug;', $setLocation);
 // Redirections should be pretty too
 if ($modSettings['pretty_enable_filters'])
 {
  require_once($sourcedir . '/PrettyUrls-Filters.php');
  $url = array(0 => array('url' => $setLocation, 'url_id' => 'setLocation'));
  $filter_callbacks = unserialize($modSettings['pretty_filter_callbacks']);
  foreach ($filter_callbacks as $callback)
  {
   $pretty_url = call_user_func($callback, $url);
   if (isset($pretty_url[0]['replacement']))
    break;
  }
  if (isset($pretty_url[0]['replacement']))
   $setLocation = $pretty_url[0]['replacement'];
  $setLocation = str_replace("\x12", '\'', $setLocation);
  $setLocation = preg_replace(array('~;+|=;~', '~\?;~', '~\?#|;#|=#~', '~\?$|;$|#$|=$~'), array(';', '?', '#', ''), $setLocation);
 }
 if (isset($modSettings['integrate_redirect']) && function_exists($modSettings['integrate_redirect']))
  $modSettings['integrate_redirect']($setLocation, $refresh);
 // We send a Refresh header only in special cases because Location looks better. (and is quicker...)
 if ($refresh && !WIRELESS)
  header('Refresh: 0; URL=' . strtr($setLocation, array(' ' => '%20')));
 else
  header('Location: ' . str_replace(' ', '%20', $setLocation));
 // Debugging.
 if (isset($db_show_debug) && $db_show_debug === true)
  $_SESSION['debug_redirect'] = $db_cache;
 obExit(false);
}

 
San?rsam pretty ile tek simpleportal kuran benim yoksa çok ki?i al?rd? hata :S Neyse cevab?n? büyük bir özlemle bekliyorum..
Title: Re: Pretty Urls Çakışması
Post by: grafitus on March 23, 2009, 07:08:40 AM
Güncel..
Title: Re: Pretty Urls Çakışması
Post by: Paragaya on March 23, 2009, 11:55:50 AM
Bu resmi sitede çözülmüştü Bu konuda : http://www.simplemachines.org/community/index.php?topic=227618.0
Title: Re: Pretty Urls Çakışması
Post by: grafitus on March 23, 2009, 01:02:26 PM
Bu resmi sitede çözülmüştü Bu konuda : http://www.simplemachines.org/community/index.php?topic=227618.0

Hakkını helal et :)

44 sayfalık bir konuya giriyom :D
Title: Re: Pretty Urls Çakışması
Post by: grafitus on March 23, 2009, 01:40:53 PM
Paragaya, bulamadım.Acaba mesaj linkini atar mısın ??? Yada kaçıncı sayfa da ???
Title: Re: Pretty Urls Çakışması
Post by: Paragaya on March 24, 2009, 05:21:10 AM
Helal olsun walla hatırlamıyorum sinan gelsin baksın..
Title: Re: Pretty Urls Çakışması
Post by: Daydreamer on March 25, 2009, 06:46:37 AM
Bu hatayı tam olarak nasıl veriyor? Yada nerede veriyor. Arasıra mı veriyor yani ne gibi durumlarda çıkıyor?
Son olaraksa admin panelindeki hata kaydını tam olarak kopyalar mısınız buraya?
Title: Re: Pretty Urls Çak??mas?
Post by: karanima on March 25, 2009, 08:07:07 AM
san?r?m derdimiz ayn? hata kayd? ?öyle

http://forumayna.com/index.php?action=spadmin

Veritaban? Hatas?: Illegal mix of collations for operation ' IN '
Dosya: /home/forumayn/public_html/Sources/PrettyUrls-Filters.php
Sat?r: 47
Title: Re: Pretty Urls Çakışması
Post by: grafitus on March 26, 2009, 12:50:58 PM
Bu hatayı tam olarak nasıl veriyor? Yada nerede veriyor. Arasıra mı veriyor yani ne gibi durumlarda çıkıyor?
Son olaraksa admin panelindeki hata kaydını tam olarak kopyalar mısınız buraya?

Bütün actinolarda..Veri tabanına bişiler eklerken,değiştirirken.
Title: Re: Pretty Urls Çakışması
Post by: [SiNaN] on March 26, 2009, 03:53:51 PM
grafitus:

Hatanin SimplePortal ile alakali oldugu sonucuna nasil vardiniz? Hatada sadece PrettyURLs ile ilgili bir dosyanin bulunamadigi yaziyor.

karanima:

Sizin hataniz da PrettyURLs tablolariniz icinde veya bunlar ile SMF tablolari arasinda karakter seti uyusmazsizligi oldugunu soyluyor.
Title: Re: Pretty Urls Çakışması
Post by: karanima on March 26, 2009, 04:01:08 PM
peki phpmyadminden karakter setiyle ayar yapmaya çalışsam nasıl olur

edit:pretty cache dosyasının karakter setini utf8 türkçe yaptım düzeldi
Title: Re: Pretty Urls Çak??mas?
Post by: grafitus on March 26, 2009, 05:02:06 PM
grafitus:

Hatanin SimplePortal ile alakali oldugu sonucuna nasil vardiniz? Hatada sadece PrettyURLs ile ilgili bir dosyanin bulunamadigi yaziyor.

Sinan abicim,
Dosya yerli yerinde duruyor.Ve  Simle Portal'? kurmadan önce orda sorun yoktu :S

Edit: Çözdüm problemi.Problem kurulumda bi karu???kl?k oluyor.Ve bu yüzden "Pretty URLs" global de?i?kenlere $sourcedir adl? de?i?keni eklyemiyor.Bunu manuel olarak ekleyince sorun kalk?yor.

E?er böyle bir hata ile kar??la??rsan?z,

Code: (Subs.php'de bulun) [Select]
global $scripturl, $context, $modSettings, $db_show_debug, $db_cache;

Code: (De?i?tirin) [Select]
global $scripturl, $context, $modSettings, $db_show_debug, $db_cache, $sourcedir;
SimplePortal 2.3.8 © 2008-2024, SimplePortal