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

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!

Related

Can't access the Wordpress dashboard when logged in

I migrated the company's website on a new hosting server. Since then, I cannot access my Wordpress dashboard when I'm logged in.
When connected, I see my website and the classic Wordpress top bar. But when I click on the button with the name of my website (usually that sends me to the dashboard) it just sends me back to the home page.
I add that the top bar isn't really like the classic top bar since it doesn't contain any option.
Here's a screenshot.
The top of my website when logged with the top bar of the admin wordpress
Clicking "Bonjour Signature_Beta" doesn't do anything. I can only log out.
Going to the /wp-admin page gives me an error saying "Sorry, you do not have authorization to reach this page". Except, I'm supposed to have authorization since my profile has a wp_content value of a:1:{s:13:"administrator";b:1;} and wp_user_level of 10.
I have tried multiple things I found online that didn't come to fruition sadly :
Renaming plugin's folder (nothing changes except page breaking because they're made with Elementor)
Renaming theme's and child theme's folder (page goes blank, top bar still there though)
Replaced .htaccess file (nothing)
Checking my account didn't lose admin privilege through phpmyadmin (it didn't, it's at level 10 + it has the weird administrator code
Added a new admin account through function.php (can log in with it, still can't access dashboard)
Increased memory limit
Repair database tables
Kind of desperate and frustrated about it.
Thank you in advance for the help :)
Ok with a fresh pair of eyes, I found out what was the problem. Tables prefix! I followed what was described here : After moving Wordpress, login works, but no admin access anymore
For the record, I never found it when googling or searching my answer here before posting. When posting my question I review the post stackoverflow suggested and it wasn't there either. But now it's suggested next to my post, so... great!

Plugin content type URLs break after Wordpress plugin upgrades

We use a plugin that creates a content type and dynamically generates pages for that type. It works fine except that when when we upgrade plugins (especially The Event Calendar, which also creates a content type, but doesn't experience this problem), this sometimes (but not reliably) causes all of the page URLs generated by the plugin to stop existing. When you go to those URLs, you get a 404 error.
This problem can be fixed by going to the site's permalinks page and (without making any changes) saving the settings.
I looked for a solution that would prevent the problem from happening, but have not been able to find one. I wasn't able to figure out a way to mimic what happens when you save the permalinks settings for each site, and I haven't been able to figure out what might be triggering the problem. I currently "solve" the problem by using a Selenium script to go through each permalinks page in our multisite and click the save button on each automatically after I update plugins.
How can I:
Track down the source of the problem.
Set up a content type that will not unset itself in the wrong circumstances.
Failing either of those things, implement a backend solution that will do what I am currently doing on the frontend, but in a fully automatic way.

Admin cannot add page, article, product

I currently run a WordPress website which recently started to bug me. I am the only admin on the page and I suddenly cannot add a product, page or anything for that matter. Instead of the publish button there is a "send for review" or something button. Even if I hit that button it says I do not have the rights to do it.
I have tried:
- adding a new administrator but it has the same effect
- disabled ALL plugins and tried again = nothing
- changed privileges in the database (table wp_usermeta)
Help would be extremely welcomed!
One very possible cause: You ran out of space to append to your database, with your provider.
Hence no saving, your provider does not allow any new posts to be published due to not enough space, so the Publish button is invisible, and instead you have Send for review

Drupal publishing

I am working on a Drupal website. It has been designed by someone else.
I want to change the settings from automatically publishing post to not automatically publishing. I set the option in content types, my content type (edit), publishing options. It is set to "not published". Every time I add a new post, it still is published though.
Where is this going wrong? Do I need to change something in the code? if yes, where do I change it?
There are a number of configuration options that could cause this that can be adjusted via the user interface without delving into code.
It's possible that anonymous users have permissions to view unpublished content.
It's also possible that you have a views configured to return results unfiltered by published = true.

Drupal front page error

I have been attempting to migrate some Drupal content into another site. So far, everything was working... let's say, fine. You can imagine I have been moving so many things that, I was certain I was going to screw up at some point.
This morning I started getting a "page not found" in my front page. I went to "Site Information" and front was correctly referenced. I temporarily changed "mysite.com/front" to "mysite.com/node" and now, every time I want to return the path to "front" I get an access error and I get a "Page Not Found" in my front page. I have developed the habit to clear cache every time I do almost anything.
What would be the most common reason for this msg to appear? Read/write permissions somewhere?
I am using Drupal 6.2 with several modules and a custom theme, based on Zen.
Laxman13 above brings up a good point. You were previously pointing the front page to the path "front" -- what node or function uses that alias?
If you go to admin/content/node you'll see all content -- are the nodes that you're expecting to appear on the front page there?
Are you logged in as UID=1 when you are doing all of this? If not do you have permissions set for anonymous users to view the content in these pages?

Resources