Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

API Key Error

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Add-ons
View previous topic :: View next topic  
Author Message
Zoszko
Smarty Rookie


Joined: 28 Aug 2008
Posts: 5

PostPosted: Thu Aug 28, 2008 7:59 am    Post subject: API Key Error Reply with quote

Hi all!

I have an error message:

Fatal error: Class 'DB' not found in mywebpath/ wwwroot/GoogleMapAPI.class.php on line 1240

So i have an empty DB.php.

Please somebody write here an exapmle source code of DB.php

Thank You!
Back to top
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Thu Aug 28, 2008 1:25 pm    Post subject: Reply with quote

DB.php is from PEAR, make sure you have the PEAR DB module installed (as per the installation instructions.)
Back to top
View user's profile Send private message Visit poster's website
Zoszko
Smarty Rookie


Joined: 28 Aug 2008
Posts: 5

PostPosted: Thu Aug 28, 2008 6:36 pm    Post subject: Reply with quote

PEAR DB module ? Very Happy I check my web server settings or what? Please help! Its very importannt to me. I use a web server pack ( Eazy File Sharing Web Server) its include apache"2"/php5/mysql/ftp/ and i don't change the sample config becouse it's working good with any CMS and I don't know what can I do to its works!
Back to top
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Thu Aug 28, 2008 7:12 pm    Post subject: Reply with quote

If you don't know how PEAR works, maybe check the documentation on PEAR at the php.net site. It might be as simple as (command line):

Code:
pear install DB


Otherwise, you can use your own database libraries that you are familiar with. The example just uses PEAR DB.
Back to top
View user's profile Send private message Visit poster's website
Zoszko
Smarty Rookie


Joined: 28 Aug 2008
Posts: 5

PostPosted: Thu Aug 28, 2008 7:38 pm    Post subject: Reply with quote

Well i install PEAR... but the error is alive. So if I not mistaken It do the mysql things reading/writing. What mus change in the source code to it woks in a simple webserver ?
Back to top
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Thu Aug 28, 2008 7:44 pm    Post subject: Reply with quote

install pear, then install the DB pear module. Does that not work?
Back to top
View user's profile Send private message Visit poster's website
Zoszko
Smarty Rookie


Joined: 28 Aug 2008
Posts: 5

PostPosted: Thu Aug 28, 2008 11:24 pm    Post subject: Reply with quote

Well. Now I install PEAR and in the PEAR DIR I see a Db dir... i think I install the DB modul too. And now the erro message is:
Fatal error: Cannot access empty property in W:\web\GoogleMapAPI.class.php on line 1240

What can i do now ?
Back to top
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Fri Aug 29, 2008 12:36 am    Post subject: Reply with quote

Did you set the DSN?
Back to top
View user's profile Send private message Visit poster's website
Zoszko
Smarty Rookie


Joined: 28 Aug 2008
Posts: 5

PostPosted: Sun Aug 31, 2008 10:39 am    Post subject: Reply with quote

I uninstall the web server and install an other one... and now it's work Very Happy
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Add-ons All times are GMT
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, 2005 phpBB Group
Protected by Anti-Spam ACP