Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor photocrati

    (@photocrati)

    @jeevaeditor – Please try our external Reset Tool plugin here: https://bitbucket.org/photocrati/nextgen-gallery-reset/get/default.zip

    To install and activate, go to Plugins > Add New … Upload Plugin
    To use, go to Tools > NextGEN Gallery Reset

    We do not offer specific support for the Reset Tool plugin as is but it can help in many circumstances, please let us know if it does.

    Thanks!

    – Cais.

    Thread Starter jeevaeditor

    (@jeevaeditor)

    Hi Cais and thanks so much for your assistance! I deactivated and then reactivated the reset plug-in again and then cleared the cache. Unfortunately, it didn’t work. I looked into the code for the plug-in. Do you see anything in here that might be wrong? Thanks again!

    // This is a temporary function to replace the use of WP’s esc_url which strips spaces away from URLs
    // TODO: Move this to a better place
    if (!function_exists(‘nextgen_esc_url’)) {
    function nextgen_esc_url( $url, $protocols = null, $_context = ‘display’ ) {
    $original_url = $url;

    if ( ” == $url )
    return $url;
    $url = preg_replace(‘|[^a-z0-9 \\-~+_.?#=!&;,/:%@$\|*\'()\\x80-\\xff]|i’, ”, $url);
    $strip = array(‘%0d’, ‘%0a’, ‘%0D’, ‘%0A’);
    $url = _deep_replace($strip, $url);
    $url = str_replace(‘;//’, ‘://’, $url);
    /* If the URL doesn’t appear to contain a scheme, we
    * presume it needs http:// appended (unless a relative
    * link starting with /, # or ? or a php file).

    Plugin Contributor photocrati

    (@photocrati)

    @jeevaeditor – That function has been in the plugin for some time now. We are not aware of any problems it specifically can create since it is a minor variation of the core esc_url() function.

    Which version of the Reset Tool plugin are you using? The current version is 0.4 which does things a bit differently than previous versions. You did not specifically note you re-ran the Reset Tool, only that you deactivated and reactivated it … this does not perform the functions it is designed for.

    Thanks!

    – Cais.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘URL change from production site to staging site breaks the galleries’ is closed to new replies.