coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 permissions => Topic started by: artoonie on May 11, 2008, 09:28:28 AM

Title: Pages outside of normal directories
Post by: artoonie on May 11, 2008, 09:28:28 AM
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?
Title: Re: Pages outside of normal directories
Post by: Joachim Müller on May 11, 2008, 10:35:38 AM
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.
Title: Re: Pages outside of normal directories
Post by: artoonie on May 11, 2008, 10:49:04 AM
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?
Title: Re: Pages outside of normal directories
Post by: Joachim Müller on May 11, 2008, 08:16:07 PM
Turn SEF_URLs off!
Title: Re: Pages outside of normal directories
Post by: artoonie on May 11, 2008, 09:58:21 PM
It is/was off, but just in case, I installed then uninstalled it, with no luck.
Title: Re: Pages outside of normal directories
Post by: artoonie on May 14, 2008, 04:05:04 AM
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"); ?>