⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Groceryoracle DB connection error



Alfandi Nurulmukhlis
  • profile picture
  • Member

Posted 23 June 2014 - 17:40 PM

Hi !
 
i've downloaded Groceryoracle from tee_porsche
 
i think oracle DB Connection is not problem, but i get error like this :
 
Fatal error: Call to undefined method grocery_CRUD::set_js_lib() in C:\xampp\htdocs\CI\assets\grocery_crud\themes\flexigrid\views\list_template.php on line 3

i use oracle 11g, and i make sure php_oci8_11g.dll extension is loaded in php.ini

 

this is my database.php configuration :

$active_group = 'default';
$active_record = TRUE;

$tnsname = '(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
        (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = XE)))';

$db['default']['hostname'] = $tnsname;
$db['default']['username'] = 'SYSTEM';
$db['default']['password'] = 'telkom';
$db['default']['database'] = '';
$db['default']['dbdriver'] = 'oci8';
$db['default']['dbprefix'] = '';
$db['default']['pconnect'] = TRUE;
$db['default']['db_debug'] = TRUE;
$db['default']['cache_on'] = FALSE;
$db['default']['cachedir'] = '';
$db['default']['char_set'] = 'utf8';
$db['default']['dbcollat'] = 'utf8_general_ci';
$db['default']['swap_pre'] = '';
$db['default']['autoinit'] = TRUE;
$db['default']['stricton'] = FALSE;

please help me, i can't fix that error yet :(

 

 

 


Amit Shah
  • profile picture
  • Member

Posted 25 June 2014 - 03:23 AM

Well the connection is definately not the error in here - will recommend you checkout if the GC library has set_js_lib

 function or not. If it dont - i will recommend you grab up the code from the latest repository and update it with the grocery oracle library of yours. Once done in that way, it should resolve your issue / error.

 

Happy GCing :)


Alfandi Nurulmukhlis
  • profile picture
  • Member

Posted 25 June 2014 - 09:21 AM

thank you for reply,..

ok,  i'll try to checkout GC library.


Alfandi Nurulmukhlis
  • profile picture
  • Member

Posted 25 June 2014 - 09:31 AM

OMG you right, my GC lib file miss some code

 

public function set_js_lib($js_file)
	{
		$this->js_lib_files[sha1($js_file)] = base_url().$js_file;
		$this->js_files[sha1($js_file)] = base_url().$js_file;
	}

but i get another error, i think i need to repair my GC lib,.. 

thank you for help


Amit Shah
  • profile picture
  • Member

Posted 26 June 2014 - 16:46 PM

Well Happy to help,

 

Happy GCing :)