PDA

View Full Version : My Database may not be configured properly, Get this error message


james316550
10-27-2009, 08:18 AM
I created the MySQL database, installed the PowerCMS files and uploaded it to mysite.
I created some content to test it and got this error message:


Warning: include(cms/Connections/localhost.php) [function.include]: failed to open stream: No such file or directory in /home/content/c/w/p/cwpmiadmin/html/obesity.php on line 1

Warning: include() [function.include]: Failed opening 'cms/Connections/localhost.php' for inclusion (include_path='.:/usr/local/php5/lib/php') in /home/content/c/w/p/cwpmiadmin/html/obesity.php on line 1

Warning: include(cms/WA_CMS/WA_CMS.php) [function.include]: failed to open stream: No such file or directory in /home/content/c/w/p/cwpmiadmin/html/obesity.php on line 3

Warning: include() [function.include]: Failed opening 'cms/WA_CMS/WA_CMS.php' for inclusion (include_path='.:/usr/local/php5/lib/php') in /home/content/c/w/p/cwpmiadmin/html/obesity.php on line 3

It looks like I didn't "connect" something properly or the directory is incorrect. I looked in the forums and changed the default path to what it is now (added the "cms" to the beginning of the path for the PHP at the top of the page), but that didn't help either.

Can you help?

Jason Byrnes
10-27-2009, 10:19 AM
The problem is the path to the Connections/localhost.php file.


Look at the full address to the power CMS files. if the address to login is:
http://www.mydomian.com/powerCMS/admin/users_login.php

and the page you are adding powerCMS to is at:
http://www.mydomian.com/mypage.php

the developer notes path needs to be adjusted to:
<?php include "powerCMS/Connections/localhost.php"; ?>
<?php include "powerCMS/WA_CMS/WA_CMS.php"; ?>

if you are having trouble with getting the path correct, please post a link to your pwerCMS login page and the page you are trying to add powerCMS to so when can help.