I am working on a gallery called Our Picture Share (www.ourpictureshare.com), if you visit the gallery and click on an album you'll be prompted for a password.
At the very top of this page I am getting an error: `header('Last-Modified: ' . ZP_LAST_MODIFIED); header('Content-Type: text/html; charset=' . LOCAL_CHARSET);`
Anyone know how to fix this issue, so you don't see the error message?
Thanks,
Josh
Comments
Thanks,
Josh
If you go to the default ZenPhoto installation and locate the zp-core folder you'll see a file called password.php, this is the default password template page.
At the top you will see three lines:
`<?php if (!defined('WEBPATH')) die(); ?>`
`header('Last-Modified: ' . ZP_LAST_MODIFIED);`
`header('Content-Type: text/html; charset=' . LOCAL_CHARSET);`
Which should read:
`<?php if (!defined('WEBPATH')) die();`
`header('Last-Modified: ' . ZP_LAST_MODIFIED);`
`header('Content-Type: text/html; charset=' . LOCAL_CHARSET); ?>`
The reason why it was displaying the header information was because the header information wasn't included in the `<?php ?>` tags, so it was being displayed as text...once I made the change everything worked fine
Thanks,
Josh
I understand that one I have created a password.php file of my own and everything looks much better now, still trying to get things the way I want them, but am glad that this particular issue has been fixed, as it not only affects me.
Thanks,
Josh