Evija Posted July 31, 2020 Report Share Posted July 31, 2020 Sveiki! Maklēju palīdzību. Ir mājas lapa, kura būvētu uz WordPress. WordPress sūta paziņojumu, ka jāizvēlas PHP vismaz 7.3 (esošais lapas PHPir 7.1). Saprotu tikai tādā līmenī, ka paskatījos video Youtube un izdarīju visu kā rādīja. Tomēr lapa nestrādāja. Pārbaudīju visus plaginus, tur nebija vaina. Nekādu kļūdu neizmeta, bet novirzīja uz šādu lapu palasīties: https://wordpress.org/support/article/debugging-in-wordpress/ Quote Link to comment Share on other sites More sharing options...
briedis Posted July 31, 2020 Report Share Posted July 31, 2020 Pirmais, kas jādara, ir jāieslēdz visu erroru rerpotings (google enable error reporting php/wordpress), ir jāatrod servera error logi (PHP) un jāmeklē, kas tieši nestrādā. Quote Link to comment Share on other sites More sharing options...
Pats Toms Posted July 31, 2020 Report Share Posted July 31, 2020 Domājams, ka no sākuma vajadzētu definēt, kur tu mēģini izvietot Wordpress. Būtībā, jautājums ir vai tas ir kaut kāds VPS, vai shared hosting, vai vienalga. Pēc tam jāturpina ar PHP versiju, jo izskatās, ka tāda ir Wordpress rekomendācija - https://wordpress.org/about/requirements/ . Quote Link to comment Share on other sites More sharing options...
Evija Posted July 31, 2020 Author Report Share Posted July 31, 2020 Izmeta šo: Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /home3/evija/public_html/wp-includes/wp-db.php:1658 Stack trace: #0 /home3/evija/public_html/wp-includes/wp-db.php(631): wpdb->db_connect() #1 /home3/evija/public_html/wp-includes/load.php(426): wpdb->__construct('****', '****', '****', 'localhost') #2 /home3/evija/public_html/wp-settings.php(126): require_wp_db() #3 /home3/evija/public_html/wp-config.php(102): require_once('/home3/evija...') #4 /home3/evija/public_html/wp-load.php(37): require_once('/home3/evija...') #5 /home3/evija/public_html/wp-blog-header.php(13): require_once('/home3/evija...') #6 /home3/evija/public_html/index.php(17): require('/home3/evija...') #7 {main} thrown in /home3/evija/public_html/wp-includes/wp-db.php on line 1658 Quote Link to comment Share on other sites More sharing options...
briedis Posted July 31, 2020 Report Share Posted July 31, 2020 Izskatās, ka mysql extension's nav ieslēgts PHP. Google: "wordpress php enable mysql extension" Piezīme: kad šēro koda fragmentus, dari to uzmanīgi, lai nenopludināti sensitīvu informāciju. Tev tur parole iekļauta... Ja to pašu paroli lieto publiskajā wordpress lapā, iesaku nomainīt. Quote Link to comment Share on other sites More sharing options...
Evija Posted July 31, 2020 Author Report Share Posted July 31, 2020 OK, paldies Quote Link to comment Share on other sites More sharing options...
Evija Posted July 31, 2020 Author Report Share Posted July 31, 2020 Viss strādā! Izdevās! Paldies! Quote Link to comment Share on other sites More sharing options...
briedis Posted August 1, 2020 Report Share Posted August 1, 2020 Forumu labā etiķete prasa, lai arī padalies ar risinājumu, ja nu kāds nonāk pie līdzīgas problēmas, lai zina, kas bija jādara :) Quote Link to comment Share on other sites More sharing options...
Evija Posted August 2, 2020 Author Report Share Posted August 2, 2020 Sorry! CPanel izvēlas Select PHP Version, nomaina PHP versiju uz 7.3 un uzstādījumos ielik iztrūkstošo ķeksi pie mysqli. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.