Dragonfly CMS v9 ⇒ IIS Specific Issues :: Archives ⇒ Install Fatal Error :: Archived ⇒ Community Forums ⇒ CPG Dragonfly™ CMS
Forum IndexIIS Specific Issues

Archived ⇒ Install Fatal Error


now that i am in the IIS spacific forum, i am still having the same troubles as in the first post.

is it a problem with IIS?

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Win2k3,IIS,Dragonfly 9.0.6.1


No it's a problem with how PHP is setup and a small glitch inside Dragonfly.

Find in cmsinit.inc
ini_set('magic_quotes_sybase', 0);

replace with

if (CAN_MOD_INI) ini_set('magic_quotes_sybase', 0);




Find
require_once(BASEDIR.'config.php');
and delete the line




Find
# we define our own error handler require_once(CORE_PATH.'classes/cpg_debugger.php');

replace with

# we define our own error handler require_once(CORE_PATH.'classes/cpg_debugger.php'); require_once(BASEDIR.'config.php');

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Fedora 25 / Apache 2.4.27 / MariaDB 10.1.26 / PHP 7.1.10 / Mercurial


okey i have done that and now i get a similer error, but it fixed the first one

Fatal error: require_once() [function.require]: Failed opening required 'config.php' (include_path='c:\windows\php\includes') in C:\Inetpub\wwwroot\PNWRR\includes\cmsinit.inc on line 148

this one is on line 148 and the last error was on 147

frustrating
jason

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Win2k3,IIS,Dragonfly 9.0.6.1


in this file cmsinit.inc i deleted the line that you told me

i copied the area where i deleted that line, and identified line 148 for you. if i counted right.

} else {
require_once(BASEDIR.'includes/cpg_page.php');
$errorpage = cpg_header($title);
$errorpage .= "<center>$message</center>";
$errorpage .= cpg_footer();
if (isset($SESS)) $SESS->write_close();
die($errorpage);
}
}

if (file_exists('config.php')) {
require_once('config.php'); ------this is line 148-----
} else {
}
require_once(CORE_PATH.'db/db.php');
require_once(CORE_PATH.'classes/cpg_cache.php');
require_once(CORE_PATH.'classes/time.php');
require_once(CORE_PATH.'functions/linking.php');
if (!defined('XMLFEED') && !defined('INSTALL')) {
require_once(CORE_PATH.'functions/display.php');
require_once(CORE_PATH.'classes/cpg_member.php');
require_once(CORE_PATH.'classes/session.php');
require_once(CORE_PATH.'classes/template.php');
}

thank you for all your help so far, i appreceate it.
but i still have some issues to resolve

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Win2k3,IIS,Dragonfly 9.0.6.1


My problem the above "find & replace" was based on a newer cmsinit.inc.

Delete around 148
if (file_exists('config.php')) { require_once('config.php'); } else { }

So in a clean 9.0.6.1 delete the whole
if (file_exists('config.php')) { require_once('config.php'); } else { require_once(BASEDIR.'config.php'); }

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Fedora 25 / Apache 2.4.27 / MariaDB 10.1.26 / PHP 7.1.10 / Mercurial


Mr DJmase, you did it. it works now. thank you so much

Jason

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Win2k3,IIS,Dragonfly 9.0.6.1


well i didnt get very far. clicked lets build the database
and got this error

Fatal error: require() [function.require]: Failed opening required 'includes/classes/installer.php' (include_path='c:\windows\php\includes') in C:\Inetpub\wwwroot\PNWRR\install\step1.php on line 161

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Win2k3,IIS,Dragonfly 9.0.6.1


Open config.php and add a line at the bottom
set_include_path(ini_get('include_path').PATH_SEPARATOR.'C:\Inetpub\wwwroot\PNWRR\');

If that doesn't work please ask the server admin to properly setup PHP.
This is because many add-on scripts and some scripts inside DF are not changed yet to use BASEDIR and CORE_PATH due to the fact that there are loads of them and that it isn't foolproof as of yet.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Fedora 25 / Apache 2.4.27 / MariaDB 10.1.26 / PHP 7.1.10 / Mercurial


okey, i did that.
and it gave me this error.
Parse error: syntax error, unexpected $end in C:\Inetpub\wwwroot\PNWRR\config.php on line 194

line 194 is the one i just added at the end.

here is a edited copy of the config.php

the denied email domains are just above that

$DeniedReferers = array('unknown', 'bookmark', 'xxx', 'www.sex', 'customscoop', 'adminshops.', 'locators.com', 'southafrica2000.com');
$sitekey = '+L.D#V^k.9xWBsY{LpL0Or5z(4Mex3l^c-)cV4zQVh4NpZtT!V&^)fy,kGSa%drc}R^y2Qgn-20ro^ln7RIXi)=TrfXqp^Re*H(DnYH-&qPpQ1yZ]h%1dJuTHn8RM.g[';
//session_save_path('/home/SOMETHING/tmp');
set_include_path(ini_get('include_path').PATH_SEPARATOR.'C:\Inetpub\wwwroot\PNWRR\');

i am the server administrator. it is a fresh install of php 5.1.0

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Win2k3,IIS,Dragonfly 9.0.6.1


Ok something is gooing good but:
roni.altervista.org/AL.../index.php

is one error in the end of site

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Php 5.0.4 /MySQL 5.0.26/DF CMS 9.1.1.RC2


albanialove wrote
Ok something is gooing good but:
roni.altervista.org/AL.../index.php

is one error in the end of site


can you paste the error here cos visitor can't see it?

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Apache/1.3.34 (Unix)/4.0.25-standard/4.4.1/CVS


This in the end of site:

includes/cmsinit.inc
CMS Warning line 578: The function cookiedecode() is deprecated in Dragonfly. Please use the global array $userinfo

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Php 5.0.4 /MySQL 5.0.26/DF CMS 9.1.1.RC2


kd7tqn wrote
okey, i did that.
and it gave me this error.
Parse error: syntax error, unexpected $end in C:\Inetpub\wwwroot\PNWRR\config.php on line 194


Damn windows os should be double slashed Laughing

set_include_path(ini_get('include_path').PATH_SEPARATOR.'C:\\Inetpub\\wwwroot\\PNWRR');

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Fedora 25 / Apache 2.4.27 / MariaDB 10.1.26 / PHP 7.1.10 / Mercurial


albanialove wrote
This in the end of site:

includes/cmsinit.inc
CMS Warning line 578: The function cookiedecode() is deprecated in Dragonfly. Please use the global array $userinfo


This can be happen in theme....

in theme.php, does it have cookiedecode?

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Apache/1.3.34 (Unix)/4.0.25-standard/4.4.1/CVS


xfsunoles wrote
albanialove wrote
This in the end of site:

includes/cmsinit.inc
CMS Warning line 578: The function cookiedecode() is deprecated in Dragonfly. Please use the global array $userinfo


This can be happen in theme....

in theme.php, does it have cookiedecode?


Looks like you are missing $userinfo in the global array in the theme.php. But then I could be wrong.

Lead Theme Designer - WebSiteGuru Designs

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux 2.6.9 / Apache 2.2.6 / MySQL 5.0.27 / PHP 5 / DF Version 9.2.1

All times are UTC