WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: easy-fancybox] error parsing $version

[Resolved] [Plugin: easy-fancybox] error parsing $version

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author RavanH

    @ravanh

    If you look at your page source code, does the linked stylesheet have a version number?

    I’d be helpful if you had a link for me…

    Wil

    @gravitationalfx

    Hi RivanH,

    Thanks for responding.

    Yes it does, here’s the source

    <link rel='stylesheet' id='easy-fancybox.css-css' href='http://www.gravitationalfx.com/wp-content/plugins/easy-fancybox/easy-fancybox.css.php?ver=1.3.4' type='text/css' media='screen' />

    Wil.

    Plugin Author RavanH

    @ravanh

    So… I see no problem. Following http://www.gravitationalfx.com/wp-content/plugins/easy-fancybox/easy-fancybox.css.php?ver=1.3.4 the stylesheet loads just fine.

    Wil

    @gravitationalfx

    It’s the
    ./fancybox/jquery.fancybox-1.3.4.css

    on line 27 of easy-fancybox.css.php that’s not being included.
    $version on line 26 is returning an empty variable.

    Wil.

    Plugin Author RavanH

    @ravanh

    But that’s just it: the stylesheet IS being included or else http://www.gravitationalfx.com/wp-content/plugins/easy-fancybox/easy-fancybox.css.php?ver=1.3.4 would be empty.

    I cannot explain that error in your log file but it sounds to me like something or someone is accessing the url without the ?ver=1.3.4 query directly, causing the $version variable to remain empty.

    Check the access log to find out who/what is calling the URL without the var parameter because without it (or with a different value) the stylesheet will not be includd and that warning will indeed appear in your log file…

    Wil

    @gravitationalfx

    There is another error that appears after the one I mentioned above. Here are both errors.

    [Fri Sep 09 08:06:40 2011] [error] [client 62.24.181.135] PHP Warning: include(/home/sites/<my-home>/public_html/wp-content/plugins/easy-fancybox/fancybox/jquery.fancybox-.css) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in /home/sites/<my-home>/public_html/wp-content/plugins/easy-fancybox/easy-fancybox.css.php on line 27, referer: http://www.gravitationalfx.com/wp-content/plugins/easy-fancybox/easy-fancybox.css.php

    [Fri Sep 09 08:06:40 2011] [error] [client 62.24.181.135] PHP Warning: include() [<a href='function.include'>function.include</a>]: Failed opening '/home/sites/<my-home>/public_html/wp-content/plugins/easy-fancybox/fancybox/jquery.fancybox-.css' for inclusion (include_path='.:/usr/share/pear5') in /home/sites/<my-home>/public_html/wp-content/plugins/easy-fancybox/easy-fancybox.css.php on line 27, referer: http://www.gravitationalfx.com/wp-content/plugins/easy-fancybox/easy-fancybox.css.php

    I appreciate you having a look. I’ll try to find out any further errors.

    Cheerz,
    Wil.

    Plugin Author RavanH

    @ravanh

    Again, someone or something tried calling easy-fancybox.css.php directly without the ?ver=1.3.4 appended as it normally would in your page source header. Leaving out the ver parameter will cause the PHP warning message and the query will return an empty response.

    There is no need to worry. No harm is done as long as your website source has that ?ver=1.3.4 in the URL. This is the case on your site:

    <link rel='stylesheet' id='easy-fancybox.css-css' href='http://www.gravitationalfx.com/wp-content/plugins/easy-fancybox/easy-fancybox.css.php?ver=1.3.4' type='text/css' media='screen' />

    … so all should be working correctly 🙂

    Let me know if it doesn’t.

    Wil

    @gravitationalfx

    Great stuff.

    The Fancybox is working so I’m happy to resolve on that.

    Cheers for investigating.

    That’s why I enjoy using WP as the CMS for my projects – the community is so responsive.

    Wil.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Resolved] [Plugin: easy-fancybox] error parsing $version’ is closed to new replies.