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

    (@photocrati)

    @w.bear: Are you only seeing the issue with missing slashes with reference to the stylesheet?

    And if you apply your CSS within the WordPress admin area at Gallery > Other Options > Styles, is it working for you there?

    Thread Starter w.bear

    (@wbear)

    If I add my own CSS-file under OtherOptions->Styles->own.css it looks like this in the source-code:

    <link rel=’stylesheet’ id=’nggallery-css’ href=’http://localhost/wp-contentngg_stylesown.css?ver=3.6&#8242; type=’text/css’ media=’all’ />

    If i use OtherOptions->Styles->default-styles and add some code it looks like this:
    <link rel=’stylesheet’ id=’nggallery-css’ href=’http://localhost/wp-contentngg_stylesnggallery.css?ver=3.6&#8242; type=’text/css’ media=’all’ />

    Maybe it’s a (local) windows-problem.

    i have the same missing css problem
    <link rel=’stylesheet’ id=’nggallery-css’ href=’http://localhost/wp-contentngg_stylesnggallery.css?ver=3.6&#8242; type=’text/css’ media=’all’ />

    I have exactly the same problem as toad75 above. I just updated to the latest version of NextGen Gallery – 2.0.11.

    The problem only seems to occur on the localhost. When I took the update on the server, I didn’t get the error. However, since I do most of my testing on the localhost, I’d really like to see this fixed.

    Thanks!

    @l0rily i just got email from Mike – plugin developer
    “I’m sorry to hear you’re having issues. We’ll be pushing out a beta on Wednesday with the included fix for your problem.”

    @toad75 Thanks for the update!

    Thread Starter w.bear

    (@wbear)

    Tested Version: NextGEN Gallery 2.0.12 / WP 3.6 / local XAMPP/Win7

    OK – the problem is the PHP-const “DIRECTORY_SEPARATOR”. If i echo DIRECTORY_SEPARATOR in my local xampp-windows-test-environment it shows “\”.

    If i add 2 lines to class.netxgen_style_manager.php:

    var $forward_slash=”; // line 1

    function __construct()
    {
    $this->forward_slash=’/’; // line 2

    and replace all const “DIRECTORY_SEPARATOR” with “$this->forward_slash”

    it works locally under xampp/windows. In this case forward-Slash should work under Windows and Unix.

    @w.bear sorry, Your fix doesn’t work for me
    xampp 1.8.2 win7 nextgen 2.0.11
    <link rel=’stylesheet’ id=’nggallery-css’ href=’http://localhost/Scripts/Wordpress/wp-contentngg_stylesnggallery.css?ver=3.6&#8242; type=’text/css’ media=’all’ />

    Thread Starter w.bear

    (@wbear)

    Sure?
    Please try to simply replace all 12 DIRECTORY_SEPARATOR with ‘/’ or “/”

    This should work…

    Bingo, this fix work.

    Thread Starter w.bear

    (@wbear)

    In my opinion it was correct to use forward-slash “/” for an URL and the PHP-const DIRECTORY_SEPARATOR only for a PATH.

    So DIRECTORY_SEPARATOR is wrong in this place, because http://…/nggallery.css is an URL.

    The problem is also described here: http://www.yiiframework.com/forum/index.php/topic/18012-to-use-directory-separator-or-not-to-use-it/

    Plugin Contributor photocrati

    (@photocrati)

    Hey guys, thank you for providing some workarounds. This does appear to be a local-windows related error for custom css. We want to help out users who are developing locally before publishing to the server. So any bugs or errors you come across, please continue to submit them as a bug report here: http://www.nextgen-gallery.com/report-bug . These bug reports will go directly to our developers to review and hopefully they’ll be able to provide a solution in one of our next updates. 🙂

    -Becky

    Thread Starter w.bear

    (@wbear)

    btw:
    Description for beta 2.0.12 beta:
    WHAT’S FIXED?
    – Custom CSS path: slashes are stripped out for some windows servers

    This error is not resolved in version 2.0.12 beta, because the windows-backslash (php-const DIRECTORY_SEPARATOR) does’nt work in an URL.

    I can confirm what @w.bear wrote, missing slashes problem is not fixed.
    “Backup images” option can’t be turn off. So far i don’t see any difference between 2.0.11 and 2.0.12.

    Agree with You guys problem is not solved and (at least in my case) it isn’t local. I have the exact same problem on my website.

Viewing 15 replies - 1 through 15 (of 26 total)
  • The topic ‘nggallery.css: Slashes are missing’ is closed to new replies.