Gatsby Worpdress Preview Server Issue - wordpress

We are using Gatsby framework and fetching content from WordPress. However, the Gatsby Cloud previews are not consistent and are sometimes redirecting to other pages. Is there any configuration we need to implement in WordPress to fix this issue? We have tried running previews on local preview server, changing settings in WordPress and enabling debug for previews, but the redirect from the WordPress URL to the Gatsby source WordPress post/page URL is still not working properly. Can anyone provide guidance or insights on how to resolve this issue?
Below are the mentioned versions.
Version
gatsby
5.4.2
gatsby-source-wordpress
7.3.2
WordPress
6.1.1
WP Gatsby
2.3.3
WP GraphQL
1.13.7
As per the gatsby-source-wordpress troubleshooting doc we even tried running previews on local preview server.
In WP, settings/gatsbyjs we then changed the setting as below:
Preview Webhook URL : https://mypreviewdomain.com/__refresh
Gatsby Content Sync URL : https://mypreviewdomain.com/
We enabled the debug for previews and can see the logs of the post/page data when we click preview in WP. The preview URL gets redirected from the WP URL to https://mypreviewdomain.com/gatsby-source-wordpress/postid-date/postid (e.g. https://mypreviewdomain.com/gatsby-source-wordpress/122412023-01-27%2011:01:31/12241/) and it shows 404 page. However, if we browse the post URL directly (https://mypreviewdomain.com/post-url), we can see the updated content. This means that the preview changes are working properly but the redirection to the respective post/page URL is having some issue.

Related

Why the Favicon isn't showing on frontend on my Wordpress website?

I am facing an issue with my WordPress site which doesn't show favicon on frontend while it's shown on the backend.
I am using Lightspeed cache plugin as optimizer.
Any solution ? without installing another plugin for favicon.
Clear Website cache before checking this on the front end as you are using the cache plugin on the website.

Added new WordPress site on GCP with Marketplace. Publishing fails. Link cloaker fails

In Launching WordPress installation, in GCP, I cannot post with the error "publishing failed.". I tried both without updating and with updating to WP 5.4.1. I am having a hell of a time deploying WordPress in GCP. The permalinks don't work and I change the timezone, i am guessing or set the Site URL to vetsforweed.net and updated the A record at my Namecheap DNS to the external ip. sometimes the site locks up and I have to delete the vm instance and redploy. I have installed WordPress at least 10 times trying to get a working installation.
I switched to the classic Editor, I am able to publish. the post uses the permalinks setting of Post name: and it tells me the post link is : http://34.73.194.87/petition for a post titled "Petition" and I get a 404 Not found. I had done Settings...Permalinks to Post name:. I am so stuck!
What a nightmare! I cannot get anything to work with WordPress 5.4.1, no posts show up with a permalink. I cannot even click the date to see the post. It does show up in the list of Posts. Argg!
Is WordPress 5.4.1 known to be broken? What can I do to get a WordPress site up and running well? I appreciate you for your assistance.
I switched to loading WordPress Certified by Bitnami and Automattic and this worked, completely. So far. Now I have to import a WP export that is 136MB. Firs, I will deploy WordPress Certified by Bitnami and Automattic there.
Thanks for assistance.

Wordpress update to 4.7 causes Magento/Fishpig integration to redirect base URL to the Wordpress folder

I've copied a live site to a test server to test updating Wordpress on a Magento site that uses Fishpig to bridge content from Wordpress to Magento. Since the udpate, the site always redirects from the homepage to the wordpress folder. e.g. dev.site.com goes to dev.site.com/wordpress. It's not an .htaccess issues, if I wipe them out in both directories it still does it, if I rename index.php in the wordpress folder it stops it but breaks the preview. If I rename the theme and plugins folders it still redirects, something in the core is causing it but I am having issues figuring out what it is. Thanks.
Also if I change the site to show the latest blog post instead of the static home page, it doesn't redirect but shows the blog page.
We will need more information to help solve your problem.
Are your FishPig extensions at the latest version?
What FishPig add-on extensions, if any, are you using?
Have you tried disabling all WordPress plugins?
Do you have any error messages in System > Configuration > WordPress?
My guess is that your WordPress URLs aren't setup correctly and you're using an out dated add-on extension (eg. Visual Composer). There was a bug in older versions of some add-ons that caused this issue, but this has now been fixed.
If you can provide the actual link to your dev site, it will make debugging the issue much easier.

All admin and frontend pages are working except admin dashboard in wordpress

In wordpress, All admin and front end pages are working except admin dashboard is now working... i changed in htaccess. permalinks and checked in theme and plugin
On dashboard below error is coming
The yve.today page isn’t working
yve.today is currently unable to handle this request.
HTTP ERROR 500
Please help how to resolve this
I believe you have changed something either in your functions.php of theme or installed a new plugin so because of that you are seeing this error.
A 500 error means there is something wrong with a piece of code being executed, this would in your case (most likely) be caused by a plugin or your theme, the only way to test this is through deactivation.
I suggest to access your server via FTP, or a file manager in your hosting account’s control panel, navigate to /wp-content/themes/WhatYourThemeName/, open functions.php and remove the code you added recently. or find it the recent plugin have installed recently and deactivate that to check.
I personally would recommend installing WordPress locally and testing any changes there before you do it on your live site.

Wordpress Permalink Redirection working - but still 404 Error - Object not found

I changed my permalink structure from the standard wittstylepark.at/?p=123 to wittstylepark.at/postname. Then I installed the permalink migration plugin from http://www.deanlee.cn/wordpress/permalinks-migration-plugin/. Now the redirection is working fine - when I type in the old url e.g. wittstylepark.at/?page_id=36 its redirecting to the new url that is e.g. wittstylepark.at/friseursalon/.
But now I'm still getting a 404 error message and also if I'm in the wordpress backup working on a page and then press the preview button there is no content to show. I also installed the redirection plugin from http://urbangiraffe.com/plugins/redirection/ - but I'm not sure if I'm doing the right thing - because what are working redirections for if the site which they are redirecting to isn't working either.
I might be too late to answer but actually, you don't need to worry about redirections now. With the latest version of Wordpress, the post permalinks are automatically redirected to the new permalink versions. No need to install any plugins make sure to upgrade your wordpress version and it would work.

Resources