Hey @ritarodev,
unfortunately, it is very hard for me to debug Windows installations. I can only run Windows in a VM. Anyway, let’s give it a try.
Could you please post your configuration?
OS: I guess Windows
Plugin version: ?
Do you have other plugins activated?
Also, could you install WP Debugging, and look into wp-debug log?
-
This reply was modified 3 years, 8 months ago by
rockiger.
I think I’ve found the problem. localwp instalation folder is named “Local Sites”. I think because of it has “space” character in the name, makes the template loader getting error.
in my local instalation, the page loader stream for
C:UsersrizatLocal Sitestoomansv4apppublicwp-contentpluginsreactpress/templates/react-page-template.php
which it’s supposed to be
C:Users/rizat/Local Sites/toomansv4/app/publicwp-content/plugins/reactpress/templates/react-page-template.php
do you have any possible solution for it?
or maybe you can share a way to hardcode it?
I can finally solved my problem. simply by using another template provided by wordpress. Curently I use plugin named “blank” which provide fully blank page so I can display the react app without any elements from wordpress.
but I’m curious what is the different of using your default template compared the already available template? because right now I noticed that there’s another problem occur, when I use Router, it works when I access the url route from the react pages. but when I copy the link and access it directly on search bar, it shows the wordpress 404 page. I wonder if your default page can solve this problem.
Great!
I can’t tell you why the included template makes problems. I never had this issue in my tests. If you care, you could write a bug report at: https://github.com/rockiger/reactpress/issues
To get the router working, refer to https://rockiger.com/en/reactpress/client-side-routing/. You probably have to set the baseUrl.
I already put the basename and my routing already works. but the problem is it’s only works when I access it through the react app. when I access the routing url directly via browser it shown the 404 error page from wordpress.
even the react pages only work if I access the url > mysite.com/[app-slug] from wordpress menu navigation. but when I refresh the page it also shown the 404 error page from wordpress. I think it’s a huge problem since we often refresh page.
yup, I will write the bug report on your github.