Skip to content

emka.web.id

Menu
  • Home
  • Indeks Artikel
  • Tutorial
  • Tentang Kami
Menu

Belajar Wordpress: Masalah wp_get_cache saat Upgrade WordPress 3.1

Posted on June 07, 2012 by Syauqi Wiryahasana
Berkali-kali saya mencoba melakukan upgrading engine wordpress situs ini tapi selalu gagal. Mulai dari rilis beta 3.0.5 sampai rilis 3.1 sekarang. Setelah lama menyelami halaman forum WordPress akhirnya ketemu juga! Masalah yang saya alami adalah error fatal disini: [04-Mar-2011 01:20:00] PHP Fatal error: Call to undefined function wp_cache_get() in /home/emkawebi/public_html/wp-includes/functions.php on line 336 Rupanya salah satu plugin yang saya pake, WP-Hive belum kompatibel dengan rilis 3.1, dan cilakanya sang pengembang belum mengupdate sampai sekarang. Alhasil saya harus utak-atik source plugin itu, sampai pada akhirnya terilhami oleh sebuah diskusi di forum WordPress, maka saya mengedit: 1. file db.php di /wp-content dan ganti dengan: [sourcecode language="php"] if ( ! defined('ABSPATH') ) die("Hmmm..."); //require_once( ABSPATH . WPINC . '/wp-db.php' ); if ( ! defined( 'WP_PLUGIN_DIR' ) ) define( 'WP_PLUGIN_DIR', WP_CONTENT_DIR . '/plugins' ); global $wpdb; if ( !isset( $wpdb ) ) $wpdb = new wpdb( DB_USER, DB_PASSWORD, DB_NAME, DB_HOST ); if ( file_exists(WP_PLUGIN_DIR . '/wp-hive/do-prefix.php')) require_once( WP_PLUGIN_DIR . '/wp-hive/do-prefix.php'); [/sourcecode] 2. file do-prefix di /wp-content/plugins/wp-hive/ dan pasifkan baris: [sourcecode language="php"] //wphive_force_plugin_active(); // Check if this is a fresh install and fix Siteurl for proper redirect //wphive_siteurl_for_install($wphive->current_site->path, $table_prefix, $orig_hostname, $wphive->current_site->host); [/sourcecode] Simpan perubahan dari 2 file diatas, dan situs kembali up!
Seedbacklink

Recent Posts

TENTANG EMKA.WEB>ID

EMKA.WEB.ID adalah blog seputar teknologi informasi, edukasi dan ke-NU-an yang hadir sejak tahun 2011. Kontak: kontak@emka.web.id.

©2024 emka.web.id Proudly powered by wpStatically