Thanks for the plugin! Some suggested fixes here.
This:
~/ngrok http -host-header=localdomain.test 8888
needs an extra -
for the --host-header
.
Also, I’d advise to use just the command ngrok
, not with your ~/
path prefixed, which is dependent on how the user installed ngrok
I had a problem related to the URL being placed in CSS by Elementor. The plugin was not replacing the PATH for a relative PATH. The CSS was in the following format: “background-image:url(ABSOLUTE_PATH);”
The solution was to add the following piece of codes after the row 131 from core.php:
$page_html = str_replace('https://'.$_SERVER['HTTP_HOST'], '', $page_html);
$page_html = str_replace('https://'.$_SERVER['HTTP_HOST'], '', $page_html);
]]>
my wp-ngrok works only to the step where I type the command ngrok http 80 in terminal.
Using the generated links directs me to the Apache2 Debian Default Page.
What should I replace or change in WordPress or elsewhere to have it work???
Page I am working on is not live without domain.
]]>I’m using XAMPP with apache and mysql on Windows 10. When I ngrok it displays me this:
GET /wp-content/themes/neve/assets/js/build/modern/frontend.js 404 Not Found GET /wp-includes/js/wp-emoji-release.min.js 404 Not Found GET /wp-content/themes/neve/style-main.min.css 404 Not Found GET /wp-content/uploads/2020/12/web-agency-logo-3.png 404 Not Found GET /wordpress/ 404 Not Found GET /favicon.ico 200 OK GET /wp-includes/css/dist/block-library/style.min.css 404 Not Found GET /wp-includes/js/wp-embed.min.js 404 Not Found GET /wp-includes/js/wp-embed.min.js 404 Not Found GET / 302 Found
I’m using this command for ngrok:
ngrok http -host-header=localdomain.test 80
Website is working perfectly fine in localhost
but when I type ngrok address website title is “Page not found”
Great looking plugin!
I’m using this with Local / Flywheel, so the command I used to get it running is ngrok http -host-header=local-site.org 443
When running either the http or https ngrok link, the site does somewhat load with this warning:
Notice: Constant WP_PLUGIN_DIR already defined in /Users/alexwright/Sites/level/app/public/wp-content/plugins/wp-ngrok/core.php on line 106
The site somewhat loads the parent theme but not much of anything beyond that.
Happy to send any other ngrok inspect details.
]]>