murph00009
Forum Replies Created
-
Forum: Installing WordPress
In reply to: Auto Upgrade ProblemSomething very strange is happening. I restored the database to before the upgrade and copied all the files for the previous installation and now the webpage is showing this. This is what comes up when I go to the website, where wordpress should instead display.
to be integer, ' . gettype( $quote_style ) . ' given', E_USER_WARNING ); return; } return wp_specialchars_decode( $string, $quote_style ); } } // For PHP < 5.2.0 if ( !function_exists('json_encode') ) { function json_encode( $string ) { global $wp_json; if ( !is_a($wp_json, 'Services_JSON') ) { require_once( 'class-json.php' ); $wp_json = new Services_JSON(); } return $wp_json->encodeUnsafe( $string ); } } if ( !function_exists('json_decode') ) { function json_decode( $string ) { global $wp_json; if ( !is_a($wp_json, 'Services_JSON') ) { require_once( 'class-json.php' ); $wp_json = new Services_JSON(); } return $wp_json->decode( $string ); } } // pathinfo that fills 'filename' without extension like in PHP 5.2+ function pathinfo52($path) { $parts = pathinfo($path); if ( !isset($parts['filename']) ) { $parts['filename'] = substr( $parts['basename'], 0, strrpos($parts['basename'], '.') ); if ( empty($parts['filename']) ) // there's no extension $parts['filename'] = $parts['basename']; } return $parts; } rt_callback( $a, $b ) { // Don't use translated versions of Etc if ( 'Etc' === $a['continent'] && 'Etc' === $b['continent'] ) { // Make the order of these more like the old dropdown if ( 'GMT+' === substr( $a['city'], 0, 4 ) && 'GMT+' === substr( $b['city'], 0, 4 ) ) { return -1 * ( strnatcasecmp( $a['city'], $b['city'] ) ); } if ( 'UTC' === $a['city'] ) { if ( 'GMT+' === substr( $b['city'], 0, 4 ) ) { return 1; } return -1; } if ( 'UTC' === $b['city'] ) { if ( 'GMT+' === substr( $a['city'], 0, 4 ) ) { return -1; } return 1; } return strnatcasecmp( $a['city'], $b['city'] ); } if ( $a['t_continent'] == $b['t_continent'] ) { if ( $a['t_city'] == $b['t_city'] ) { return strnatcasecmp( $a['t_subcity'], $b['t_subcity'] ); } return strnatcasecmp( $a['t_city'], $b['t_city'] ); } else { // Force Etc to the bottom of the list if ( 'Etc' === $a['continent'] ) { return 1; } if ( 'Etc' === $b['continent'] ) { return -1; } return strnatcasecmp( $a['t_continent'], $b['t_continent'] ); } } /** * Gives a nicely formatted list of timezone strings // temporary! Not in final * * @param $selected_zone string Selected Zone * */ function wp_timezone_choice( $selected_zone ) { static $mo_loaded = false; $continents = array( 'Africa', 'America', 'Antarctica', 'Arctic', 'Asia', 'Atlantic', 'Australia', 'Europe', 'Indian', 'Pacific'); // Load translations for continents and cities if ( !$mo_loaded ) { $locale = get_locale(); $mofile = WP_LANG_DIR . '/continents-cities-' . $locale . '.mo'; load_textdomain( 'continents-cities', $mofile ); $mo_loaded = true; } $zonen = array(); foreach ( timezone_identifiers_list() as $zone ) { $zone = explode( '/', $zone ); if ( !in_array( $zone[0], $continents ) ) { continue; } // This determines what gets set and translated - we don't translate Etc/* strings here, they are done later $exists = array( 0 => ( isset( $zone[0] ) && $zone[0] ) ? true : false, 1 => ( isset( $zone[1] ) && $zone[1] ) ? true : false, 2 => ( isset( $zone[2] ) && $zone[2] ) ? true : false ); $exists[3] = ( $exists[0] && 'Etc' !== $zone[0] ) ? true : false; $exists[4] = ( $exists[1] && $exists[3] ) ? true : false; $exists[5] = ( $exists[2] && $exists[3] ) ? true : false; $zonen[] = array( 'continent' => ( $exists[0] ? $zone[0] : '' ), 'city' => ( $exists[1] ? $zone[1] : '' ), 'subcity' => ( $exists[2] ? $zone[2] : '' ), 't_continent' => ( $exists[3] ? translate( str_replace( '_', ' ', $zone[0] ), 'continents-cities' ) : '' ), 't_city' => ( $exists[4] ? translate( str_replace( '_', ' ', $zone[1] ), 'continents-cities' ) : '' ), 't_subcity' => ( $exists[5] ? translate( str_replace( '_', ' ', $zone[2] ), 'continents-cities' ) : '' ) ); } usort( $zonen, '_wp_timezone_choice_usort_callback' ); $structure = array(); if ( empty( $selected_zone ) ) { $structure[] = '' . __( 'Select a city' ) . ''; } foreach ( $zonen as $key => $zone ) { // Build value in an array to join later $value = array( $zone['continent'] ); if ( empty( $zone['city'] ) ) { // It's at the continent level (generally won't happen) $display = $zone['t_continent']; } else { // It's inside a continent group // Continent optgroup if ( !isset( $zonen[$key - 1] ) || $zonen[$key - 1]['continent'] !== $zone['continent'] ) { $label = $zone['t_continent']; $structure[] = 'Forum: Installing WordPress
In reply to: Auto Upgrade Problemworkingroup – I don’t think the versions should be a problem they update those every few months.
neodan – I’m not sure I understand what you mean. If you are talking about the automatic installer that wordpress uses then yes. When I saw that a new version was available I just clicked the upgrade button and was given two options download or do an automatic upgrade and I selected automatic.
Forum: Installing WordPress
In reply to: 2.8 Upgrade – Fatal error: Class ‘WP_Widget’ not foundOk thanks, it turns out all I had to do was copy the files over and everything works fine. I just couldn’t do it before because I was at work and FTP wasn’t working for some reason.
Forum: Installing WordPress
In reply to: 2.8 Upgrade – Fatal error: Class ‘WP_Widget’ not foundI ran the 2.8 auto install and I think it stopped before it completed. Any page I go to now gives me that error.
Forum: Installing WordPress
In reply to: 2.8 Upgrade – Fatal error: Class ‘WP_Widget’ not foundanyone have any ideas?
Forum: Fixing WordPress
In reply to: Page load errorOk, I solved this problem myself, it seems that the Batch Categories .91 plugin was causing this to happen, by deactivating it, I was able to fix it.