⚠ 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

Error in Grocery Crud while loading page



Firoz PJ
  • profile picture
  • Member

Posted 04 March 2014 - 12:27 PM

Fatal error: Call to undefined method grocery_CRUD::set_js_lib() in public_html/admin/assets/grocery_crud/themes/custom_checkbox_flexigrid/views/list_template.php on line 3

 

<?php
$this->set_css($this->default_theme_path.'/custom_checkbox_flexigrid/css/flexigrid.css');
$this->set_js_lib($this->default_javascript_path.'/'.grocery_CRUD::JQUERY);
 
$this->set_js_lib($this->default_javascript_path.'/jquery_plugins/jquery.noty.js');
$this->set_js_lib($this->default_javascript_path.'/jquery_plugins/config/jquery.noty.config.js');
$this->set_js_lib($this->default_javascript_path.'/common/lazyload-min.js');
 
if (!$this->is_IE7()) {
$this->set_js_lib($this->default_javascript_path.'/common/list.js');
}
 
$this->set_js($this->default_theme_path.'/custom_checkbox_flexigrid/js/cookies.js');
$this->set_js($this->default_theme_path.'/custom_checkbox_flexigrid/js/flexigrid.js');
$this->set_js($this->default_theme_path.'/custom_checkbox_flexigrid/js/jquery.form.js');
$this->set_js($this->default_javascript_path.'/jquery_plugins/jquery.numeric.min.js');
$this->set_js($this->default_theme_path.'/custom_checkbox_flexigrid/js/jquery.printElement.min.js');
 
/** Fancybox */
$this->set_css($this->default_css_path.'/jquery_plugins/fancybox/jquery.fancybox.css');
$this->set_js($this->default_javascript_path.'/jquery_plugins/jquery.fancybox-1.3.4.js');
$this->set_js($this->default_javascript_path.'/jquery_plugins/jquery.easing-1.3.pack.js');
 
/** Jquery UI */
$this->load_js_jqueryui();
 
?>
 

 


Amit Shah
  • profile picture
  • Member

Posted 04 March 2014 - 14:05 PM

well.. check if that function exists..

rather thn that - u can simply use set_js


Firoz PJ
  • profile picture
  • Member

Posted 04 March 2014 - 15:55 PM

 commenting  $this->load_js_jqueryui(); and use set_js then it work properly. But i try to edit then contents are listed with two error

 

1.

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: unique_hash

Filename: views/edit.php

Line Number: 10

 

This is the code:

 

<div class="flexigrid crud-form" style='width: 100%;' data-unique-hash="<?php echo $unique_hash; ?>">

 

 

2.

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: is_ajax

Filename: views/edit.php

Line Number: 51

 

This is the code:

 

<?php if ($is_ajax) { ?><input type="hidden" name="is_ajax" value="true" /><?php }?>