⚠ 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

Issues with Bootstrap Theme



fapth

fapth
  • profile picture
  • Member

Posted 17 April 2017 - 08:39 AM

Hello together,

 

after installing the Bootstrap Theme I got some big Issues:

 

1. "Update and go back to list" is without any functionality. U can click on it, but nothing happends.

2. "Update Changes" brings me to an other side, where this appears to me:

{"success":true,"insert_primary_key":true,"success_message":"
Daten wurden erfolgreich aktualisiert. Gehe zur\u00fcck zur Liste<\/a><\/p>","success_list_url":"http:\/\/localhost\/test\/index.php\/jobs\/index\/success\/1"}

When is start firebug on this page "http://localhost/test/index.php/jobs/index/edit/1" I got following Error Message:

common.min.js:1 Uncaught ReferenceError: CacheLibrary is not defined
    at HTMLDocument.<anonymous> (common.min.js:1)
    at j (jquery-1.11.1.min.js:2)
    at Object.fireWith [as resolveWith] (jquery-1.11.1.min.js:2)
    at Function.ready (jquery-1.11.1.min.js:2)
    at HTMLDocument.J (jquery-1.11.1.min.js:2)

this is my template

<!DOCTYPE html>
<html lang="de">
<head>
    <meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> 
<?php 
foreach($css_files as $file): ?>
    <link type="text/css" rel="stylesheet" href="<?php echo $file; ?>" />
 
<?php endforeach; ?>
<?php foreach($js_files as $file): ?>
 
    <script src="<?php echo $file; ?>"></script>
<?php endforeach; ?>
 

</head>
<body>
<!-- Beginning header -->
    <div>
        <a href='<?php echo site_url('page1')?>'>page1</a> | 
        <a href=''>Platzhalter</a>

 
    </div>
<!-- End of header-->
    <div style='height:20px;'></div>  
    <div>
<?php echo $output; ?>
 
    </div>
<!-- Beginning footer -->
<div> Copyright </div>
<!-- End of Footer -->
</body>
</html>

Can u help me out with that?


Amit Shah

Amit Shah
  • profile picture
  • Member

Posted 17 April 2017 - 12:37 PM

Check the list of the Script files.. that are getting loaded. Especially - JQuery - are there more then 1 JQuery being loaded? If so, try unset jquery in the GC .. and see if the issue gets resolved.

 

Also make sure that there aint much errors that are occuring at the time of the page being loaded - if it is .. 1st you need to make sure that the error is resolved.

 

Happy GCing:)


fapth

fapth
  • profile picture
  • Member

Posted 19 April 2017 - 09:10 AM

Hello Shah,

 

there is just one jquery-min loaded. //$crud->unset_jquery_ui(); and //$crud->unset_jquery(); dont resolve my Problem. There is also just on Error

<head>
    <meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> 
    <link type="text/css" rel="stylesheet" href="http://localhost/test/assets/grocery_crud/css/ui/simple/jquery-ui-1.10.1.custom.min.css" />
 
    <link type="text/css" rel="stylesheet" href="http://localhost/test/assets/grocery_crud/css/jquery_plugins/file_upload/file-uploader.css" />
 
    <link type="text/css" rel="stylesheet" href="http://localhost/test/assets/grocery_crud/css/jquery_plugins/file_upload/jquery.fileupload-ui.css" />
 
    <link type="text/css" rel="stylesheet" href="http://localhost/test/assets/grocery_crud/css/jquery_plugins/fancybox/jquery.fancybox.css" />
 
    <link type="text/css" rel="stylesheet" href="http://localhost/test/assets/grocery_crud/css/jquery_plugins/file_upload/fileuploader.css" />
 
    <link type="text/css" rel="stylesheet" href="http://localhost/test/assets/grocery_crud/themes/bootstrap-v4/css/bootstrap/bootstrap.min.css" />
 
    <link type="text/css" rel="stylesheet" href="http://localhost/test/assets/grocery_crud/themes/bootstrap-v4/css/elusive-icons/css/elusive-icons.min.css" />
 
    <link type="text/css" rel="stylesheet" href="http://localhost/test/assets/grocery_crud/themes/bootstrap-v4/css/common.css" />
 
    <link type="text/css" rel="stylesheet" href="http://localhost/test/assets/grocery_crud/themes/bootstrap-v4/css/general.css" />
 
    <link type="text/css" rel="stylesheet" href="http://localhost/test/assets/grocery_crud/themes/bootstrap-v4/css/add-edit-form.css" />
 
    <link type="text/css" rel="stylesheet" href="http://localhost/test/assets/grocery_crud/themes/bootstrap-v4/css/main.css" />
 
 
    <script src="http://localhost/test/assets/grocery_crud/js/jquery-1.11.1.min.js"></script>
 
    <script src="http://localhost/test/assets/grocery_crud/js/jquery_plugins/ui/jquery-ui-1.10.3.custom.min.js"></script>
 
    <script src="http://localhost/test/assets/grocery_crud/js/jquery_plugins/tmpl.min.js"></script>
 
    <script src="http://localhost/test/assets/grocery_crud/js/jquery_plugins/load-image.min.js"></script>
 
    <script src="http://localhost/test/assets/grocery_crud/js/jquery_plugins/jquery.iframe-transport.js"></script>
 
    <script src="http://localhost/test/assets/grocery_crud/js/jquery_plugins/jquery.fileupload.js"></script>
 
    <script src="http://localhost/test/assets/grocery_crud/js/jquery_plugins/config/jquery.fileupload.config.js"></script>
 
    <script src="http://localhost/test/assets/grocery_crud/js/jquery_plugins/jquery.fancybox-1.3.4.js"></script>
 
    <script src="http://localhost/test/assets/grocery_crud/js/jquery_plugins/jquery.easing-1.3.pack.js"></script>
 
    <script src="http://localhost/test/assets/grocery_crud/js/jquery_plugins/config/jquery.fancybox.config.js"></script>
 
    <script src="http://localhost/test/assets/grocery_crud/themes/bootstrap-v4/js/jquery-plugins/jquery.form.min.js"></script>
 
    <script src="http://localhost/test/assets/grocery_crud/themes/bootstrap-v4/js/common/common.min.js"></script>
 
    <script src="http://localhost/test/assets/grocery_crud/themes/bootstrap-v4/js/form/edit.js"></script>
 

</head>

When is witch to flexgrid. Everything is working fine


fapth

fapth
  • profile picture
  • Member

Posted 19 April 2017 - 12:37 PM

Okay i fixed it... i dont know what was the problem, but i copied grocery crud folder again in to my workspace...


Amit Shah

Amit Shah
  • profile picture
  • Member

Posted 20 April 2017 - 09:19 AM

well some files must have missed out..

 

Good thing you were able to solve it.. Happy to hear that

Happy GCing :)