Menu

ClearBox ERROR

Help
fredf
2009-07-21
2013-05-30
1 2 > >> (Page 1 of 2)
  • fredf

    fredf - 2009-07-21

    All my media is kept in a protected directory structure.  Recently, I have been unable to access media items.  I get ClearBox ERROR.  I moved all the media to the standard directory and have no problem.  Moved it all back to protected and again it doesn't work.  I do see the thumbnails but can't access the actual item.

    I have checked the standard directory and it has an .htaccess entry which appears to be correct. 

    Also, when I am in the media root directory and click "Move to protected", everything gets moved.  All sub-directories get moved.  Is this the way it is supposed to work?  What if I only want the root directory items in protected directory, would I have to move everything and then move each sub-directory back to standard?

     
    • Gerry Kroll

      Gerry Kroll - 2009-07-21

      Paragraph 3:  Yes, that's the way it works.

      Paragraph 1:  Try using the "correct permissions" button on the Manage Media page after you've moved everything to the Protected Media directory.

       
    • fredf

      fredf - 2009-07-21

      Gerry -  I tried the "correct permissions" button and it solved the problem on only a couple of pictures.  Most still have the "ClearBox ERROR" message.  I checked and the permissions were set for ALL media entries.  I can see the thumbnails but can't access the media item. 

      What do I try next?

      By the way, I am using v 4.2.1. 

       
    • Gerry Kroll

      Gerry Kroll - 2009-07-21

      I suggest that you wait until version 4.2.2 is released.  That should happen this coming week-end.

       
    • fredf

      fredf - 2009-07-22

      Thanks.  I'll do that.  Hopefully 4.2.2 will solve the problem.

       
    • fredf

      fredf - 2009-08-02

      I just installed 4.2.2., transferred my media to the protected directory and still get the ClearBox ERROR.  When I move the media back to the standard directory, everything works fine.  I have moved it back and forth a couple of times.  It works fine in standard and doesn't work in protected. 

      What next?

       
    • Brian Holland

      Brian Holland - 2009-08-02

      Fred,
      The Clearbox error means that when you have the firewall enabled and the images in the protected directory, Lightbox cannot find the path to the image specified.

      Therefore can we do things step by step first.

      In your configuration can you please tell me what you have in the fields represented by ?? as below.

      Multimedia
      Enable multimedia features  ??   
      General
      Keep links     ??
      MultiMedia directory     ??
      Multi-Media directory levels to keep   ??
      Width of generated thumbnails     ??
      Automatically generated thumbnails     ??
      Use thumbnail   ??
      Show highlight images in people boxes ??   
      Use Media Viewer     ??
      Show file name in Media Viewer     ??
      Show download link in Media Viewer     ??
      Media Firewall
      Use Media Firewall     ??
      Media Firewall Root Directory     ??
      When this field is empty, the ./index/ directory will be used. ??
      Protect Thumbnails of Protected Images     ??
      Who can view non-watermarked images?     ??
      Add watermarks to thumbnails?     ??
      Store watermarked full size images on server?     ??
      Store watermarked thumbnails on server     ??

      Brian

       
    • fredf

      fredf - 2009-08-02

      Brian -

      Here are the parameters -
      Multimedia
      Enable multimedia features Yes
      General
      Keep links Yes
      MultiMedia directory media/
      Multi-Media directory levels to keep 3
      Width of generated thumbnails 100
      Automatically generated thumbnails Yes
      Use thumbnail Yes
      Show highlight images in people boxes Yes 
      Use Media Viewer Yes
      Show file name in Media Viewer No
      Show download link in Media Viewer No
      Media Firewall
      Use Media Firewall Yes
      Media Firewall Root Directory   /home3/frfcom/ftree/mediadir/
      When this field is empty, the ./index/ directory will be used.
      Protect Thumbnails of Protected Images Yes
      Who can view non-watermarked images? ??
      Add watermarks to thumbnails? No
      Store watermarked full size images on server? No
      Store watermarked thumbnails on server No

      I do see the thumbnails even when they are in the protected directory. 

      Thanks.

      Fred

       
    • Brian Holland

      Brian Holland - 2009-08-02

      Thanks Fred,
      The only difference between you and I is
      a) Multi-Media directory levels to keep  - mine is 5 (but this depends on your structure)
      b) Who can view non-watermarked images? mine is "Show only to authenticated Users"

      and the only one I have a query about really
      Media Firewall Root Directory  -
      c1) YOURS = /home3/frfcom/ftree/mediadir/
      c2) MINE = ../genealogy_media/            <-- Note the two dots

      My physical structure is as follows on my server:
      My Standard Media directory is htdocs/genealogy_4.2_svn/media/ .... etc
      My Protected Media directory is htdocs/genealogy_media/media/ .....etc
      i.e. The Protected directory is outside of PGV but within web accessible space.
      (Not sure where yours is physically)

      Just a few other questions.

      a) When you move the media, does it physically go where you want it to?
      b) Do you have a ,htaccess file in the Standard Media directory which looks like this

      ######## BEGIN PGV MEDIA FIREWALL SECTION ##########
      ################## DO NOT MODIFY ###################
      ## THERE MUST BE EXACTLY 11 LINES IN THIS SECTION ##
      <IfModule mod_rewrite.c>
          RewriteEngine On
          RewriteCond %{REQUEST_FILENAME} !-f
          RewriteCond %{REQUEST_FILENAME} !-d
          RewriteRule .* /genealogy_4.2_svn/mediafirewall.php [L]
      </IfModule>
      ErrorDocument    404    /genealogy_4.2_svn/mediafirewall.php
      ########## END PGV MEDIA FIREWALL SECTION ##########

      c) Is the structure of your Protected directory EXACTLY like the Standard directory?

      Brian
         

       
    • Brian Holland

      Brian Holland - 2009-08-02

      Fred,
      The only other difference we have in the config is the following
      Use Media Viewer?
      YOURS = Yes
      MINE = No

      By being set to NO then then when you click on a thumbnail, the Lightbox will try to show the image directly instead of taking you to the mediaviewer page (to see details & links etc ).

      If you have it set to "NO", AND you really want to go to the mediaviewer page, (to see details & links etc ), then  just click on the filename link or the title link, depending where you are viewing..

      Brian

       
    • fredf

      fredf - 2009-08-02

      Brian -

      My protected directory is NOT web  accessible.  All the media items get moved correctly and I can see them in the proper directories.   The structure is the same in both standard and protected.  The protected directories WERE working and then suddenly I started getting the ClearBox ERROR messages. 

      My .htaccess file is as follows -

      ######## BEGIN PGV MEDIA FIREWALL SECTION ##########
      ################## DO NOT MODIFY ###################
      ## THERE MUST BE EXACTLY 11 LINES IN THIS SECTION ##
      <IfModule mod_rewrite.c>
          RewriteEngine On
          RewriteCond %{REQUEST_FILENAME} !-f
          RewriteCond %{REQUEST_FILENAME} !-d
          RewriteRule .* /~frfcom/family/mediafirewall.php [L]
      </IfModule>
      ErrorDocument    404    /~frfcom/family/mediafirewall.php
      ########## END PGV MEDIA FIREWALL SECTION ##########

      I just moved the media to Standard and then back to Protected.  I see all the thumbnails.  I can access SOME of the media items but others get the CrearBox ERROR message.  I can use file manager and see the media item in the protected directory and I can view it. 

      I don't understand why I should be able to get some media items and not others. 

      I just tried moving one sub-directory to Standard and back to Protected.  Same results.  I can see everything in Standard and can only see a couple in Protected.

      What do we try next?

      Fred

       
    • Brian Holland

      Brian Holland - 2009-08-02

      Fred,

      I have tried everything I can think of at the moment and I am perplexed too.
      My last thought was that was the parameter you quote with the Media Firewall Root Directory.
      My parameter seems to be relative to the PGV root.
      Yours seems to be an absolute path.
      But I may be mistaken here.

      The only two people who can go further than I are Gerry ( a wizard with media structure), and Larry (who created the Media Firewall).

      So I am here hoping they will pick up this thread (I will send a note offline if necessary)
      Gerry and/or Larry  any ideas please?

      The thing that concerns me is that you say that SOME items work, but SOME do NOT when using the protected directory. (I wonder what the differences are with the filename?)

      Can you perhaps also give Gerry/Larry/ Myself a URL so we can see what is happening on your site.
      I'll not let this go, but I am a little confused too, and probably need a little more expert help.

      Brian

       
      • Larry Meaney

        Larry Meaney - 2009-08-02

        Hi Fred,

        Please go through the "Troubleshooting" section of the Media Firewall page in the wiki:
          http://wiki.phpgedview.net/en/index.php?title=Media_Firewall

        The first step, where it has you view an image directly, will probably let us know what the problem is.  It also mentions checking your PGV log for clues, which may shed some light on the problem.

        -larry

         
    • Brian Holland

      Brian Holland - 2009-08-02

      Fred,
      I have one last idea.
      Try disabling the Lightbox module.
      To do this, temporarily rename the /modules/lightbox/ directory to /modules/lightbox2/.
      Then see what happens when you click the thumbnail.
      This at least will indicate if the error is within the lightbox module, or is a general path problem.
      Brian

       
    • Brian Holland

      Brian Holland - 2009-08-02

      Fred,
      Any response please?
      I'll be turning in soon (UK time) .. If not tonight, hope you can wait until tomorrow.
      Brian

       
    • fredf

      fredf - 2009-08-02

      Brian -

      Sorry I didn't see the last suggestion earlier.  Have a good night.  There's no rush on this. 

      Thanks.

      Fred

       
    • fredf

      fredf - 2009-08-03

      Hi Larry -

      I can't access the image directly via an URL.  My protected directories are not accessible via the web.  They are at the same level as the public_html directory.  I can view the media items in the protected directory using one of the file manager programs provided by my ISP.

      I checked the log file and there are no errors that show up for the problem I'm having.  I just moved all the media from protected to standard and back to protected.  I can see all the thumbnails which are also in protected directories.  I then tried accessing some of the media items.  I had no problem with the first 9 that I tried and then couldn't get 10 or beyond.  I don't get a 404 or other file missing error.  I just get the ClearBox ERROR message. 

      Any other ideas?

      Fred

       
      • Larry Meaney

        Larry Meaney - 2009-08-03

        The point of the media firewall is to allow the normal url to work even once you have moved the image to the protected directory.

        In other words, if this was the url w/o using the media firewall:
          myserver.com/pgv/media/image1.jpg
        then that url will continue to work once the media firewall has been enabled and the image has been moved to the protected directory.  The difference is that the media firewall verifies you have access to the file before it shows it to you.

        Find one of the images that has a problem and try viewing it directly.

        If you aren't sure what I mean, please provide me with the url to your site.

        -larry

         
    • fredf

      fredf - 2009-08-03

      Larry -

      When I try to access one of the problem media items, I get a 404 error message..  It says the file doesn't exist.  I can find the file in the proper directory and I can view it using the "view" command of "file manager" so I know the file DOES exist and it's in the proper place. 

      I tried a few other experiments.  I moved all the media to standard then moved it back to protected.  The first item I tried to view from the protected directory was one of the failed items.  This time it worked.  I was able to repeat this with different failed items.

      Fred

       
      • Larry Meaney

        Larry Meaney - 2009-08-03

        If you are getting a 404 error then the Media Firewall is not getting the chance to run.  See the "404 Not Found" portion of this page:
          http://wiki.phpgedview.net/en/index.php?title=Media_Firewall

        If you are sure this used to work then my guess is that your host took away the ability for you to have custom 404 scripts.

        BTW, I'd be willing to bet that it is broken for all of your images, not just some of them.  The ones that are "working" are probably in your browser's cache.

        To test it from scratch, do the following:
        * Move all the images to the standard directory
        * Disable/re-enable the media firewall (this will recreate the htaccess file)
        * Clear your browser cache
        * Try viewing an image directly.  Since it is currently in your standard directory, it should work fine.
        * Move the image to the protected directory.
        * Clear your browser cache
        * Try viewing the image directly again.  If you get a 404 error then something is wrong with the htaccess file or your host took away the ability for you to have custom 404 scripts.

         
    • fredf

      fredf - 2009-08-03

      Larry -

      Many thanks.  Disabling and re-enabling the firewall seemed to clear the problem.  I haven't looked at all 875 media items, but I have stepped through quite a few. 

      Thanks again.\

      Fred

       
      • Larry Meaney

        Larry Meaney - 2009-08-03

        great!  I'm glad it is working now!

         
    • Brian Holland

      Brian Holland - 2009-08-03

      Larry, many thanks on my behalf for intervening .... I have learned something too.

      Fred, glad you are up and running again.
      4.2.2 has really moved on with Greg's database changes, and you should find managing Media Links a lot quicker and easier now for multiple links in one go.

      Brian

       
    • Brian Holland

      Brian Holland - 2009-08-03

      Fred,
      Just a thought as you have rewritten the ,htaccess file with the disabling/enabling of Media Firewall, could you publish here what the new .htaccess file contains now. Just so we can see if there was any difference.

      Brian

       
    • fredf

      fredf - 2009-08-03

      Brian -

      The .htaccess now looks like this -

      ######## BEGIN PGV MEDIA FIREWALL SECTION ##########
      ################## DO NOT MODIFY ###################
      ## THERE MUST BE EXACTLY 11 LINES IN THIS SECTION ##
      <IfModule mod_rewrite.c>
          RewriteEngine On
          RewriteCond %{REQUEST_FILENAME} !-f
          RewriteCond %{REQUEST_FILENAME} !-d
          RewriteRule .* /family/mediafirewall.php [L]
      </IfModule>
      ErrorDocument    404    /family/mediafirewall.php
      ########## END PGV MEDIA FIREWALL SECTION ##########

      Thank you both for all the assistance.

      Fred

       
1 2 > >> (Page 1 of 2)

Log in to post a comment.