Message: an error occurred while processing this directive Message: an error occurred while processing this directive
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Message: an error occurred while processing this directive

Started by Nielsk, January 15, 2007, 11:41:19 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Nielsk

Hi,
I've read the docs, the forum and used the searchtool. But I can't find out what's wrong...
I'm trying to add some random images to my site. Made the following steps:

- The cftest is running properly: www.nielsenjose.nl/cpmfetch/cftest.php
- The randomimages.php is running properly: http://www.nielsenjose.nl/randomimages.php
- But on my site www.nielsenjose.nl, the message "an error occurred while processing this directive" shows up.

- cpmfetch.php is in the cpmfetch folder (which is on the root)
- randomimages.php is on the root
- the CPG folder called gallery is also on the root

Used code in randomimages.php
<?php 
include "./cpmfetch/cpmfetch.php";
$objCpm = new cpm("/gallery");
$objCpm->cpm_viewRandomMedia(3,3);
$objCpm->cpm_close();
?>



Used code in index.shtml
<!--#include virtual="/randomimages.php" -->

Also tried this (and several other options), but also didn't work either
<!--#include virtual="./randomimages.php" -->

Don't know if it's of any use, but adding a .htaccess file to my root with
Options +Includes
XBitHack on
gave an internal sever warning from my host....

It feels like being so close to the answer but really don't having a clue...  ???


vuud

Quote from: Nielsk on January 15, 2007, 11:41:19 PM
Hi,
I've read the docs, the forum and used the searchtool. But I can't find out what's wrong...
I'm trying to add some random images to my site. Made the following steps:

- The cftest is running properly: www.nielsenjose.nl/cpmfetch/cftest.php
- The randomimages.php is running properly: http://www.nielsenjose.nl/randomimages.php
- But on my site www.nielsenjose.nl, the message "an error occurred while processing this directive" shows up.

- cpmfetch.php is in the cpmfetch folder (which is on the root)
- randomimages.php is on the root
- the CPG folder called gallery is also on the root

Used code in randomimages.php
<?php 
include "./cpmfetch/cpmfetch.php";
$objCpm = new cpm("/gallery");
$objCpm->cpm_viewRandomMedia(3,3);
$objCpm->cpm_close();
?>



Used code in index.shtml
<!--#include virtual="/randomimages.php" -->

Also tried this (and several other options), but also didn't work either
<!--#include virtual="./randomimages.php" -->

Don't know if it's of any use, but adding a .htaccess file to my root with
Options +Includes
XBitHack on
gave an internal sever warning from my host....

It feels like being so close to the answer but really don't having a clue...  ???

If you are using .shtml and your server recognizes it as a SSI, then you do not need the xbit hack.

Should work, unless your path is wrong in there, or your ISP does not allow includes... but i doubt they would allow ssi and not allow includes.  I've been wrong before though...



Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

Nielsk

To me, the path seems to be right. I will ask them and will write their answer here.

Maybe someone around who has had the same problem?

Niels

Nielsk

Ok, the answer.
My ISP does support SSI, but says that I cannot include PHP pages
Quoteincluder are not supported in PHP

They say,
Quoteyou need to rename the file that you include via SSI needs to be named .htm and the file which include the file needs to be named .shtml. As of 5.2.0 there is a new "knob" in PHP to disable inclusion of remote files, allow_url_include. The new default is set to off i.e. remote files cannot be included. It is still possible to open remote files, just not to include and execute remote code.

It's like abracadabra to me, any tips on what to do and what to change are more then welcome!


vuud

Quote from: Nielsk on January 25, 2007, 02:51:34 PM
Ok, the answer.
My ISP does support SSI, but says that I cannot include PHP pages
They say,
It's like abracadabra to me, any tips on what to do and what to change are more then welcome!

If you have a really limited requirement, such as a single random photo, you can use an img tag and cfimageget...

Otherwise, I think your only option would be to rename all your site to .php files instead of html.

Sorry I don't have anything better for you...



Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco