rockiger
Forum Replies Created
-
Did you develop your app, according to the documentation? That means, did you develop in the provided subfolder of your WordPress dev environment?
If yes, there appears to be a rights issue on your provided URL, where it can’t load a script-tag. I don’t know if this is the script-tag that loads ReactPress.
This is difficult to debug for me. While it is not the intent of the plugin to add so many React apps to one WordPress site. I don’t see why it shouldn’t work.
Did you maybe add more than one React app to one page? Can you confirm that the React app is working? If you are using CRA, this could be the issue as CRA is not maintained any more.
I released an update last week, this should address the problem. Please let me know, if the error persists.
Hi, sorry for the problems.
Can you tell me more about your React app? Do you use CRA or Vite? Which page template do you use?Hmm, I never encountered that problem. Could it be that the page type did change or that the page is not published? I am honestly only guessing what the problem could be. How many pages does your site haves?
The page must be available via the WordPress REST api.
I hope this helps.
Forum: Plugins
In reply to: [ReactPress - Create React App for Wordpress] window.reactPress – undefinedDid you create your React app with vite or CRA? Are you talking about a build app or you the localhost (aka
npm run dev
)?My first guess is, that you have a custom React setup.
Yes, as soon as I find the time. It is a non-critical error, as repr_log is only used in case of where the plugin has some problems anyway.
Unfortunately, I don’t have an alternative. To be honest, I don’t think the information is accurate. WordPress itself uses escapeshellcmd. I don’t know how they run WordPress if it is disabled.
Imo, switch the hosting provider.
Forum: Plugins
In reply to: [ReactPress - Create React App for Wordpress] How to Target Index.php?I guess you didn’t create your React app with ReactPress in the first place. Are you using CRA here? Maybe you can refer to their documentation or use an absolute path to the gltf file.
The relative path you are using seems to be the problem for me.
- This reply was modified 5 months, 2 weeks ago by rockiger.
As I said you need hosting where the
file_get_contents
function of PHP is not deactivated. I can’t work around that.Forum: Plugins
In reply to: [ReactPress - Create React App for Wordpress] How to Target Index.php?ReactPress can’t add React apps to templates. What you can do, is using a page as homepage in your WordPress settings and add your React app there and build your
index.php
orfront-page.php
around that page.Hello Danylo,
at the moment there is no option to target posts with ReactPress. There was a plugin that you could use to add React apps to widgets, but it seems to been removed from WordPress plugins.
Thank you for your post.
It seems your hosting the PHP function
file_get_contents
. Without it, ReactPress doesn’t work. The error message is misleading because of a namespace issue, I will fix that error in future versions.Thank you for your post.
It seems your hosting the PHP functionfile_get_contents
. Without it, ReactPress doesn’t work. The error message is misleading because of a namespace issue, I will fix that error in future version.Is there any way to automatically prefix the CSS classes of MDB? Usually, you can use CSS-imports in your React components.