WordExpress icon indicating copy to clipboard operation
WordExpress copied to clipboard

404 - Page Not Found

Open abdokouta opened this issue 6 years ago • 0 comments

I have setup everything and connect it with wordpress database and it have been executing data as following

Executing (default): SELECT wp_terms.*, wp_term_relationships.object_id AS wp_term_relationships.object_id, wp_term_relationships.term_taxonomy_id AS wp_term_relationships.term_taxonomy_id, wp_term_relationships.term_order AS wp_term_relationships.term_order, wp_term_relationships.wp_post.id AS wp_term_relationships.wp_post.id, wp_term_relationships.wp_post.post_author AS wp_term_relationships.wp_post.post_author, wp_term_relationships.wp_post.post_title AS wp_term_relationships.wp_post.post_title, wp_term_relationships.wp_post.post_content AS wp_term_relationships.wp_post.post_content, wp_term_relationships.wp_post.post_excerpt AS wp_term_relationships.wp_post.post_excerpt, wp_term_relationships.wp_post.post_status AS wp_term_relationships.wp_post.post_status, wp_term_relationships.wp_post.post_type AS wp_term_relationships.wp_post.post_type, wp_term_relationships.wp_post.post_name AS wp_term_relationships.wp_post.post_name, wp_term_relationships.wp_post.post_parent AS wp_term_relationships.wp_post.post_parent, wp_term_relationships.wp_post.menu_order AS wp_term_relationships.wp_post.menu_order, wp_term_relationships.wp_post.wp_postmeta.meta_id AS wp_term_relationships.wp_post.wp_postmeta.meta_id, wp_term_relationships.wp_post.wp_postmeta.post_id AS wp_term_relationships.wp_post.wp_postmeta.post_id, wp_term_relationships.wp_post.wp_postmeta.meta_key AS wp_term_relationships.wp_post.wp_postmeta.meta_key, wp_term_relationships.wp_post.wp_postmeta.meta_value AS wp_term_relationships.wp_post.wp_postmeta.meta_value FROM (SELECT wp_terms.term_id, wp_terms.name, wp_terms.slug, wp_terms.term_group FROM wp_terms AS wp_terms WHERE wp_terms.slug = 'primary-navigation' LIMIT 1) AS wp_terms LEFT OUTER JOIN wp_term_relationships AS wp_term_relationships ON wp_terms.term_id = wp_term_relationships.term_taxonomy_id LEFT OUTER JOIN wp_posts AS wp_term_relationships.wp_post ON wp_term_relationships.object_id = wp_term_relationships.wp_post.id LEFT OUTER JOIN wp_postmeta AS wp_term_relationships.wp_post.wp_postmeta ON wp_term_relationships.wp_post.id = wp_term_relationships.wp_post.wp_postmeta.post_id; Executing (default): SELECT id, post_author, post_title, post_content, post_excerpt, post_status, post_type, post_name, post_parent, menu_order FROM wp_posts AS wp_posts WHERE wp_posts.post_status = 'publish' AND wp_posts.post_name = 'homepage' LIMIT 1;

and when i run localhost:3000 i get 404 - Page Not Found i have removed the NotFound layout from Layouts.js and i got the message that

Uncaught TypeError: Cannot read property 'Component' of undefined at WordExpressPage.render (webpack-internal:///962:55) at eval (webpack-internal:///577:793) at measureLifeCyclePerf (webpack-internal:///577:73) at ReactCompositeComponentWrapper._renderValidatedComponentWithoutOwnerOrContext (webpack-internal:///577:792) at ReactCompositeComponentWrapper._renderValidatedComponent (webpack-internal:///577:819) at ReactCompositeComponentWrapper._updateRenderedComponent (webpack-internal:///577:743) at ReactCompositeComponentWrapper._performComponentUpdate (webpack-internal:///577:721) at ReactCompositeComponentWrapper.updateComponent (webpack-internal:///577:642) at ReactCompositeComponentWrapper.receiveComponent (webpack-internal:///577:544) at Object.receiveComponent (webpack-internal:///87:122)

i think that's why 404 - Page Not Found was showing so i have try to define the component but i stuck with this message

abdokouta avatar Mar 09 '18 00:03 abdokouta