WordPress database error: [Can't create/write to file '/tmp/#sql-temptable-4db-160c86-7e.MAI' (Errcode: 28 "No space left on device")]
SELECT p.*, o.option_value, GROUP_CONCAT(DISTINCT CONCAT(m.meta_key, "::", m.meta_value) separator "::::") as seo_meta, t.slug, tr.language_code as language FROM wp_posts p JOIN wp_postmeta m ON p.ID = m.post_id JOIN wp_options o ON o.option_name = "siteurl" JOIN wp_term_relationships r ON r.object_id = p.ID JOIN wp_term_taxonomy x ON x.term_taxonomy_id = r.term_taxonomy_id JOIN wp_terms t ON t.term_id = x.term_id JOIN wp_icl_translations tr ON p.ID = tr.element_id WHERE post_type = "page" AND post_status = "publish" AND tr.language_code = 'en' AND t.slug IN ('jquery') AND x.taxonomy = "page_cat" AND tr.element_type = "post_page" AND meta_key IN ("_yoast_wpseo_title", "_yoast_wpseo_metadesc") GROUP BY p.ID

WordPress database error: [Can't create/write to file '/tmp/#sql-temptable-4db-160c86-7f.MAI' (Errcode: 28 "No space left on device")]
SHOW FULL COLUMNS FROM `wp_options`

You should not use or withRouter() outside a

WordPress database error: [Can't create/write to file '/tmp/#sql-temptable-4db-160c86-80.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 = 97241 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: You should not use <Route> or withRouter() outside a <Router>

neighlyd asked 6 years ago

Expected behavior

To be able to render NavBar links within a react-router <Router>.

Actual behavior

Returns error You should not use <Route> or withRouter() outside a <Router>.

I'm not sure why this is occurring. As you can see in my code below, the header code, with the MDBNavbar and MDBNavbarBrand are within the <Router>. I've tried to strip my code down to the most bare elements (no Redux, no history, no components) and I'm still getting this error.

Any input or assistance would be greatly appreciated. Thank you.

Resources (screenshots, code snippets etc.)

import React from 'react'
import ReactDOM from 'react-dom'
import * as serviceWorker from './serviceWorker'

// MDB React initialization
import '@fortawesome/fontawesome-free/css/all.min.css'
import 'bootstrap-css-only/css/bootstrap.min.css'
import 'mdbreact/dist/css/mdb.css'

import {BrowserRouter as Router} from 'react-router-dom'
import {MDBNavbar, MDBNavbarBrand} from 'mdbreact'


const target = document.querySelector('#root')

const jsx = (
    <div>
    <Router>
        <header>
            <MDBNavbar expand='md' scrolling fixed='top'>
                <MDBNavbarBrand href='/'>
                    <strong >Job Hunt App</strong>
                </MDBNavbarBrand>
            </MDBNavbar>       
        </header>
    </Router>
    </div>
)

ReactDOM.render(jsx, target)

Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: MDB React
  • MDB Version: 4.13.0
  • Device: MacBook Air
  • Browser: Chrome
  • OS: Mac OS
  • Provided sample code: No
  • Provided link: No