Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi, just to add a bit of weight to your post Sven, I’m having exactly the same issue by the sound of it.

    I can create the Gallery, choose the files to upload and set it away (note I always resize images first so no images are larger than 1mb), each one does the upload however shows a warning triangle at the end.

    Once the batch has finished I get the same error “An unexpected error occured. This is most likely due to a server misconfiguration.”

    The odd thing is this, if I go to do it again, the gallery I have created is not in the drop down list at the top of the add image gallery dropdown. However, if I navigate away to the Manage Gallery section I notice that it has created a gallery of the same name for each image that failed to upload, each with one image in. However clicking in to any of these galleries I just see the image cannot be displayed thumb instead of the image.

    For example, if I attempt to upload 12 images to a gallery called Gallery 1, the process will fail but I will have created 12 Gallery 1 galleries all with one missing image in it. Make sense?

    I am running the latest version of the Gallery and WordPress. I do already have many galleries that still work – so I guess the plug in is still working for the viewer.

    Hope this ramble helps troubleshoot!

    Mic

    Thread Starter r_chee

    (@r_chee)

    After my 3rd day of debugging I’ve got it. And it wasn’t what I expected – but then again I am still but a novice. One piece of code was wrong.

    JQuery was fine, in fact everything was except the <body> opening tag in my theme.

    Once I changed it to <body <?php body_class(); ?>> it all worked fine.

    Not sure why that would be but there you go. Thought I’d paste the result on the off chance it helps someone else!

    Thanks for your input thefieldset.

    Thread Starter r_chee

    (@r_chee)

    Hi, thanks for you reply.

    Yes I have enabled the WooCommerce stylesheet, and on a default wordpress supplied theme it works, just switching to my theme breaks it.

    As far as I can tell I have no other mentions to jQuery on my page, it is simply called in my Functions.php, indeed adding a little script to test jQuery shows me that it works – and yet WooCommerce still just shows all the products in one long vertical list.

    I’m afraid the installation is on an offline test environment so I can’t show a link to the site. However, the code I am using in my Functions.php to enqueue jQuery is

    if ( !is_admin() ) {
          wp_deregister_script('jquery');
          wp_register_script('jquery', ("http://ajax.googleapis.com/libs/jquery/1.10.2/jquery.min.js"), false, '1.10.2');
          wp_enqueue_script('jquery');
    }

    And thats it, no mention of it my header, and according to posts have read as long as jQuery is not conflicting it should work….. what am I missing?

    Thread Starter r_chee

    (@r_chee)

    OK, have done. Thanks Esmi

    Thread Starter r_chee

    (@r_chee)

    Sorted. Thank you so much for your advice Marvel Labs. Using what you gave me for inspiration and an evening of reading and tweaking we have it!

    The code I finished with in case anyone else is struggling like i was (nothing worse than a forum cry for help that matches your problem with just a thank you and no details to copy from! 😀 ) is below. I’m very sure holes can easily be punched in it, but it works.

    Thanks again.

    R

    <h2 class="side-title">Pick of the day</h2>
    
    <?php $posts = get_posts('category=33&numberposts=3'); ?>
    <?php if( $posts ) : ?>
    <?php foreach( $posts as $post ) : setup_postdata( $post ); ?>
    	<div class="latest-post">
    		<div class="recent-thumb"><img src="<?php echo get_post_meta($post->ID, 'thumb_med', true); ?>" /></div>
    
    				<div class="sidebar-post">
    					<p class="side-cat"><?php the_date(); ?></p>
    					<h5 class="side-name"><?php the_title(); ?></h5>
    				</div>
    		</div>
    <?php endforeach; ?>
    <?php endif; ?>
    <?php wp_reset_query(); ?>
    Thread Starter r_chee

    (@r_chee)

    Oooh, close – thank you.

    When I first used your code i got nothing but a blank screen, but after a little fiddling it almost works. It now shows the latest post in that category, but only 1 despite asking for 3.

    Would you mind just quickly casting your eye over what I have done and see if you can see where the error is – just thinking, do I need an array for the query if I want posts_per_page and the category?

    Do I also need to reset the query or is that done automatically as I have specified posts per page as 3?

    Thanks.

    <h2 class="side-title">Pick of the day</h2>
    
    <?php
    $query = 'posts_per_page=3'.'&cat=pickoftheday';
    $queryObject = new WP_Query($query);
    if ($queryObject->have_posts()) {
    	$queryObject->the_post();
    }
    ?>
    		<div class="latest-post">
    		<div class="recent-thumb"><img src="<?php echo get_post_meta($post->ID, 'thumb_med', true); ?>" /></div>
    		<div class="sidebar-post">
    				<p class="side-cat"><?php the_date(); ?></p>
    				<h5 class="side-name"><?php the_title(); ?></h5>
    		</div>
    		</div>
    Thread Starter r_chee

    (@r_chee)

    Thanks for the quick reply but please excuse my next question…

    I do the above code once on the left of the page to call up 3 post headings and thumbnails, once down the right to call up 5 posts, and several other times throughout the static homepage to show just one. All from different categories.

    If I did what I think you are suggesting wouldn’t that dictate how many posts were shown in each list – so I couldn’t have different amounts in each list?

    Again, forgive me if I’ve mis-understood your advice.

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