Hi,
I do not know when it happened but the images stored in the firewall folder are not displayed anymore. I get a ClearBox error which says that the file can not be found.
A few weeks ago I reorganized my server configuration and moved the http://domain/phpgedview to http://domain.
All seems to work fine except the firewalled pictures. Is it possible that the firewall construction needs to have the phpgedview program located like" http://domain/phpgedview?
Note: I did not move the original location of the firewalled media folder.
Thanks in advance,
Rick.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In the unproteced folder .htaccess is:
#ErrorDocument 404 /mediafirewall.php
######## 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 .* /mediafirewall.php
</IfModule>
ErrorDocument 404 /mediafirewall.php
########## END PGV MEDIA FIREWALL SECTION ##########
In the firewalled media folder the .htaccess contains:# $Id: .htaccess,v 1.1.2.1 2004/12/08 23:32:51 yalnifj Exp $
order allow,deny
deny from all
Your suggestion is already done without result. When I try to access a picture directly a 404 code is generated. Enable of the debug functions in firewall.php shows me that the path where the requested picture should be found is correct.
Still no picture is shown.
Rick.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
** make sure the normal media directory has full read/write/modify (0777) permission.***
You need to log in as Admin, access the Manage MultiMedia page, and *move* all of the firewalled images to the standard directory, and then back to the protected directory. There's a button to do this.
This will recreate the .htaccess file.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
Checked the permissions. All ok. The move of the media files from protected to unprotected and reverse again is an operation which I will not perform unless all other things are not tried. It is simple too much work.
When I disable the use of imageviewer, I get a broken image icon on the webpage. When I select in Chrome the option 'view-source' of the page displayed gives me the code of a picture. It looks like the mediafirewall does not recognize the format of the picture and just dumps the content or so.
Regards,
Rick.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Problem found.
In the file 'functions_print.php' where corrupted characters before the <?php statement at the beginning of the file.
Removed the characters and all went okay again.
Thanks for your time to assist me.
Rick.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
That's not known, but for sure that I introduced them self somewhere. No, they are not present in the distibution, actually it is the use of svn and my method of updating the site how I found the characters. Don't worry that it went wrong with the distribution!
Still I am wondering why I didn't see any other problems with these characters, only when using the Clearbox or displaying the images directly AND only from the fire-walled images.
Again thanks!
Rick.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I do not know when it happened but the images stored in the firewall folder are not displayed anymore. I get a ClearBox error which says that the file can not be found.
A few weeks ago I reorganized my server configuration and moved the http://domain/phpgedview to http://domain.
All seems to work fine except the firewalled pictures. Is it possible that the firewall construction needs to have the phpgedview program located like" http://domain/phpgedview?
Note: I did not move the original location of the firewalled media folder.
Thanks in advance,
Rick.
The firewall works by creating a .htaccess file in the media directory. This is probably missing or out of date.
Disabling/enabling the mediafirewall usually fixes it.
Hi Fisharebest,
In the unproteced folder .htaccess is:
#ErrorDocument 404 /mediafirewall.php
######## 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 .* /mediafirewall.php
</IfModule>
ErrorDocument 404 /mediafirewall.php
########## END PGV MEDIA FIREWALL SECTION ##########
In the firewalled media folder the .htaccess contains:# $Id: .htaccess,v 1.1.2.1 2004/12/08 23:32:51 yalnifj Exp $
order allow,deny
deny from all
Your suggestion is already done without result. When I try to access a picture directly a 404 code is generated. Enable of the debug functions in firewall.php shows me that the path where the requested picture should be found is correct.
Still no picture is shown.
Rick.
** make sure the normal media directory has full read/write/modify (0777) permission.***
You need to log in as Admin, access the Manage MultiMedia page, and *move* all of the firewalled images to the standard directory, and then back to the protected directory. There's a button to do this.
This will recreate the .htaccess file.
Hi,
Checked the permissions. All ok. The move of the media files from protected to unprotected and reverse again is an operation which I will not perform unless all other things are not tried. It is simple too much work.
When I disable the use of imageviewer, I get a broken image icon on the webpage. When I select in Chrome the option 'view-source' of the page displayed gives me the code of a picture. It looks like the mediafirewall does not recognize the format of the picture and just dumps the content or so.
Regards,
Rick.
Problem found.
In the file 'functions_print.php' where corrupted characters before the <?php statement at the beginning of the file.
Removed the characters and all went okay again.
Thanks for your time to assist me.
Rick.
How did those junk characters get there? The're not present in the standard distributions of PGV.
That's not known, but for sure that I introduced them self somewhere. No, they are not present in the distibution, actually it is the use of svn and my method of updating the site how I found the characters. Don't worry that it went wrong with the distribution!
Still I am wondering why I didn't see any other problems with these characters, only when using the Clearbox or displaying the images directly AND only from the fire-walled images.
Again thanks!
Rick.