Hoşgeldin Misafir

Çözüldü yedek parça site kurmada http500 hatası

teksass

9 Kas 2022
1,434 Mesaj

Aktiflik

Seviye

Deneyim

TIM / GÖREV:
tasarımı kurdum php surumu 7.2 cektım cloudlınux sürümden ayarlaması yapıldı phpmyadmin site ayarlarından alan adı vs gibi bilgi güncellemesi yapıldı site subdomain kurdum halde http 500 hatası veriyor httacces isim degiştim sildim tekrar yukledım php error log actım bu hata vermekte baktımda mail ayarları onları degişme yaptım halde aynı hata devam etmekte

resim ektedir.


hatalar error logdaki
[26-Aug-2024 09:26:55 UTC] PHP Notice: Undefined index: kullaniciadi in /home//public_html/eticaret./func/fonksiyon.php on line 36
[26-Aug-2024 09:26:55 UTC] PHP Notice: Undefined index: sifre in /home//public_html/eticaret./func/fonksiyon.php on line 37
[26-Aug-2024 09:26:55 UTC] PHP Fatal error: Uncaught PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'system where id=1' at line 1 in /home//public_html/eticaret./func/fonksiyon.php:159
Stack trace:
#0 /home//public_html/eticaret.z/func/fonksiyon.php(159): PDO->query('select * from s...')
#1 /home//public_html/eticaret./index.php(4): require_once('/home/...')
#2 {main}
thrown in /home//public_html/eticaret./func/fonksiyon.php on line 159
[26-Aug-2024 09:28:53 UTC] PHP Notice: Undefined index: kullaniciadi in /home//public_html/eticaret./func/fonksiyon.php on line 36
[26-Aug-2024 09:28:53 UTC] PHP Notice: Undefined index: sifre in /home//public_html/eticaret./func/fonksiyon.php on line 37
[26-Aug-2024 09:28:53 UTC] PHP Fatal error: Uncaught PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'system where id=1' at line 1 in /home//public_html/eticaret.-/func/fonksiyon.php:159
Stack trace:
#0 /home//public_html/eticaret./func/fonksiyon.php(159): PDO->query('select * from s...')
#1 /home//public_html/eticaret./index.php(4): require_once('/home/bursahost...')
#2 {main}
thrown in /home//public_html/eticaret./func/fonksiyon.php on line 159
[26-Aug-2024 09:30:33 UTC] PHP Notice: Undefined index: kullaniciadi in /home//public_html/eticaret./func/fonksiyon.php on line 36
[26-Aug-2024 09:30:33 UTC] PHP Notice: Undefined index: sifre in /home//public_html/eticaret./func/fonksiyon.php on line 37
[26-Aug-2024 09:30:33 UTC] PHP Fatal error: Uncaught PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'system where id=1' at line 1 in /home//public_html/eticaret./func/fonksiyon.php:159
Stack trace:
#0 /home//public_html/eticaret./func/fonksiyon.php(159): PDO->query('select * from s...')
#1 /home//public_html/eticaret./index.php(4): require_once('/home/...')
#2 {main}
thrown in /home//public_html/eticaret./func/fonksiyon.php on line 159
 
Çözüm
Sorun Tarafımca Çözülmüştür sorun sql veya veritabanında değil sorun funksiyon ve admin panel pages dosyalarında funksiyon çağırma hatasında güncel fixlenmiş halini tekrar atarım buraya

saltanat

28 Şub 2019
451 Mesaj

Aktiflik

Seviye

Deneyim

TIM / GÖREV:
php fonksiyon.php atayım 134 satır bu alan var



Kod:
   );
     $str = preg_replace(array_keys($options['replacements']), $options['replacements'], $str);
     if ($options['transliterate']) {
         $str = str_replace(array_keys($char_map), $char_map, $str);
     }

bu satır  var   burdan  cagırıyor  onu  o  hatayı  verıyor  komple  bunu  degisicem    fonskiyon.php  134 satırda

$system = $ozy->query("select * from system where id=1")->fetch(PDO::FETCH_ASSOC); 159 satırda olan alan
$system = $ozy->query("select * from system where id=1")->fetch(PDO::FETCH_ASSOC); BU SATIRI $system = $ozy->query("SELECT * FROM `system` where id=1")->fetch(PDO::FETCH_ASSOC); ile değiştir. Arkadaşlar çözümü yazmışlar Tırnak içne alman gerekiyor system tablosunu zaten mysql sürüm ile ilgili hata alıyorsun