Welcome Guest, Not a member yet? Register   Sign In
Call to undefined function DB() in ... /system/core/Loader.php on line 346
#1

[eluser]thomasz[/eluser]
I am truly at my wits end and need some assistance. I am not a newbie as I have been working with CI since 2008 and live in a hosted production environment late in that year. I am running LAMP with Ubuntu 10.04 and php 5.3.2 and in the processes of bringing up a new production server. I have a staging environment running with same version of Ubuntu and PHP and everything works fine. However when I deploy out to my [new] hosted server everything falls apart.

When I go to the home page I am getting the following error:
Call to undefined function DB() in [path]/system/core/Loader.php on line 346

This is getting triggered when the database() function is called in Loader.php. I have verified the permissions as well as the ability for the file to get loaded (I tried reading it with file_get_contents using the same string.

Other PHP apps are working fine including phpMyAdmin so I feel the LAMP configuration is fine. I have also tried deleting and reuploading the full site multiple times. I am completely out of ideas and don't know what to try next!


Messages In This Thread
Call to undefined function DB() in ... /system/core/Loader.php on line 346 - by El Forum - 05-03-2012, 08:15 PM



Theme © iAndrew 2016 - Forum software by © MyBB