Permalink not work when admin not login - wordpress

I had configured premalink on my wordpress. It works fine when I login in as a admin.
However, if I log out, all of the links cannot be opened. Instead, it gives me a 404 page.
Has anyone met this problem before and tell me how to solve it? Thanks.

Double check your page properties. May be it is password protected/private or may be it is not published.
To check page properties:
Login to Dashboard.
Click Pages on left side.
Hover on the page which you getting 404 and click Quick Edit
This will show all the details about your page. Check the password field, private and the Status field. The status should be published.
Check it.

Try flushing the permalinks cache by going back to the permalink options and clicking save (without changing anything). If that doesn't do the trick, make sure you've cleared your browser cache :P

Related

Unable to enter code using Two factor plugin on wordpress site

I have just installed https://wordpress.org/plugins/two-factor plugin on my wordpress site and enabled email and google authenticator code. I saved the changes and logged out. Now when I try to login again, after email and password and it shows a disabled form that I can't interact. Now I am not able to login. Please help.
There seems a bug in this plugin. I inspected the form and inside form element, there was an input type submit element. Which was disabled. I removed its disabled css property and form was intractable. I was able to enter code and login.
Deleted this plugin. Will try another one.

When edit a elementor template showing error "Session expired"

When i going to edit a elementor template then showing error message:
Session expired
Please log in again. The login page will open in a new tab. After logging in you can close it and return to this page.
enter image description here
same problem with me, since yesterday. I have tried many ways in settings but nothing works. Atlast i found this was cookie problem in my browser. I loggedIn with private tab (Guestmode) and tried and it worked for me

WooCommerce Checkout Page's Buttons are not working

first of all i'm sorry for my english.
I will use Woocommerce. But Checkout page's buttons are not working. You see my problem in these links.
Shop Page: http://gencvefit.com/shop
And Checkout Page (My problem in this page): http://gencvefit.com/checkout
Please help me.. Thanks a lot..
It uses this wp-admin/admin-ajax.php url for ajax enabling the Process Order button on the checkout page. use F12 on your browser to check the response from admin-ajax.php on your network tab.
Also Be careful if you have locked down your wp-admin folder with .htaccess you might need to make this mod:
https://wordpress.stackexchange.com/questions/83650/adding-admin-ajax-php-to-the-frontend-good-or-bad-idea
Also some good solutions here, such as check the settings-General URLs, and php.ini memory to 64mb.
http://wordpress.org/support/topic/plugin-woocommerce-check-out-not-worknig/page/3?replies=81

Reopening a fancybox

Here's my scenario: I have a page that have a link in the name of someone, when you click on it, it opens a fancybox and you can type a message in a text box. If the user ins't logged in I close the fancybox, and redirect the behind page to my login/register page.
What I need is that after logging in or registering, the user was redirected back to the page with the fancybox open and the text that the user typed before needs to still be there.
Anyone have a suggestion of how doing it? I thought about Sessions to keep the text, but I don't think that's the best way to do it.
How about using cookies for the same? Save to cookie in case you are redirecting him to login page and load it back when he is redirected back.

WordPress page deleted from database, still showing up even in a new browser

I am trying to set up a new custom post type and create a page (based off the custom post type archive template) and keep it private until it's ready to be published. I created a page and made it private, but it was visible to everyone (although not in the dropdown like it normally would be, just from entering the permalink URL). So I deleted that from the database (in phpMyAdmin) and tried again just leaving the page a draft. The permalink URL still shows the page template for the custom post type archive. I deleted the draft in phpMyAdmin and still the URL shows the page template (should be giving a 404). I tried this in a different browser where it had never been opened and it also gives the page template.
Does anyone have any idea why this is happening? Why isn't it working to privately publish and why aren't the deleted pages going away?
You propably only deleted the content of your page, but there are more relations to the page. See the database diagram on wordpress how posts are connected to other tables in the database as well. You'll have to delete every record pointing to that post!
I really recommend you not to play around in the database of wordpress, there's a reason why WP gives you the opportunity to administer everything in their admin panel!
To leave a page/post invisible to others, just don't publish it! As a draft, no one can access it unless he/she has access to your admin panel and the required rights to see drafts!
As soon as you publish it - it's published. You can also just use the preview view to see how it would look like! Why your private page was visible to everyone is another question, maybe you made some mistakes with your DB...hard to reckon without any further information. Try to set it up as a normal post/page and publish it privately, log out and see what happens!

Resources