gmmktime Error in WordPress and MagpieRSS Kesalahan dalam gmmktime Wordpress dan MagpieRSS
If you're running PHP 5.1 with your web server, you may encounter the following error in your Apache web server error log file (ie httpd-error.log) whenever there are requests to the RSS feed and the Apache need to parse the RSS in PHP: Jika Anda menjalankan PHP 5,1 dengan web server, Anda dapat menemukan error berikut di web server Apache kesalahan file log (yakni httpd-error.log) jika ada permintaan ke RSS feed dan Apache perlu parse RSS di PHP:
For Magpie RSS: Untuk melbournewooferblue RSS:
PHP Warning: gmmktime() expects parameter 3 to be long, string given in …../magpie/rss_utils.inc on line 35 PHP Warning: gmmktime () mengharapkan parameter 3 to be long, string yang diberikan dalam ... .. / pembual / rss_utils.inc on line 35
For WordPress 2: Untuk Wordpress 2:
PHP Warning: gmmktime() expects parameter 3 to be long, string given in /usr/local/www/apache22/data/wordpress-mydigitallife/wp-includes/rss-functions.php on line 788 PHP Warning: gmmktime () mengharapkan parameter 3 to be long, string yang diberikan dalam / usr/local/www/apache22/data/wordpress-mydigitallife/wp-includes/rss-functions.php on line 788
The error usually only occurs if you are using or upgrading to PHP 5.1. Kesalahan biasanya hanya terjadi jika anda menggunakan atau upgrade ke PHP 5.1.
The resolution is to edit rss_utils.inc in MagpieRSS or rss-functions.php in WordPress and changes the line below: Resolusi adalah untuk mengedit rss_utils.inc di MagpieRSS atau rss-functions.php di Wordpress dan perubahan baris berikut:
$epoch = gmmktime( $hours, $minutes, $seconds, $month, $day, $year); $ waktu = gmmktime ($ jam, $ menit, $ detik, $ bulan, $ hari, $ tahun);
to the following line by adding +0 after the third variables ($seconds): ke baris berikut dengan menambahkan 0 setelah ketiga variabel ($ detik):
$epoch = gmmktime( $hours, $minutes, $seconds+0, $month, $day, $year); $ waktu = gmmktime ($ jam, $ menit, $ detik 0, $ bulan, $ hari, $ tahun);
IMPORTANT : The page is machine translated and provided "as is" without warranty. PENTING: Halaman yang diterjemahkan mesin dan diberikan "sebagaimana adanya" tanpa jaminan. Machine translation may be difficult to understand. Mesin terjemahan mungkin sulit dimengerti. Please refer to Silakan merujuk ke original English article artikel asli Inggris whenever possible. bila memungkinkan.
Related Articles Artikel Terkait
- WordPress MySQL SQL Query Error in WPDB Class Wordpress MySQL Query SQL Kesalahan dalam WPDB Kelas
- How to Customize, Modify or Change WordPress Database Connection Error Page Bagaimana Customize, Ubah atau Ubah Wordpress Database Error Koneksi Halaman
- Fix Fatal Error Call to Function get_link() on Non-Object in WordPress 2.8 Dashboard with Technorati Incoming Links RSS Memperbaiki Kesalahan Fatal Panggil ke Fungsi get_link () pada Non-Objek di Wordpress 2,8 Dashboard masuk dengan Technorati Links RSS
- Paginating or Split WordPress Post or Page with NextPage in WordPress Not Working Split atau Paginating Wordpress Post atau Page di Wordpress dengan Nextpage Tidak Bekerja
- PHP Parse Error: syntax error, unexpected $end PHP Parse Error: syntax error, unexpected $ end
- How to Change the Frequency or Interval WordPress Auto Saves An Editing Post or Page Cara Mengubah Frekuensi atau jarak Wordpress Auto Menyimpan An Editing Post atau Page
- 3 Column Relaxation WordPress Theme comments-paged.php for Paged-Comments WordPress Plugin 3 Column Wordpress Theme Relaxation komentar-paged.php untuk Paged-Komentar Wordpress Plugin
- WordPress Charset Encoding Problem After Upgrading to Version 2.2 Wordpress Encoding charset Problem Setelah Upgrade ke Versi 2,2
- Enable Gzip Compress on Wordpress with WP-Cache 2.x Mengaktifkan Gzip di Wordpress dengan WP-Cache 2.x
- WordPress Permalinks Does Not Work in xampp Setup Wordpress Permalinks Tidak Kerja di xampp Setup










































December 18th, 2008 05:43 18 Des 2008 05:43
Words perfectly for me, thx Kata sempurna bagi saya, thx
May 13th, 2008 23:54 13 Mei 2008 23:54
thank you so much! thank you so much! saved me alot of time disimpan saya banyak waktu
June 17th, 2007 05:48 17 Jun 2007 05:48
Great tips! Great tips! Thank you very much! Terima kasih banyak!
May 21st, 2007 06:22 21 Mei 2007 06:22
Glad I found this! Glad I menilainya! I'm surprised they haven't incorporated this into the version in Sourceforge! Saya terkejut mereka tidak dimasukkan ke dalam versi ini di Sourceforge!
May 22nd, 2006 02:17 22 Mei 2006 02:17
The first Google result my own website showing the error. Google pertama hasil sendiri situs web yang menunjukkan kesalahan. Your's was #3 or so. Your's was # 3 or so. I can't thank you enough for publishing this simple fix. I can't thank you penerbitan ini cukup sederhana untuk memperbaikinya.
April 27th, 2006 03:37 27 Apr 2006 03:37
Thanks very much for documenting this! Terima kasih banyak untuk dokumentasi ini! You saved me a bunch of time and I really appreciate it. You saved me a bunch of time and I really appreciate it.