rockiger
Forum Replies Created
-
@ranierbonnici @ranierbonnici @ranierbonnici
Hello guys,
the problem should be fixed now. I released a new version today.
Forum: Plugins
In reply to: [ReactPress - Create React App for Wordpress] ReactPress breaks websiteHello @ranierbonnici,
I released a new version of ReactPress that should fix your issues. Could you please check?
@nickerzb I released a new version with your PR. Thanks again.
Forum: Plugins
In reply to: [ReactPress - Create React App for Wordpress] ReactPress breaks websiteHi @ranierbonnici,
cool that you managed to fix this. If it works for you, great!
I think the whole template filter is a bit dirty and doesn’t work on certain configurations. I will look into it this weekend (as long as my corona shot on friday allows it).
Would you like to share the page when it’s ready? I would love to see, what people are doing with the plugin.
Forum: Plugins
In reply to: [ReactPress - Create React App for Wordpress] ReactPress breaks websiteDo you have any other plugins installed, that mess with template loaders?
I could also be it is an issue with bluehost. I can’t tell to be honest.
Right now, you can’t.
You would need to make a copy of the app.
What kind of React app do you want to use more than once?
Ver cool,
I will prepare an updated release during the weekend. I was sick the last days, so I am drowning in work :(.
Thank you for debugging this issue. Your solution should probably work. The reason why I don’t use an absolute path is, that sometime on some hosting services the document root is not set.
Would you care to create a pull request at https://github.com/rockiger/reactpress? I don’t have docker setup for WordPress to test the changes, and honestly don’t want to set up one.
Forum: Reviews
In reply to: [ReactPress - Create React App for Wordpress] Worst WordPress PluginDid this solve your problems? If yes, could you please change your review?
It looks like, that ReactPress can’t reach the page that gets created.
Can you confirm that the page with the page slug can be viewed in WP?
The critical line in the code is:
$file_contents = file_get_contents(site_url() . '/' . $pageslug);
If the page gets created and is viewable, it seems that the site_url() function doesn’t return the right value.
I don’t know if this could be an issue with the docker image. Is using localWP an alternative for you?
Forum: Developing with WordPress
In reply to: Insert text at the current cursor position with JavaScriptThanks @hiyottaunits,
but what I don’t understand or don’t find, is an API, that lets me insert text at the current position in Gutenberg.
Forum: Reviews
In reply to: [ReactPress - Create React App for Wordpress] Worst WordPress PluginThe “Develop a new app” option only works when certain conditions are met. Unfortunately this doesn’t work with most dev environments. For me it only worked with Bitnami installer on Ubuntu. This is why I created “manual mode”.
To create a new app, you need to follow precisely these steps:
-
cd to [PATH_TO_PLUGINS]/plugins/reactpress/apps/
-
npx create-react-app [APPNAME]
-
Reload the ReactPress page in WP-Admin and set a page slug for your app that is not used by any other page.
-
cd [APPNAME]
yarn build
- Click on the slug in the WP-Admin and your built app should be there.
If you don’t see the rotating React logo, try to use a different WordPress dev environment. I recommend Local.
Forum: Reviews
In reply to: [ReactPress - Create React App for Wordpress] Worst WordPress PluginCould you please tell me, how ReactPress downs you site? What doesn’t work as expected?
I personally doubt that it has something to do with permissions.
Could you use local by flywheel for development?
-