Warning: mysqli_query() expects parameter 1 to be mysqli, null given in /home/abledesi/domains/abledesign.com/public_html/navfiles/log.php on line 126

AbleDesign - Support Forum

AbleDesign Forum Index AbleDesign

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
AbleDesign Forum Index
MyCalendar Discussion
Installation Errors
Post new topic   Reply to topic

Post new topic   Reply to topic    AbleDesign Forum Index -> MyCalendar Discussion
View previous topic :: View next topic  
Author Message
pmondoux
Lurker
Lurker


Joined: 11 Apr 2005
Posts: 2

PostPosted: Sun Jan 22, 2006 12:47 pm    Post subject: Installation Errors Reply with quote

I have looked through the other listing in this forum and did see the one on insrtalltion errors but I still have several errors. I have installed this before so I am not certain what I am doing wrong here.

Current errors are
Warning: main(/escalendar/includes/dbConnect.inc): failed to open stream: No such file or directory in /home/nhwgcap/public_html/escalendar/config.php on line 421

Warning: main(/escalendar/includes/dbConnect.inc): failed to open stream: No such file or directory in /home/nhwgcap/public_html/escalendar/config.php on line 421

Warning: main(): Failed opening '/escalendar/includes/dbConnect.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/nhwgcap/public_html/escalendar/config.php on line 421

Unable to locate the database at this time.

Now I have checked the dbConnect.inc and the config.php and they seem correct. I know these errors ussually are errors connecting to the databse.


Here is what I have
$dbConnect = "/escalendar/includes/dbConnect.inc";
$directory = "/escalendar";
define ("DATABASE_NAME", this is correct and I don't want to place that in an open forum like this



Connect file has
$dbcnx = @mysql_connect("localhost", "username", "password");

Any Ideas?
Back to top
View user's profile Send private message Send e-mail
Dan
Admin / Developer
Admin / Developer


Joined: 19 Feb 2001
Posts: 2057

PostPosted: Sun Jan 22, 2006 2:08 pm    Post subject: Reply with quote

Quote:
$dbcnx = @mysql_connect("localhost", "username", "password");

Is that what you actually have in the file, or did you replace the three items with your server info? I wouldn't expect you to post the real login here, so just checking.

The error sounds like it's coming from within config.php, though, prior to the dbConnect connection failure.

Quote:
main(/escalendar/includes/dbConnect.inc)
/home/nhwgcap/public_html/escalendar/config.php

(include_path='.:/usr/lib/php:/usr/local/lib/php')

That looks like a potential problem there. Your server include path doesn't match the files' location according to the error message. Try:

$dbConnect = "/home/nhwgcap/public_html/escalendar/includes/dbConnect.inc";

(Did you put the 'includes' folder within the calendar folder or is it outside the web root?)

Cheers,
Dan
Back to top
View user's profile Send private message Send e-mail Visit poster's website
connemara
Window Shopper
Window Shopper


Joined: 22 Mar 2005
Posts: 10
Location: Vancouver Island, Canada

PostPosted: Sun Aug 13, 2006 9:08 pm    Post subject: installation problems Reply with quote

Hi Dan:
I too am having the same problem with a new calendar installation. I have used exactly as you recommended below but still get the(same) error. The tables are all up fine and I used the following path:

$dbConnect = "/home/rugby/public_html/calendar/includes/dbConnect.inc";
I know the database name, user and passwords are all correct.


Does this path need adjusting do you think?
Connie Manning
Back to top
View user's profile Send private message Visit poster's website
Dan
Admin / Developer
Admin / Developer


Joined: 19 Feb 2001
Posts: 2057

PostPosted: Sun Aug 13, 2006 9:50 pm    Post subject: Reply with quote

Ditto to the last question I asked above:

"Did you put the 'includes' folder within the calendar folder or is it outside the web root?"

If your 'includes' folder is not within the 'calendar' folder, then that's the source of your error.

Cheers,
Dan
Back to top
View user's profile Send private message Send e-mail Visit poster's website
connemara
Window Shopper
Window Shopper


Joined: 22 Mar 2005
Posts: 10
Location: Vancouver Island, Canada

PostPosted: Sun Aug 13, 2006 10:07 pm    Post subject: installation problems Reply with quote

Hi Dan:
I kept the file structure exactly how it came. So yes, the includes folder is inside the "calendar" directory.
calendar/
calendar/includes
calendar/images
calendar/templates
calendar/language

The dbConnect.inc is inside the includes. What did I miss?
Connie
Back to top
View user's profile Send private message Visit poster's website
Dan
Admin / Developer
Admin / Developer


Joined: 19 Feb 2001
Posts: 2057

PostPosted: Sun Aug 13, 2006 10:33 pm    Post subject: Reply with quote

What's the exact error message you're getting?

Cheers,
Dan
Back to top
View user's profile Send private message Send e-mail Visit poster's website
connemara
Window Shopper
Window Shopper


Joined: 22 Mar 2005
Posts: 10
Location: Vancouver Island, Canada

PostPosted: Sun Aug 13, 2006 10:44 pm    Post subject: installation problems Reply with quote

Hi there Dan:
I get this:
Unable to locate the database at this time.

Another detail - not sure whether or not it is important. The site itself has just been moved over to a new server (the calendar script added to the new server), but the dns change has not been made - will probably be done tomorrow. Does that have any effect?
You can get to the site here:
http://209.172.32.92/~rugby and the calendar is in a folder within, so:
http://209.172.32.92/~rugby/calendar

What do you think?
Connie
Back to top
View user's profile Send private message Visit poster's website
Dan
Admin / Developer
Admin / Developer


Joined: 19 Feb 2001
Posts: 2057

PostPosted: Sun Aug 13, 2006 10:57 pm    Post subject: Reply with quote

Ah, so it isn't exactly the same as above... Have you checked the error logs to see if there's a path error reported like with the original poster?

I don't think the DNS status should be an issue, as the include problem is a server path, not a URL. My guess is an incorrect path setting for the new server setup.

Cheers,
Dan
Back to top
View user's profile Send private message Send e-mail Visit poster's website
DonnaNJ
Window Shopper
Window Shopper


Joined: 20 Jun 2006
Posts: 24

PostPosted: Mon Aug 14, 2006 12:18 pm    Post subject: Re: installation problems Reply with quote

connemara wrote:
Hi there Dan:
I get this:
Unable to locate the database at this time.

Another detail - not sure whether or not it is important. The site itself has just been moved over to a new server (the calendar script added to the new server), but the dns change has not been made - will probably be done tomorrow. Does that have any effect?
You can get to the site here:
http://209.172.32.92/~rugby and the calendar is in a folder within, so:
http://209.172.32.92/~rugby/calendar

What do you think?
Connie



Hi Connie

It's been my experience that usually DB stuff doesn't work until the DNS has been switched over and the paths are all correct.

Donna
_________________
Donna

DBK Web Development
Back to top
View user's profile Send private message
Dan
Admin / Developer
Admin / Developer


Joined: 19 Feb 2001
Posts: 2057

PostPosted: Mon Aug 14, 2006 4:48 pm    Post subject: Reply with quote

The paths are definitely important, but that should be independent from the DNS and domain. I've seen funny stuff with DNS propagation, though.

Cheers,
Dan
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AbleDesign Forum Index -> MyCalendar Discussion All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group


Home | Services | Pricing | Portfolio | About Us | Contact
Support | Programs | Purchase | Tutorials | Site Map

© 1999-2025 AbleDesign.com - Web Design that Can!