Pages outside of normal directories Pages outside of normal directories
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Pages outside of normal directories

Started by artoonie, May 11, 2008, 09:28:28 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

artoonie

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?

Joachim Müller

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.

artoonie

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?

Joachim Müller


artoonie

It is/was off, but just in case, I installed then uninstalled it, with no luck.

artoonie

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"); ?>