Forum Replies Created

Viewing 14 replies - 1 through 14 (of 14 total)
  • Thread Starter anve

    (@anve)

    Seems that I hadn’t configured the default tax correctly. The existing template now works but I find it confusing. At some entries the VAT is included and at others not. In my mind the VAT should be shown as one of the last points and should make sense if you calculate everything manually. E.g.

    Sum 156
    Shipping 10
    VAT 33
    Total 200

    Thread Starter anve

    (@anve)

    Seems that I hadn’t configured the default tax correctly. Nevertheless one had to make a separate template to get something like this:

    Total (excl. VAT) 156
    Shipping 10
    VAT 33
    Total (incl. VAT) 200

    This should work out of the box in my mind.

    Thread Starter anve

    (@anve)

    Thanks to this post I found a temporary solution. In add-meta-tags.php (wp-content/plugins/add-meta-tags) I added:

    elseif ( $def_key == 'auto_description' || $def_key == 'auto_keywords' ) {
    				if( !isset($_POST[$def_key]) ){
    					$add_meta_tags_opts[$def_key] = 0;
    				}
    			}

    So starting at line 177 it looks like the following:

    if (isset($_POST['info_update'])) {
    
            // Update settings
    
            $add_meta_tags_opts = array();
    
            foreach ($default_options as $def_key => $def_value) {
    
                // **Always** use the <code></code>settings_version<code></code> from the defaults
                if ($def_key == 'settings_version') {
                    $add_meta_tags_opts['settings_version'] = $def_value;
                }
    
                // Add options from the POST request (saved by the user)
                elseif ( array_key_exists($def_key, $_POST) ) {
                    $add_meta_tags_opts[$def_key] = $_POST[$def_key];
                }
    			// here is my fix
    			elseif ( $def_key == 'auto_description' || $def_key == 'auto_keywords' ) {
    				if( !isset($_POST[$def_key]) ){
    					$add_meta_tags_opts[$def_key] = 0;
    				}
    			}
    
                // If missing (eg checkboxes), use the default value
                else {
                    $add_meta_tags_opts[$def_key] = $def_value;
                }
            }
    
            // Finally update the Add-Meta-Tags options.
            update_option("add_meta_tags_opts", $add_meta_tags_opts);
    
            //var_dump($_POST);
            //var_dump($add_meta_tags_opts);
    
            amt_show_info_msg(__('Add-Meta-Tags options saved', 'add-meta-tags'));
    
        }

    $default_options

    Array
    (
        [settings_version] => 2
        [site_description] =>
        [site_keywords] =>
        [global_keywords] =>
        [site_wide_meta] =>
        [auto_description] => 1
        [auto_keywords] => 1
        [auto_opengraph] => 0
        [auto_dublincore] => 0
        [noodp_description] => 0
        [noindex_search_results] => 1
        [noindex_date_archives] => 0
        [noindex_category_archives] => 0
        [noindex_tag_archives] => 0
        [noindex_author_archives] => 0
        [copyright_url] =>
        [default_image_url] =>
        [i_have_donated] => 0
    )

    Thread Starter anve

    (@anve)

    Thanks for your suggestion. Currently I delete unused pictures from the website/media gallery and readd it if some files are used (and needed in the media gallery).

    Thread Starter anve

    (@anve)

    The path is the same and correct. But somehow some files are missing. Assumption: Old database backup was used and in the meantime some files were added …

    So there is no plugin available?

    Thread Starter anve

    (@anve)

    So I’ll talk to my hosting provider, but I think that is the problem. Normally, the images should be in the media gallery.

    Thread Starter anve

    (@anve)

    OK, I put it in the wrong words. I mean that the allowed web space size was reached. Because it is a hosted webspace I cannot say if the webserver has enough drive space or not.

    I’ll upgrade the webspace soon. Nevertheless, I want to know why the files cannot be found in the media library.

    So recovering the MySQL database or missing disk space on the webserver itself could be the reason (= hosting problems). Are there any other possibilities?

    What possibilities do I have to index the files again on the webserver into the media library?

    Thread Starter anve

    (@anve)

    What do you mean with your second question? The webspace is currently about 101 MB (allowed are 100 MB).

    Thread Starter anve

    (@anve)

    Thanks it worked!

    Also for me the JS redirect do not work. The form is sent but no redirection takes place. I only get “#wpcf7-f334-p14-o1” in my URL. I’m using Contact Form 3.1.2 and WP 3.3.2

    Edit:

    For me wp_footer was missing in footer.php. Now AJAX is working correctly.

    Thread Starter anve

    (@anve)

    Thanks Fire Truck. In the meantime I came up with the same function you wrote but thanks for posting it anyway!

    Thread Starter anve

    (@anve)

    Thank you very much mikeg9999!

    Thread Starter anve

    (@anve)

    And this error only occurs on the start page.

    Thread Starter anve

    (@anve)

    This is my menu

    wp_nav_menu(array('menu' => 'Navigation', 'theme_location' => 'Navigation'));

    The problem is that all menu items doesn’t have a link name. Not only the deleted article. In fact the article has nothing to do with the menu. The article is only displayed on the start page.

    I looked in the nav-menu-template.php. After this code

    $items .= walk_nav_menu_tree( $sorted_menu_items, $args->depth, $args );

    the link name is missing. This is my args array:

    stdClass Object
    (
        [menu] => Navigation
        [container] => div
        [container_class] => nav left
        [container_id] =>
        [menu_class] => mm
        [menu_id] => mm
        [echo] => 1
        [fallback_cb] => wp_page_menu
        [before] =>
        [after] =>
        [link_before] =>
        [link_after] =>
        [items_wrap] => 
    
        %3$s
    
        [depth] => 0
        [walker] =>
        [theme_location] => Navigation
    )

    I figured out that it only concerns the last posted article in the news category. Only if the last one is set to private or deleted than the effect with the destroyed menu occurs.

Viewing 14 replies - 1 through 14 (of 14 total)