• 22-12-2023, 09:17:09
    #1
    Kimlik doğrulama veya yönetimden onay bekliyor.
    Php + vue ile yazılmış bir websitesi, 500 kodlu sunucu hatası verip açılmıyor. Sorunun çözümü için php versiyon güncellemesi yapıldı hosting firması tarafından ama site tarafında da ayarlama yapılması lazım. Ne yapılması gerektiğine dair hiç bilmeyen birine anlatır gibi anlatabilecek var mı?
  • 22-12-2023, 09:23:10
    #2
    Hata kodlarını incelediniz mi? Log dosyanızdan vs.
    index.php'nizin en başına
    error_reporting(E_ALL);
    ini_set('display_errors', 'on');
    eklerseniz belki ekrana yazdırıp hatanın sebebini anlayabilirsiniz.
  • 22-12-2023, 09:31:00
    #3
    ManoFire adlı üyeden alıntı: mesajı görüntüle
    Hata kodlarını incelediniz mi? Log dosyanızdan vs.
    index.php'nizin en başına
    error_reporting(E_ALL);
    ini_set('display_errors', 'on');
    eklerseniz belki ekrana yazdırıp hatanın sebebini anlayabilirsiniz.

    Hosting firması bunu yazmıştı:
    "However for this you need to review you file shared below and This is customized scripting, we could not able to change it for you. We checked with full, Error 500 means problem with content/script.

    /home/.../vendor/composer/platform_check.php on line 25"
  • 22-12-2023, 09:36:58
    #4
    platform_check.php dosyasının 25. satırında hangi kodlar yer alıyor hocam?
  • 22-12-2023, 09:43:43
    #5
    TuorElanesse adlı üyeden alıntı: mesajı görüntüle
    platform_check.php dosyasının 25. satırında hangi kodlar yer alıyor hocam?
    şöyle atayım hocam:

  • 22-12-2023, 09:49:42
    #6
    25.satırı silip denediniz mi? @mazda;
    kodları resim olarak değil yazı şeklinde gönderirmisiniz orada bir şey eksik gibi duruyor.
  • 22-12-2023, 10:28:42
    #7
    haberyerel adlı üyeden alıntı: mesajı görüntüle
    25.satırı silip denediniz mi? @mazda;
    kodları resim olarak değil yazı şeklinde gönderirmisiniz orada bir şey eksik gibi duruyor.
    <?php
    // platform_check.php @generated by Composer
    $issues = array();
    if (!(PHP_VERSION_ID >= 80100)) {
        $issues[] = 'Your Composer dependencies require a PHP version ">= 8.1.0". You are running ' . PHP_VERSION . '.';
    }
    if ($issues) {
        if (!headers_sent()) {
            header('HTTP/1.1 500 Internal Server Error');
        }
        if (!ini_get('display_errors')) {
            if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') {
                fwrite(STDERR, 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . implode(PHP_EOL, $issues) . PHP_EOL.PHP_EOL);
            } elseif (!headers_sent()) {
                echo 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . str_replace('You are running '.PHP_VERSION.'.', '', implode(PHP_EOL, $issues)) . PHP_EOL.PHP_EOL;
            }
        }
        trigger_error(
            'Composer detected issues in your platform: ' . implode(' ', $issues),
            E_USER_ERROR
        );
    }
  • 22-12-2023, 10:30:42
    #8
    Merhaba
    PHP sürümünüzü php 8.1 olarak güncelleyip tekrar dener misiniz?
  • 22-12-2023, 10:38:34
    #9
    @SunucuCenter; hocamın dediğini yazacaktım bende o benden önce davranmış verdiği hata php 8.1 sürümü gerektirir diyor o şekilde denemen lazım @mazda;