Projects ⇒ Bugs ⇒ #780: Absolute Path script problem; can't install/config ⇒ CPG Dragonfly™ CMS
Bug #780 Absolute Path script problem; can't install/config
Project: Dragonfly 9.0 -> 9.0.2 Category: *CPG Core Issues
Submitted: Friday, April 21, 2006 (00:59:14) Modified: Friday, June 02, 2006 (08:24:28)
Status: Bogus Assigned to:
PHP Version: 5.0.1 HTTPD Server: Apache 2.0

View/Vote Add Comment

by: Wisteareia
Description:
------------
Hi,

I'm trying to get CMS Dragonfly running on a site of mine for the first time. I have uploaded Dragonfly9.0.6.1, Previously the only forum code I've worked with is phpBB; thought I'd give this one a try instead, as there are some nifty premade mods for EQ2 and I am very interested in running them for a site of mine.

When running the config.php file, I get 2 errors as you can see here:
http://www.tanzin.com/OoC/install.php
so I checked with my server admin. He said it's due to a script mishandling alternately-configured webservers, and should be a simple fix to your code. And (I quote) "for as slick as their website is and the effort they've put into their project, I can't imagine they wouldn't fix it.

The Dragonfly code is not realizing that it's being given an absolute path instead of a relative path and instead of fixing it, it errors out (because it has no permission to the absolute path -- that would be a security error). Most servers give only relative paths, but we have internal needs for absolute.

It reads the path, trims it, then tries to include files in that folder -- which is referencing an absolute path on the disk. PHP denies that outright."

He tried to come up with a php function for me to help the code work around the server path issue, but it was more trouble than it was worth, apparently. If any other info is needed I can ask/pass it along, or suggestions could be made to help me get past this, I would greatly appreciate it.

Thanks!

Reproduce code:
---------------
Notice: Use of undefined constant CPG_DEBUG - assumed 'CPG_DEBUG' in E:\Web Server\## Professionally Hosted Sites\Pete\www.tanzin.com\OoC\includes\classes\cpg_debugger.php on line 104

Fatal error: require_once() [function.require]: Failed opening required 'config.php' (include_path='./includes/;./extras/;E:\PHP\PEAR\pear') in E:\Web Server\## Professionally Hosted Sites\Pete\www.tanzin.com\OoC\includes\cmsinit.inc on line 147
by: xfsunoles
atal error: require_once() [function.require]: Failed opening required 'config.php' (include_path='./includes/;./extras/;E:\PHP\PEAR\pear') in E:\Web Server\## Professionally Hosted Sites\Pete\www.tanzin.com\OoC\includes\cmsinit.inc on line 147

you should be able to fixed that one. Config.php should be able in the root dir
by: Wisteareia
So you're saying to move config.php to the root web folder for tanzin.com (http://www.tanzin.com/config.php) and then try the install.php url again?

This did not resolve the problem, though I gave it a try. I'd set up a subdomain and run it there, but he said this wouldn't work either. It wouldn't change how the scripts are trying to access the server paths.
by: NanoCaiordo
Sorry, but your problem does not imply a bug in Dragonfly 9.0 -> 9.0.2 itself. For a
list of more appropriate places to ask for help using Dragonfly 9.0 -> 9.0.2, please
visit Forums as this bug system is not the
appropriate forum for asking support questions.

Thank you for your interest in Dragonfly 9.0 -> 9.0.2.
User Info

Welcome Anonymous



(Register)
Community

Support for DragonflyCMS in a other languages:

Deutsch
Español