Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No content displaying #122

Open
patgas opened this issue Jan 10, 2021 · 3 comments
Open

No content displaying #122

patgas opened this issue Jan 10, 2021 · 3 comments

Comments

@patgas
Copy link

patgas commented Jan 10, 2021

Hello, after installation I had a problem with all.filter not being a function, after some tweaking in settings.js and router I eliminated the console errors.
Now my console is clear but there is still no content ( no homepage, no blog, can't even see the Hello world post via the "View" button )
Does anyone have an idea why is that?

@patgas
Copy link
Author

patgas commented Jan 12, 2021

I managed to fix it, at least partially.

When you encounter the same problem and you are running a local env like XAMPP ( as I do ), your URL looks something like "https://localhost/wordpress", therefore in router/index.js your paths should look like this path: '/wordpress' and not like the default '/'.

This fixed the homepage ( the default one ) and the posts for me, I'm still having a struggle with displaying the Page ( eg. Sample Page ), I'm only seeing Loading... and nothing never loads ( no console errors ).
https://prnt.sc/wlxog3
Still working on this, I will update if I learn anything

@patgas
Copy link
Author

patgas commented Jan 12, 2021

It seems that Pages are treated as Posts therefore the Vue methods can't handle the content ( I'm basing that on WP/Vue loading the Post.vue template instead of Page.vue ). post variable is never set to true ( or just not false ) and Page view is stuck in the infinite loading screen.

Correct me if I'm wrong about this :D

@Cobb-Zhang
Copy link

I have encounted the same error.
Maybe you can check the src/settings.js,the API_BASE_PATH should also add the base link like '/wordpress'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants