getting errors trying to include a coppermine within a page getting errors trying to include a coppermine within a page
 

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

getting errors trying to include a coppermine within a page

Started by jagaur, September 18, 2007, 03:10:58 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jagaur

Hi,
I'm pretty new to using php and coppermine, but I seem to have managed to get coppermine installed and running if I go directly to the url of the index.php file (www.canadianpokerbonus.ca/cpg1412/index.htm)
This loads no problem and allows me to upload and browse photos.

The problems start when I try to use the below command to add coppermine into my html page:

<?php
require 'cpg1412/index.php';
?>

when I go to the url www.canadianpokerbonus.ca/babes.php I get the error message:

Warning: main(include/debugger.inc.php): failed to open stream: No such file or directory in /home/content/html/cpg1412/include/init.inc.php on line 26

Fatal error: main(): Failed opening required 'include/debugger.inc.php' (include_path=''.:html/cpg1412/'') in /home/content/html/cpg1412/include/init.inc.php on line 26

I think this may be caused because the php file is not in the same directory as coppermine so I guess my question is:
1.  Is it possible to run coppermine from a root php page but still keep the coppermine file structure outside of the root
or
2. is it the require command that is causing the problems

I've tried searching the forums but haven't been able to find any answers...any help you can provide would be much appreciated

Joachim Müller

Coppermine can not be embedded into other pages using PHP's include or require command. Not related to install, moving accordingly.

jagaur

Sorry about the location....

So if I wanted to have my url for coppermine look like www.url.ca/coppermine.php I would have to put the entire install in the root folder?

Thanks

Sami

Yes ,
- First of all move your main site somewhere else (where ever you want!)
- Copy content of cpg1412 (files and folders) to root
- Go to config and change the url of gallery
you're done
‍I don't answer to PM with support question
Please post your issue to related board

jagaur


Joachim Müller