Forums

[resolved] Easy Fancybox stopped working (27 posts)

  1. indioystillo
    Member
    Posted 3 months ago #

    I have Easy Fancybox installed on my wordpress site for awhile and its working fine.

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

    Then, today, i have added a new plugin and activated it. Everything seems to work fine, until i made a new post and suddenly I can't set a Featured Image for that post. I researched all the way on Google and found an article that tolds me to deactive all my plugins and activate them one by one to see what's conflicting and whatsoever.

    So i did deactivate all my plugins and re-activate them one by one. Still didn't find any luck. But then, i noticed after i re-activate all my plugin back. It happens that i notice Easy Fancybox is not working on my site anymore, it was activated back fine. So what's is the problem here? I also remove the new plugin i installed and still Easy Fancybox is not working.

    Can someone tell me why please? thanks.

  2. RavanH
    Member
    Posted 3 months ago #

    Do you have a link to your site?

  3. indioystillo
    Member
    Posted 3 months ago #

  4. RavanH
    Member
    Posted 3 months ago #

    The dynamic stylesheet http://www.animetomb.com/wp-content/plugins/easy-fancybox/easy-fancybox.css.php?ver=1.3.4 that is needed by FancyBox is unavailable (it returns a 404)

    Are you running one of the security plugins that locks direct access to the plugins subfolder?

    If not, please check if the files /wp-content/plugins/easy-fancybox/easy-fancybox.css.php and /wp-content/plugins/easy-fancybox/fancybox/jquery.fancybox-1.3.4.css are in place. And if access rules are normal (644 for files, 755 for folders)

    EDIT: other thing I notice is that your site has two DOCTYPE declarations at the top... although this is not the cause of your problem, it might cause some unexpected results across different browsers.

  5. indioystillo
    Member
    Posted 3 months ago #

    Ok, first, i checked the files and they are in the right permission access rules.

    second, i went on to check ( easy-fancybox/easy-fancybox.css.php )
    its seems the plugin is (inactive), instead of suppose to be (active) right? i wonder why, but i don't know if that's the case of not making it work.

    thirdly, i have this written on the file,

    include( './fancybox/jquery.fancybox-' . htmlspecialchars( $version , ENT_QUOTES) . '.css' );

    and so i tried to change it to

    include( dirname(__FILE__) . '/fancybox/jquery.fancybox-1.3.4.css' );

    which both didn't show up working.

    lastly, i guess i did some blocking thing. but its just to disable the search functionality. and i found that code/plugin, in this link

    http://wordpress.org/support/topic/disable-search-functionality?replies=3

    but i don't see any reason that it will affect it or something, but still..like i said on my first post here, easy fancybox is working fine to me until i disable ALL the plugins and activated them 1 by 1 but not without the disable search thing. after activating my plugins back, that's when i noticed easy fancybox is not working anymore. when it should be working.

  6. RavanH
    Member
    Posted 3 months ago #

    I'm confused... So as I understand it, you had an unrelated issue and disabled all plugins but after enabling them again, you found Easy FancyBox was not working anymore. But what about this search blocking plugin?

    Did you disable en enable it again or not? Is it active now? What if you disable all plugins again except Easy FancyBox?

  7. indioystillo
    Member
    Posted 3 months ago #

    i did say

    "but still..like i said on my first post here, easy fancybox is working fine to me until i disable ALL the plugins and activated them 1 by 1 but not without the disable search thing"

    so yes, i deactivate the "disable search plugin" together with ALL of my plugins. Then, activate them back again 1 by 1, WITHOUT the "disable search plugin" leaving that plugin deactivated.

    That's why its weird for me, because it should be working now that all plugins are back, because it was working before O_O

  8. indioystillo
    Member
    Posted 3 months ago #

    I also tried removing all the plugins except fancybox, it still didn't work. hmm., i really need it to work again.

    [No bumping, thank you.]

  9. RavanH
    Member
    Posted 3 months ago #

    Any rules in your .htaccess that block direct access to .php files in the wp-content/plugins/ dir and below?

    Something definately keeps blocking the dynamic stylesheet request and if it's not another plugin that I would guess it's something on the server...

  10. indioystillo
    Member
    Posted 3 months ago #

    this is my .htaccess, i'm not sure how this works, do you see anything that blocks it?

    suPHP_ConfigPath /home/myservername/public_html
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
  11. RavanH
    Member
    Posted 3 months ago #

    If you really cannot find anything, there might be a way to hack my plugin so that it will refer to the static stylesheet. You will loose IE6 support and it might affect IE7 and 8 to some extend too but the majority of visitors will have fancybox back :)

    Go to the WP plugin editor and select the main plugin file easy-fancybox.php

    Find near the end, the function

    function easy_fancybox_enqueue_styles() {
    	// register style
    	wp_enqueue_style('easy-fancybox.css', plugins_url(FANCYBOX_SUBDIR.'/easy-fancybox.css.php', __FILE__), false, FANCYBOX_VERSION, 'screen');
    }

    and change it to

    function easy_fancybox_enqueue_styles() {
    	// register style
    	wp_enqueue_style('easy-fancybox.css', plugins_url(FANCYBOX_SUBDIR.'/easy-fancybox/jquery.fancybox-1.3.4.css', __FILE__), false, FANCYBOX_VERSION, 'screen');
    }
  12. RavanH
    Member
    Posted 3 months ago #

    It might very well be suPHP.

    Do you have a config file for suPHP in your public_html dir? I suppose it would be called php.ini or suphp.conf... Anything in there regarding the wordpress subdirs?

  13. indioystillo
    Member
    Posted 3 months ago #

    i tried that code, nothing happens to me, fancybox still doesnt work.
    do you have email? please email me at admin@animetomb.com and i will give you access and let you see what's wrong since you know everything in easy fancybox plugin

  14. indioystillo
    Member
    Posted 3 months ago #

    im not sure about suphp.conf though, but im sure i've seen that before on one of my files

  15. RavanH
    Member
    Posted 3 months ago #

    Now, there is an javascript error caused by this code snippet in your header:

    <script type="text/javascript">
    	jQuery(document).ready(function($) {
    
    $('.multi-sidebar').tabs();
    
    $('.sf-menu').superfish({autoArrows: true, speed: 'fast', dropShadows: 'true'});
    
    });	</script>

    I don't know to what that code belongs (plugin or something included in your theme) but it blocks the rest of the jQuery code. Without it, FancyBox works.

  16. indioystillo
    Member
    Posted 3 months ago #

    hmm..weird, i don't even have that on my header.php, but i can see it on my source code. i dont even know how or where to remove it.

    but based on that ".sf-menu" i think i remember sf-menu is the one i use on my navigation bar. so i'm not really sure why it conflicts this much.

    can you please email me so that you can take a look into it even more?

  17. indioystillo
    Member
    Posted 3 months ago #

    wow, you are right..i find that script code and removed it, and fancybox seems to work fine back again. weird though, how did it implement itself on there without me adding it? will this occur more in the future?

  18. RavanH
    Member
    Posted 3 months ago #

    Where did you find the code?

  19. indioystillo
    Member
    Posted 3 months ago #

    on my "header.js.php" file, there's nothing written on that file except that code you listed. weird, i never put that code in there or something, i wonder how it went there so that it can be avoided in the future.

  20. RavanH
    Member
    Posted 3 months ago #

    No idea...

    There are many evil WordPress themes available for free out there that contain hidden malicious code and some can even insert their hidden code into other themes installed on the same site (to continue their bad ways after being deactivated) but this does not seem like malicious code to me.

    Did you create this theme based on the Arras theme maybe? http://code.google.com/p/arras-theme/source/browse/theme/trunk/js/header.js.php?r=583 seems a bit similar. Except for exactly that $('.multi-sidebar').tabs part that is causing the error. Weird.

  21. RavanH
    Member
    Posted 3 months ago #

    And where/when is this file included from? Your header.php or functions.php?

  22. RavanH
    Member
    Posted 3 months ago #

    Ah! Hang on... I found the real cause of the error. It's the second instance of jQuery library being loaded from somewhere at the top of the body section:

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>

    It's in a widget maybe?

    If you remove that line and put back the original code in that header.js.php file, all is well :)

  23. indioystillo
    Member
    Posted 3 months ago #

    Ok I did remove it and replace the code back to header.js, its weird though, I'm the one who put that script

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>

    but i put it after the fancybox was missing already, because based on fancybox's site

    http://fancybox.net/howto

    STEP number 2. ( Include nessesary JS files )
    that's why i put it in there.

    hmmm..

  24. RavanH
    Member
    Posted 3 months ago #

    OK, those instructions are for the stand-alone version of FancyBox. In the case of this plugin however, inclusion of the jQuery library that comes packed with WordPress is being taken care of automatically :)

    Ofcourse, you might want to use the one provided by Google to reduce server load just a bit. To achieve this, install the plugin Use Google Libraries http://wordpress.org/extend/plugins/use-google-libraries/ or a similar one...

  25. indioystillo
    Member
    Posted 3 months ago #

    do i have to? hmmm
    i mean, fancybox is now working again on my site so far, so i guess its fine to leave it like that. what do you suggest?

  26. RavanH
    Member
    Posted 3 months ago #

    Do you have to? Of course not! :D

    It was just a suggestion...

    If it works fine and you're happy, there is no need to go further at all. I'm glad you got it working. Could you mark this thread as "Solved" at the top right, please? Thanks :)

  27. indioystillo
    Member
    Posted 3 months ago #

    done. hey thanks a lot :)

Reply

You must log in to post.

About this Topic