WordPress database error: [Can't create/write to file '/tmp/#sql-temptable-4db-12f01d-243.MAI' (Errcode: 28 "No space left on device")]SELECT p.* FROM wp_mdb_forum_posts AS p LEFT JOIN wp_mdb_forum_posts AS q ON( q.Id = p.ParentId AND p.Id = q.AcceptedAnswerId ) WHERE p.PostTypeId = 2 AND p.ParentId = 102404 GROUP BY p.Id ORDER BY CASE WHEN q.Id IS NOT NULL THEN 1 ELSE 0 END DESC, p.UpvoteCount DESC, p.CreationDate ASC
Topic: Laravel Order-Issue: toastr || sideNav || Tooltip not work
Expected behavior
I add my JS files to my laravel application html code in following order:
- Header:
- jQuery
- Bootstrap
- mdbpro
Now i can use toastr, the sideNav, the tooltips and all the other wonderful components from mdbootstrap pro.
Actual behavior
When i add all the JS Files to the footer, the sideNav and the tooltips works fine but the toastr gives an error: ReferenceError: toastr is not defined
When i add the JS Files to the header, the sideNav gives an error: TypeError: $(...).sideNav is not a function
and the tooltip don´t work and, well, actually nothing works.
Resources (screenshots, code snippets etc.)
With webpack, i implement the JS files in following order:
window.Popper = require('popper.js').default;
//It´s not running without this: (ReferenceError: $ is not defined):
window.$ = window.jQuery = require('jquery');
require('./../../node_modules/mdbootstrap-pro/js/bootstrap.js');
require('./../../node_modules/mdbootstrap-pro/js/mdb.js');
And the SCSS Files in this Order:
@import '~mdbootstrap-pro/css/bootstrap.min.css';
@import '~mdbootstrap-pro/scss/mdb';
I added the JS file in my HTML-Header:
<script src="{{ asset('js/app.js') }}"></script>
ReferenceError: toastr is not defined
TypeError: $(...).sideNav is not a function
Hope you have an solution. Regards
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Free
- Premium support: No
- Technology: MDB jQuery
- MDB Version: 4.8.8
- Device: PC
- Browser: Firefox
- OS: Windows 10
- Provided sample code: No
- Provided link: No