Advanced search  

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

Pages: [1]   Go Down

Author Topic: Pages outside of normal directories  (Read 3827 times)

0 Members and 1 Guest are viewing this topic.

artoonie

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 66
Pages outside of normal directories
« 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:
Quote
Warning: 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?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Pages outside of normal directories
« Reply #1 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.
Logged

artoonie

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 66
Re: Pages outside of normal directories
« Reply #2 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?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Pages outside of normal directories
« Reply #3 on: May 11, 2008, 08:16:07 pm »

Turn SEF_URLs off!
Logged

artoonie

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 66
Re: Pages outside of normal directories
« Reply #4 on: May 11, 2008, 09:58:21 pm »

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

artoonie

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 66
Re: Pages outside of normal directories
« Reply #5 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
Code: [Select]
<?php include("rotating/index.php"); ?>
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.