• Resolved aemars

    (@aemars)


    Hello,

    Today I received two error messages on my site and I’m not sure what caused them or how to fix them. I also haven’t made any site changes other than uploading a new post in the past several days. I’m very new at html. Any help is much appreciated.

    The errors on my site are as follows:

    Warning: Missing argument 2 for _x(), called in /home6/aimeema2/public_html/wp-content/themes/mytheme/functions.php on line 56 and defined in /home6/aimeema2/public_html/wp-includes/l10n.php on line 263

    Warning: Cannot modify header information – headers already sent by (output started at /home6/aimeema2/public_html/wp-includes/l10n.php:263) in /home6/aimeema2/public_html/wp-includes/pluggable.php on line 1228

    Some pages on the site work and some do not.

    Thanks!

    Aimee

Viewing 1 replies (of 1 total)
  • Thread Starter aemars

    (@aemars)

    Ah, a few more tries and I figured out the problem.

    This was the previous htm:
    ion add_custom_taxonomies() {
    register_taxonomy(‘recipe’, ‘post’, array(
    ‘hierarchical’ => true,
    ‘labels’ => array(
    ‘name’ => _x( ‘Recipe’, ‘taxonomy general name’ ),
    ‘singular_name’ => _x( ‘taxonomy singular name’ ),
    ‘search_items’ => __( ‘Search Recipes’ ),
    ‘all_items’ => __( ‘All Recipes’ ),
    ‘parent_item’ => __( ‘Parent Recipe’ ),
    ‘parent_item_colon’ => __( ‘Parent Recipe:’ ),
    ‘edit_item’ => __( ‘Edit Recipe’ ),
    ‘update_item’ => __( ‘Update Recipe’ ),
    ‘add_new_item’ => __( ‘Add New Recipe’ ),
    ‘new_item_name’ => __( ‘New Recipe Name’ ),
    ‘menu_name’ => __( ‘Recipes’ ),
    ),

    ‘rewrite’ => array(
    ‘slug’ => ‘recipes’,
    ‘with_front’ => false,
    ‘hierarchical’ => true
    ),
    ));

    and this is the new and proper html:
    ion add_custom_taxonomies() {
    register_taxonomy(‘recipe’, ‘post’, array(
    ‘hierarchical’ => true,
    ‘labels’ => array(
    ‘name’ => _x( ‘Recipe’, ‘taxonomy general name’ ),
    ‘singular_name’ => _( ‘taxonomy singular name’ ),
    ‘search_items’ => __( ‘Search Recipes’ ),
    ‘all_items’ => __( ‘All Recipes’ ),
    ‘parent_item’ => __( ‘Parent Recipe’ ),
    ‘parent_item_colon’ => __( ‘Parent Recipe:’ ),
    ‘edit_item’ => __( ‘Edit Recipe’ ),
    ‘update_item’ => __( ‘Update Recipe’ ),
    ‘add_new_item’ => __( ‘Add New Recipe’ ),
    ‘new_item_name’ => __( ‘New Recipe Name’ ),
    ‘menu_name’ => __( ‘Recipes’ ),
    ),

    ‘rewrite’ => array(
    ‘slug’ => ‘recipes’,
    ‘with_front’ => false,
    ‘hierarchical’ => true
    ),
    ));

    Hope this helps someone who might encounter the same problem!

Viewing 1 replies (of 1 total)

The topic ‘Multiple Error Messages: Missing argument 2 for _x() and Cannot modify header in’ is closed to new replies.