• Hey

    yesterday I tried to upload some images to my wordpress site. first I thought that it worked fine – but then I say that I can’t open the big pictures on the page where I posted the gallery. I can only see the thumbnails but when I try to click on them there is a dialoge saying: This image failed to load. After that I realized that I also can’t open a single picture in the backend of the nextgen plugin. The error message appeared: HTTP Error 500.50 – URL Rewrite Module Error.

    Can anyone help me? two weeks ago the upload worked fine. all the other galleries also work but when I try to add new pictures I get this error messages. I’ve already search quite similar problems and found out that it can be a permission problem. however I didn’t change any server settings and I also didn’t updated the plugin. is it a plugin or a server problem?

    NextGen version: 1.9.12
    Wordpress: 3.5.1

    http://wordpress.org/plugins/nextgen-gallery/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Try re-installing 1.9.12 over itself. Don’t uninstall.

    You can find older versions here :

    http://wordpress.org/plugins/nextgen-gallery/download/

    Good luck.

    Thread Starter Zaidy89

    (@zaidy89)

    finally found a solution. it’s a permission error caused by the windows server when using the method move_uploaded_file. the problem also exists when I use the standard wordpress image upload.
    simply exchange the method by using the method copy.

    for example:
    wp-admin/include/file.php
    //if ( false === @ move_uploaded_file( $file[‘tmp_name’], $new_file ) )
    if ( false === @ copy( $file[‘tmp_name’], $new_file ) )

    do the same in the nextgen plugin and everything will work fine. the bad thing is that you have to replace it everytime you update wordpress or the plugin

    @zaidy89

    Sorry but that code breaks the admin backend. Doesn’t work.

    Thread Starter Zaidy89

    (@zaidy89)

    really? for me it works! the following code is now in my file.php

    // Move the file to the uploads dir
    $new_file = $uploads[‘path’] . “/$filename”;
    //if ( false === @ move_uploaded_file( $file[‘tmp_name’], $new_file ) )
    if ( false === @ copy( $file[‘tmp_name’], $new_file ) )
    return $upload_error_handler( $file, sprintf( __(‘The uploaded file could not be moved to %s.’ ), $uploads[‘path’] ) );

    @zaidy89

    I re-tried using your entire if statement and commenting out the original.

    Now the back end doesn’t break, but files don’t get uploaded either.

    Plugin Contributor photocrati

    (@photocrati)

    @zaidy89 – Thank you for providing that solution. Does that solution still work in v3.6 of WordPress? I see that you’re specifically running NextGEN v1.9.12, any reason why you’re not running v1.9.13 or v2.0.11?
    @doublesixx – What permalinks are you using? Most upload issues we have found are resolved by resetting permalinks (i.e. reset to ‘Post Name’ under Settings >> Permalinks). Also, which version of WordPress & NextGEN are you running?

    -Becky

    Thread Starter Zaidy89

    (@zaidy89)

    @doublesixx that’s the code for the file.php, it’s not the code for the nextgen files. you can find the move_uploaded_file method in the following file for the nextgen gallery
    /wp-content/plugins/nextgen-gallery/admin/functions.php (2 x)

    @photocrati unfortunately it’s not really a good solution 😉 I have some other problems with my webspace and so I can’t update my current wordpress version to 3.6. the service team of my provider is checking the problem. but the main issues is that the site is running on a windows server. I read that v 2.0.x is only provided for 3.6. and in the backend there is no update shown for the version 1.9.13.
    when I’m able to update the wordpress to 3.6 (hopefully next week) I can tell you I the problem still exists. however the service guy told me that it’s a windows server and PHP problem with this specific method. therefore I think that a update won’t bring a solution.

    @zaidy89

    Yes I changed the file.php.

    Becky’s solution worked for me, changing the permalinks.

    Although at the moment I my header slideshow isn’t working =(.

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

The topic ‘NextGEN Gallery – This image failed to load’ is closed to new replies.