WP WooCommerce Webhook URL is not triggering in Live environment - wordpress

I installed wordpress (with woocommerce) plugin in this location
subdomain.example.com
Then create a my php file for webhook in this location
example.com/webhook/file.php
I put this webhook url into webhook settings inside woocommerce with when order is created.
As I save the settings webhook was triggered because I'm creating a folder when ever someone creates order from front side of wordpress site.
This is the code inside my file.php
mkdir('foldername', 0777, true);
The issue is that when someone creates an order its not triggering the url, because if it was triggered then I will see the folder created by my code into my file location but its not exist. Its mean url was not hit(triggered) successfully.
The same thing is working fine in my localhost environment. I'm struggling this from several days and I'm unable to find the solution inside stackoverflow/google.
There is nothing critical in my woocommerce status;
PHP version okey 5.6
Latest wordpress version till current date.
Latest woocommerce plugin till current date.
Any help will be appreciated, thank you guys!
Regards
Tahir

Sorry guys, I have fixed the issue myself, my website has SSL and all my URLs are forcefully redirecting to https and I have putted the URL in webhook as non https, so my server were trying to move that URL and this way it was giving 302 Error.
Issue is now fixed after putting https in the webhook URL.
Thank you guys!

Related

Firebase Site - Invalid Dynamic Link

I had not setup Dynamic Link on the site, but I had just added a custom domain and connected it to have the SSL.
Today when i tried to access my site, i notice that is append ?_imcp=1 to it and have the following message
Invalid Dynamic Link. Any help?
Addition some updates. After spending the evening trying to figure out what's wrong.
I am able to do a www.xxx.com -> redirect to xxx.com. This works perfectly
But if i were to hit xxx.com directly, its append ?_imcp=1 to it.
Ok this is probably a patch solution.
I basically did a redirect of xxx.com to www.xxx.com.
And i did a redirect of www.xxx.com to xxx.com
This bring up the website. But if anyone have proper solution. Please post here.

Open /wp-json response with "forbidden_access"

I installed a customer project on my local machine.
I want to create a new REST API route.
On the live website, i can see the wp-json data.
But when i call the wp-json on localhost, i get this message:
I have a couple of wordpress websites on localhost and everyone work without any problems. Instead of this wordpress installation. I already uninstalled all plugins and the message still appear.
Has anyone an idea to solve this problem?
This could be a permalink issue, go to Settings > Permalinks and change the setting to "Post name" and save settings, then check if you get the same issue or not.

wordpress backend redirect to blank page after changing to https

thanks in advance for your help! :)
my webpage is running on cloudflare and I activated the flexible ssl certificate. I ran into some redirect errors and also could not log into the admin panel. so I installed a plugin called "cloudflare flexible ssl" which prevents the redirect loop happening.
However, every time I am saving something in Wordpress (posting smth, activating plugins, installing plugins, actually every action you can perform) it redirects to a blank page. When I go back, everything got saved/the action was executed. I tried to turn on the debug log but it did not work.
Anyone got an idea how to proceed? Do you need any more information?
for example: when trying to activate the preview function it shows that it wants to get to that page
[
But it opens this one
thanks again!
If you changed your Hosting to a https URl, you have to change all URLs in your Wordpress Installation to https.
(Wordpress Adress and Site Adress)

getting 404 error on wordpress pages

I've seen some other people with the same issue on net,
but the solution that worked for them (updating the .htacess file), didn't go very well for me!
I used buddypress to migrate my wordpress site to my local pc, but after everything is setup, only the home page is working, other posts or pages are getting 404 errors, I also tried to deactivate plugins and changing the theme, but nothing worked.
I'm on windows 10 and i'm using wampserver 2.5.
I think that the issue is caused by Apache, but I don't know how to fix it!
my Apache version is 2.4.9
Thanks in advance guys :)
Your site’s permalink (WordPress Admin > Settings > Permalink) is set as Default, please change it to any of the other option available below. e.g: Day and name, Post name etc.
Then you’ll be able to access the board instead of the 404 error.
Another way is troubleshooting:
WordPress sites can complicate the 404 troubleshooting process. Why? WordPress is a content management system that processes its own internal rewrite array as a part of its permalinks feature.
The first step to troubleshooting 404s is to figure out whether the 404 is being caused by the web server or by WordPress.
Static file
If your file is static (e.g. a jpg image) open your FTP client and verify that the file exists.
As an example, let’s say that the URL http://example.com/wp-content/uploads/picture.jpg is producing a 404 error. You will want to:
Open FTP Client and connect to your server (if you don’t know how to do so, read this.)
Navigate to the file’s location
Verify that the file exists
If it is does not exist, you have found the source of your 404.
However, it it does exist, yet pulling the URL up in a browser results in a 404 error, continue on to find out whether the issue is web server-based or WordPress-based.
Reference Link: http://websynthesis.com/fixing-wordpress-404-errors/

Wordpress clone on Dreamhost

So I created a new subdomain on Dreamhost. One-click installed Wordpress. Fresh Copied the olddomain.com to newdomain.com exported all the tables with the drop attribute to the new wordpress database via phpmyadmin. Then followed this post to update the urls.
The site doesn't load, giving me this error message:
The page isn't redirecting properly
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
This problem can sometimes be caused by disabling or refusing to accept cookies.
I would make sure to check the 'www' rules in Fully Hosted (from the web panel: Manage Domains > Web Hosting > Edit), compared with your site URL settings in the WordPress dashboard. Make sure those aren't conflicting first.
If you need further assistance, just let me know the domain name and I can take a look. Please also feel free to start a LiveChat from the panel or submit a ticket; our support team is here to help 24/7!
Thanks!
Ellice S
DreamHost Staff
I finally ended up creating an empty site and then using the WP Duplicator plugin. Worked like a charm!

Resources