After upgrading to 1.4.18, I am unable to access coppermine through pages outside of the normal directories.
I don't know if this was included in the update or if it's because of something I changed while upgrading (all of my includes and requires had the full path previously-I didn't remember why so I undid all this).
The error I receive:
QuoteWarning: require_once(include/debugger.inc.php) [function.require-once]: failed to open stream: No such file or directory in /home/priceypi/public_html/pics/include/init.inc.php on line 26
Fatal error: require_once() [function.require]: Failed opening required 'include/debugger.inc.php' (include_path='.:/usr/lib/php') in /home/priceypi/public_html/pics/include/init.inc.php on line 26
A page where I get the error:
http://www.priceypixel.com/iframe_main.php?option=search
That page includes:
http://www.priceypixel.com/pics/search2.php
Which DOES work correctly.
My gallery: http://www.priceypixel.com/pics
User: test
Pass: test
Why does this happen and how can I get around it?
If Coppermine works fine as standalone and doesn't work embedded into your iframe, there is something wrong with the way you embedd it. That's beyond of the scope of this board. Coppermine is a standalone app. We provide support for the standalone app, not for some embedding hacks.
That's just one example, there's a few other pages where I can prove it's not caused by the way it's embedded.
Example:
http://www.priceypixel.com/pics/rotating/index.php
If you don't provide support for adding any pages in any directories other than the standard coppermine ones, then ok, i'll try figuring something out, but I'm pretty sure there's some security restrictions or something going on that has nothing to do with improper embedding. Maybe I need to define() something?
Turn SEF_URLs off!
It is/was off, but just in case, I installed then uninstalled it, with no luck.
Alright, i fixed this by simply creating a file within the correct directory (coppermine root) that includes the other file.
Example, to get pics/rotating/index.php, i created a file pics/rotating.php with the code
<?php include("rotating/index.php"); ?>