Fatal memory error after posting with Google New Sitemap enabled
-
We’re currently using version 1.0.9 of the Google News Sitemap plugin with WordPress 3.9.2.
On publishing any new post, we get the following fatal memory error:
"Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 79 bytes) in /var/www/ourwebsite.com/wp-includes/wp-db.php on line 1548"
We looked at a stack trace of the error and saw references back to the Google News Sitemap plugin. Following is a recent stack trace, along with some comments of what each PHP line of code involved in the error does (note the references to ‘plugins/google-news-sitemap/apgnsm.php’:
in get_object_vars called at /var/www/ourwebsite.com/wp-includes/wp-db.php (1548) // error retrieving result from MySQL ( $new_array[] = get_object_vars( $row ); // ...column name-keyed row arrays ) in wpdb::get_results called at /var/www/ourwebsite.com/wp-includes/meta.php (559) // error retrieving result from MySQL "meta" data ( "SELECT $column, meta_key, meta_value FROM $table..." ) --> (571) same error, but generated from array when placing meta data ( $cache[$mpid][$mkey] = array(); ) in update_meta_cache called at /var/www/ourwebsite.com/wp-includes/meta.php (285) // error updating meta cache ( $meta_cache = update_meta_cache( $meta_type, array( $object_id ) ); ) in get_metadata called at /var/www/ourwebsite.com/wp-includes/post.php (1793) // error retrieving post meta data ( return get_metadata('post', $post_id, $key, $single); ) … at /var/www/ourwebsite.com/wp-content/plugins/google-news-sitemap/apgnsm.php (200) // error retrieving post meta data ( $is_external_url = (get_post_meta($post->ID, "colspun_external_article_url", true) != ""); ) … at /var/www/ourwebsite.com/wp-content/plugins/google-news-sitemap/apgnsm.php (115) // error generating sitemap ??? ( wp_clear_scheduled_hook(apgnsm_generate_sitemap()); ) in apgnsm_autobuild called at ? (?) …call_user_func_array called at /var/www/ourwebsite.com/wp-includes/plugin.php (406) // error on internal function ( call_user_func_array($the_['function'], array_slice($args, 0, (int) $the_['accepted_args'])); ) in do_action called at /var/www/ourwebsite.com/wp-includes/post.php (3273) // setting new post status ( do_action("{$new_status}_{$post->post_type}", $post->ID, $post); ) …transition_post_status called at /var/www/ourwebsite.com/wp-includes/post.php (2939) // same as above ( wp_transition_post_status($data['post_status'], $previous_status, $post); ) in wp_insert_post called at /var/www/ourwebsite.com/wp-includes/post.php (3003) // inserting post ( return wp_insert_post( $postarr, $wp_error ); ) in wp_update_post called at /var/www/ourwebsite.com/wp-admin/includes/post.php (257) // updating post ( wp_update_post( $post_data ); ) in edit_post called at /var/www/ourwebsite.com/wp-admin/post.php (205) // editing post ( $post_id = edit_post(); )
If we disable the Google News Sitemap plugin, the issue stops completely and we get no errors.
Can you please look into this for us and let us know if there’s a fix available?
Thanks!
- The topic ‘Fatal memory error after posting with Google New Sitemap enabled’ is closed to new replies.