WordPress.org

Forums

Easy FancyBox
[resolved] error parsing $version (9 posts)

  1. Wil
    Member
    Posted 3 years ago #

    I'm getting the folowing error in my log file from the easy fancybox plugin:

    PHP Warning: include(/home/sites/<mypath>/public_html/wp-content/plugins/easy-fancybox/fancybox/jquery.fancybox-.css) [function.include]: failed to open stream: No such file or directory in /home/sites/<my-path>/public_html/wp-content/plugins/easy-fancybox/easy-fancybox.css.php on line 27, referer: http://www.<my-url>/wp-content/plugins/easy-fancybox/easy-fancybox.css.php

    Seems that the $version var on line 26 is not being pulled out of the regex matching and is ending up empty.

    Using version 1.3.4.9 of the plugin.

    Wil.

    http://wordpress.org/extend/plugins/easy-fancybox/

  2. RavanH
    Member
    Plugin Author

    Posted 3 years ago #

    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...

  3. Wil
    Member
    Posted 3 years ago #

    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.

  4. RavanH
    Member
    Plugin Author

    Posted 3 years ago #

    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.

  5. Wil
    Member
    Posted 3 years ago #

    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.

  6. RavanH
    Member
    Plugin Author

    Posted 3 years ago #

    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...

  7. Wil
    Member
    Posted 3 years ago #

    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.

  8. RavanH
    Member
    Plugin Author

    Posted 3 years ago #

    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.

  9. Wil
    Member
    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic