Forum Replies Created

Viewing 15 replies - 1 through 15 (of 23 total)
  • I think I have the same issue as ghp1 I am running wordpress 3.1 NextGen Gallery 1.7.4 and I have checked the plugin from the Gallery overview page:

    Check plugin/theme conflict
    No conflict could be detected

    Test image function
    Could create image with 4048 x 3040 pixel

    Check theme compatibility
    Your theme should work fine with NextGEN Gallery

    Everything is all good in the hood!

    PHP Safe Mode : Off
    GD Version : 2.0 or higher

    But it still doesn’t want to upload photos. It says 0 Image(s) successfully added. When I check the server the photos are up there but the website doesn’t display.

    Now I have completed a

    chown [apache]:[apache] /wp-content/gallery/ – command on it which looks like it allows wordpress to create the images although it still comes back with 0 photos successfully added.

    I have also:
    Chmod 777 /wp-content/gallery/

    Which I think is utterly stupid but I’m just doing this to test it out but this doesn’t work either it just gives me the same message.

    Has any one figured this out yet?
    Does /wp-content/ need to be chowned as well?

    solidariti

    (@solidariti)

    PLEASE READ THIS IF YOU ARE LOOKING FOR THE SOLUTION TO THE CLOSED COMMENTS ISSUE.

    For me I checked the slug of the post and noticed that it wasn’t correct, when I changed that. It worked. So just check the slug of the post and also your permalink structure. Sometimes if you use your own and just have: /%postname%/ and you have two postnames the same that can cause some conflicts.

    For my permalinks I use: /%category%/%postname%/%day%/%monthnum%/%year%/

    Hope this helps you.

    Regards
    S

    Thread Starter solidariti

    (@solidariti)

    For some reason it only displays one image I’m using the get_the_ID() at https://propono.co.uk/clients/curo/medical-reimbursement. Why would it display only one image. I’m also echoing get_the_ID() before the image tag as you mentioned.

    Thread Starter solidariti

    (@solidariti)

    Ok so now I have managed to get the content in by dropping the echo content function. But for some reason the images are being pulled in.

    <?php $posts = get_posts(‘category_name=mlinks&numberposts=6&offset=0&order=ASC’); foreach ($posts as $post) : start_wp(); ?>
    <?php static $count1 = 0; if ($count1 == “3”) { break; } else { ?>
    <div class=”linkgroup”><!– FIRST LOOP: display posts 1 thru 3 –>
    <div class=”small-boxes”>
    <div id=”img”><img src=”<?php echo get_post_meta($post->ID, ‘medical’, true); ?>” alt=”slide<?php the_ID(); ?>” width=”84″ height=”55″/></div>
    <div id=”txt”>
    <h5 class=”txt1″>” title=”<?php the_title(); ?>”><?php the_title(); ?></h5>
    <?php the_content(); ?>
    </div>
    </div>
    </div>

    <?php $count1++; } ?>
    <?php endforeach; ?>

    <?php $posts = get_posts(‘category_name=mlinks&numberposts=6&offset=3&order=ASC’); foreach ($posts as $post) : start_wp(); ?>
    <?php static $count2 = 0; if ($count2 == “3”) { break; } else { ?>

    <div class=”linkgroup”><!– FIRST LOOP: display posts 1 thru 3 –>
    <div class=”small-boxes”>
    <div id=”img”><img src=”<?php echo get_post_meta($post->ID, ‘medical’, true); ?>” alt=”slide<?php the_ID(); ?>” width=”84″ height=”55″/></div>
    <div id=”txt”>
    <h5 class=”txt1″>” title=”<?php the_title(); ?>”><?php the_title(); ?></h5>
    <?php the_content(); ?>
    </div>
    </div>
    </div>

    <?php $count2++; } ?>
    <?php endforeach; ?>

    Thread Starter solidariti

    (@solidariti)

    I used this https://bavotasan.com/tutorials/limiting-the-number-of-words-in-your-excerpt-or-content-in-wordpress/.

    But now it isn’t working.

    On my localhost it just display a white page.

    Thread Starter solidariti

    (@solidariti)

    Yes the custom fields are defined:

    name: medical
    value: links/medlink6.jpg

    echo content(30) limits the content to just 30 words using this code from the functions.php:

    function content($limit) {
      $content = explode(' ', get_the_content(), $limit);
      if (count($content)>=$limit) {
        array_pop($content);
        $content = implode(" ",$content).'...';
      } else {
        $content = implode(" ",$content);
      }
      $content = preg_replace('/\[.+\]/','', $content);
      $content = apply_filters('the_content', $content);
      $content = str_replace(']]>', ']]>', $content);
      return $content;
    }

    No yet I’ll take a look.

    Thread Starter solidariti

    (@solidariti)

    thank you alchymyth for your reply, I missed that one, I have fixed that so there is no error.

    The layout is fine and works how I want, as you’ll see now that the you told me about that error.

    But the images and the content does not show up. Do you know how I can get it to show up?

    Thank you.

    Hi Riverwillow,

    The default WordPress doesn’t contain the “uploads” directory inside wp-content directory. You’ll have to create it manually and change its permission to 777.

    That is the only solution, I hope this helps.

    Do you manage to sort this out?

    I don’t think of seen any plugin like that before, I will keep and ear to the ground though. What will you be using it for if you don’t mind me asking Stephanie?

    Jauhari,
    If you post a query, its common/good practice to post up your solution as well and follow up. So you help yourself and help the community.

    Thread Starter solidariti

    (@solidariti)

    Thank you for your reply Travel-Junkie. I have deactivated the NextGEN FlashViewer. While I have left NextGEN Gallery 1.2.0 & WP-SimpleViewer 1.4-beta1.

    But after recreating the gallery and removing the NextGEN FlashViewer folder. For some reason the download link and the font still hasn’t changed. I understand what your saying that it is an encased and compiled .swf file.

    I’m still pulling my hair out over this!

    Thread Starter solidariti

    (@solidariti)

    Hi WebifiedOne,
    I understand your reasoning. I’ve found it the potential downside to having some plugins. Some developers import via a script tag ‘Javascripts’ that need to be run in isolation. But they don’t check or nor do they just import the scripts needed for their plugin on the page that it is only used on!

    So I found out that my Carousel wasn’t working because I was using NexTGen Gallery Plugin (which is a fantasitc gallery plugin I might add) which conflicted with the Prototype.js I was using only one page – for the very reason I mentioned above.

    Steps I went through to troubleshoot:
    1. Turned off all plugins, to see if it worked, if it does then great you now know that its one of the plugins then it’s a case of turning them on one by one and keep refreshing the page to see if it works.
    1. a) If that doesn’t work like I did, then check your source of your page with both the plugins turned on and the plugins turned off and compare them using a compare tool, or just analyse them yourself if you don’t have a MAC (to use the ‘diff’ command in the terminal) or a piece of software named ‘compareIt’
    1. b) Now you have found which javascript is destroying your plugin, now you need to trace to a file by using a sesarch and replace tool in your development environment or via the terminal with ‘grep’ in MAC (without the quote marks)
    1. c) When you have found it now comment them out and refresh your pages and see if it works. Now it may work but it may also crash some other functionality you have. So now you know which one it is and what it effect, you can move on to the next step.
    1. d) Use a conditional statement like if, or while etc to only display that imported javascript on the page that it only needs it. Now if you require them both to work on the same page then that is a different kettle of you fish, if you’re not proficient in Javascript you will need to:
    I. Ask the developer
    II. Get someone to help you
    II. Try to hack it and find out what is causing them not to work, use the Javscript console for this, that is good, or Firebug for Mozilla (An extension that you can find via google)

    2. Now you should have you’re videobox plugin working and your other plugins working.

    Did this help? If you needd any more help post some code, with a link.

    Solidariti

    Can you post the form?

    Thread Starter solidariti

    (@solidariti)

    I still haven’t managed to figure this out does anyone know how to solve this?

Viewing 15 replies - 1 through 15 (of 23 total)