WordExpress
WordExpress copied to clipboard
404 - Page Not Found
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
ASwp_term_relationships.object_id
,wp_term_relationships
.term_taxonomy_id
ASwp_term_relationships.term_taxonomy_id
,wp_term_relationships
.term_order
ASwp_term_relationships.term_order
,wp_term_relationships.wp_post
.id
ASwp_term_relationships.wp_post.id
,wp_term_relationships.wp_post
.post_author
ASwp_term_relationships.wp_post.post_author
,wp_term_relationships.wp_post
.post_title
ASwp_term_relationships.wp_post.post_title
,wp_term_relationships.wp_post
.post_content
ASwp_term_relationships.wp_post.post_content
,wp_term_relationships.wp_post
.post_excerpt
ASwp_term_relationships.wp_post.post_excerpt
,wp_term_relationships.wp_post
.post_status
ASwp_term_relationships.wp_post.post_status
,wp_term_relationships.wp_post
.post_type
ASwp_term_relationships.wp_post.post_type
,wp_term_relationships.wp_post
.post_name
ASwp_term_relationships.wp_post.post_name
,wp_term_relationships.wp_post
.post_parent
ASwp_term_relationships.wp_post.post_parent
,wp_term_relationships.wp_post
.menu_order
ASwp_term_relationships.wp_post.menu_order
,wp_term_relationships.wp_post.wp_postmeta
.meta_id
ASwp_term_relationships.wp_post.wp_postmeta.meta_id
,wp_term_relationships.wp_post.wp_postmeta
.post_id
ASwp_term_relationships.wp_post.wp_postmeta.post_id
,wp_term_relationships.wp_post.wp_postmeta
.meta_key
ASwp_term_relationships.wp_post.wp_postmeta.meta_key
,wp_term_relationships.wp_post.wp_postmeta
.meta_value
ASwp_term_relationships.wp_post.wp_postmeta.meta_value
FROM (SELECTwp_terms
.term_id
,wp_terms
.name
,wp_terms
.slug
,wp_terms
.term_group
FROMwp_terms
ASwp_terms
WHEREwp_terms
.slug
= 'primary-navigation' LIMIT 1) ASwp_terms
LEFT OUTER JOINwp_term_relationships
ASwp_term_relationships
ONwp_terms
.term_id
=wp_term_relationships
.term_taxonomy_id
LEFT OUTER JOINwp_posts
ASwp_term_relationships.wp_post
ONwp_term_relationships
.object_id
=wp_term_relationships.wp_post
.id
LEFT OUTER JOINwp_postmeta
ASwp_term_relationships.wp_post.wp_postmeta
ONwp_term_relationships.wp_post
.id
=wp_term_relationships.wp_post.wp_postmeta
.post_id
; Executing (default): SELECTid
,post_author
,post_title
,post_content
,post_excerpt
,post_status
,post_type
,post_name
,post_parent
,menu_order
FROMwp_posts
ASwp_posts
WHEREwp_posts
.post_status
= 'publish' ANDwp_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