westham60
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Cannot access AdminA further week on, and nothing has changed with the problem. I have spent considerable time on the phone to GoDaddy support, firstly being told it was a plugin problem so not their fault (we can fix for you if you pay). Then today after I asked them to do a restore from March, and being told it was underway but would take 3 hours (why when their control panel restore takes 20 minutes?), 7 hours later my site is still showing a message I wrote on April 27, so that doesn’t seem like there has been a restore from late March – did the person responsible finish their shift and go home, I wonder?
But here’s the thing: I had already tried the same March restore and it failed (no admin access or categories/tags etc). When I looked at the database via phpAdmin, I found that all the tables related to tags, categories and users were completely missing – no wonder I get the message “Could not insert term into the database” when trying to create a tag because there’s no tag to insert into. However when I downloaded that March backup and imported it into a local WP install on my PC, everything was perfect – all tags, categories etc. So with my limited knowledge of how the WP system works, it seems to me that the GoDaddy restore process isn’t restoring properly (or am I missing something?).
I hope someone here can help, because I’m quickly losing confidence in GoDaddy’s support.
Forum: Fixing WordPress
In reply to: Cannot access AdminFair enough. Nothing seems to have happened from support in the last few hours, so I will try again tomorrow.
Forum: Fixing WordPress
In reply to: Cannot access AdminThe host is GoDaddy so certainly could do this, but the inability to create new tags/categories/menus currently suggests there is a significant database issue that needs addressing first.
Forum: Fixing WordPress
In reply to: Cannot access AdminJust updating the situation in case it helps any possible responder. My host support was able to restore my access to the admin section, and I immediately deactivated the problem plugin. I then found that all my categories, tags and the main site menu had gone – we are talking 4000+ posts, so manually re-adding the tags and categories to each post doesn’t bear thinking about. Not that that is even possible at the moment, because I can’t create new tags, categories or a menu – I get the message “Could not insert term into the database”.
Forum: Fixing WordPress
In reply to: New posts not displayingThanks for this, George. Looking at my hosting dashboard, there is a Flush Cache option, so I have done that and we shall see (there is no reference to Cloudflare).
Forum: Fixing WordPress
In reply to: New posts not displayingSaurabh
As far as I can tell, this (free) version of WP-Optimise doesn’t have the option of having precaching on/off or clearing it. There is an option for a Scheduled preload which is already off, and a button to manually run (but not clear) Preload.
I have turned off page caching within WP-Optimise entirely.
- This reply was modified 1 year, 4 months ago by westham60.
Forum: Fixing WordPress
In reply to: New posts not displayingSaurabh
Thank you for this. I will start with the preload suggestion, and then move to the Cloudflare area (it must have been chosen by the host because it is not something I specifically opted for). Do you happen to know of any plugins that work with Cloudflare?
David
Thank you for this information. Very impressed by the speed and usefulness of your responses.
Thanks Amir for your quick reply.
I can confirm that disabling the Views Column in Content List does allow the post/page lists to be displayed instantly. And no, that plugin is not used.
Forum: Everything else WordPress
In reply to: User called “host”Thanks.
Yes, it is with a managed provider, so that is a good idea. And thank you for that reassurance as the IP address of the request was from Romania – not necessarily an encouraging sign.
Forum: Fixing WordPress
In reply to: Search capabilities in dashboard not workingNothing that is identified as an error (unless I’m not looking in the right place). There is one Issue, which would seem not to be relevant: Cookie sent in cross-site context will be blocked in future Chrome versions
Forum: Developing with WordPress
In reply to: Post lists in archive pagesI was wrong – something is causing certain posts to be shown on successive pages and others to not be shown at all.
Forum: Developing with WordPress
In reply to: Post lists in archive pagesI worked out that the problem was to do with offset, and even found code and advice that should have solved everything on an external site titled “Changing the posts per page on first page without breaking pagination in WordPress” (I am not going to include its URL) as the code simply doesn’t do what heading says.
However, I could follow the code, so went old school with pen and paper, and did some simple arithmetic with the code formulas to get the post ranges that I wanted, i.e. posts 1-8 on homepage, 9-32 on page 1, 33-56 on page 2 and so on. I made the adjustments to offset and posts_per_page, and it works.
Forum: Developing with WordPress
In reply to: Post lists in archive pagesOr at least I thought it did the trick perfectly but the paged() version of this seems to have an anomaly, in that /page/2 bypasses the next 24 posts after the most recent ones on the homepage. Perhaps I’ve done something wrong – here is the code:
function pages_pagesize( $query ) { if ( ! is_admin() && $query->is_main_query() && is_paged() ) { // Display 24 posts for search pages $query->set( 'posts_per_page', 24 ); return; } } add_action( 'pre_get_posts', 'pages_pagesize', 1 );So just to clarify, the homepage shows the most recent 8 posts, but clicking on the page 2 link doesn’t show the next 24 posts (9-32), but rather the 24 after that (33-56). The problem only occurs with the paged() version, the search() and archive() are fine.
- This reply was modified 3 years, 4 months ago by westham60.
Forum: Developing with WordPress
In reply to: Post lists in archive pagesbcworkz, thank you so much. This did the trick perfectly.
For anyone else needing this solution, I used the following code for archives (category, tag, author, date), is_search() for search pages and is_paged() for the main pages off the home page (e.g. …com/page/2):
function archive_pagesize( $query ) { if ( ! is_admin() && $query->is_main_query() && is_archive() ) { // Display 24 posts for archives $query->set( 'posts_per_page', 24 ); return; } } add_action( 'pre_get_posts', 'archive_pagesize', 1 );- This reply was modified 3 years, 4 months ago by bcworkz. Reason: code format fixed