Login or Register

RSS IconRecent posts in this topic

avatar
bloom on Mar 4. 2007. 7:44 am
While working to get FastCGI setup for php5 on my account the host reported this issue to me:

[Sun Mar 4 08:24:50 2007] [error] [client 64.81.196.17] FastCGI: server "/hsphere/local/home/username/domain.xxx/php.fcgi" stderr: PHP Fatal error: Class 'DB' not found in /hsphere/local/home/username/domain.xxx/init.php on line 98

init.php ~ line 98:

// Connect to database...
try {
DB::connect(DB_ADAPTER, array(
'host' => DB_HOST,
'user' => DB_USER,
'pass' => DB_PASS,
'name' => DB_NAME,
'persist' => DB_PERSIST
)); // connect

I've checked my config and all is well. PHP Version 5.1.4. When I try to load the site in a browser I just get a blank white page. I've searched the forums for fastcgi, .fcgi, etc. and not come up with any answers. Can anyone point me in the right direction?

Thanks,
Shelley
avatar
bloom on Mar 4. 2007. 7:57 am
Update. I turned debug on and got a little more information.

Warning: include(/home/content/s/m/k/username/html/projects/environment/library/database/DB.class.php) [function.include]: failed to open stream: No such file or directory in /hsphere/local/home/smkeith/projects.k-kubed.com/application/functions.php on line 20

Warning: include() [function.include]: Failed opening '/home/content/s/m/k/username/html/projects/environment/library/database/DB.class.php' for inclusion (include_path='/hsphere/local/home/smkeith/projects.k-kubed.com:/hsphere/local/home/smkeith/projects.k-kubed.com/application') in /hsphere/local/home/smkeith/projects.k-kubed.com/application/functions.php on line 20

Fatal error: Class 'DB' not found in /hsphere/local/home/username/domain.xxx/init.php on line 98

The paths in the 2 warnings are not the correct path into my site, but the "Fatal Error" path is correct. Has anyone seen this before? I've submitted this info to my host as well, I'm just hoping to get this cleared up asap.

Thanks,
Shelley
avatar Staff
Ilija Studen on Mar 4. 2007. 10:12 am
Basically you need to make sure that DB.class.php is available on location specified by warning. Simple reupload of DB.class.php to specified location should do the trick. Filenames are case sensitive so check if case of letters is correct.
activeCollab Team Member
avatar
bloom on Mar 4. 2007. 12:03 pm
It was paths in the files in the /cache folder. I was moving from one host to another. I replaced all of the bad paths with the new paths and it works.
avatar Staff
Ilija Studen on Mar 4. 2007. 12:06 pm
Yeah, when you move you should delete autoload.php file and let the system regenerate it.
activeCollab Team Member
avatar
bloom on Mar 4. 2007. 12:16 pm
Ok, good to know. Now aC thinks I need to upgrade (I don't, I had already done so before migrating) but it thinks I'm on v0.6. I went ahead and did the file delete/upload and tried to use the /public/upgrade script but I get an error on 0.6 > 0.7:

# Failed to execute DB schema transformations. MySQL said: Table 'ac_attached_files' already exists

when I try to upgrade 0.7 > 0.7.1 I get:

This upgrade script can be used only to upgrade 0.7 to 0.7.1

Any ideas?
avatar Staff
Ilija Studen on Mar 4. 2007. 3:10 pm
Add this to your config/config.php:

define('PRODUCT_VERSION', '0.7.1');
activeCollab Team Member
avatar
bloom on Mar 4. 2007. 3:28 pm
Thanks Ilija. I'd tried that once, but didn't click to the upgrade page so I assumed it hadn't worked (the blaze orange didn't go away). This time it worked. Thanks!
avatar Staff
Ilija Studen on Mar 5. 2007. 4:56 am
I'm glad that problem is resolved.

Have fun!
activeCollab Team Member
Topic is locked. If you have something important to say about issues discussed on this page please write at hi@a51dev.com.

RSS IconRecent posts in this topic