Jonathan Bossenger
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: Rest API response headers now lowercaseHi @lyurk
I did a quick scan through the WP Codebase for 6.3.1, and all instances of the X-WP-Total response header being set are in the same case as you’d expect in the code.
I then did a bit of searching online, and it seems that the newer HTTP/2 protocol defaults to lowercase headers (example discussions here, here, and here) so my guess would be that this is a change on your webserver. Perhaps being upgraded to the newer HTTP/2 protocol?
This raises a valid point about the documentation, and I will raise this as an issue in the REST API docs repo, to see if we can get it updated to point this out for HTTP/2
Forum: Everything else WordPress
In reply to: [NSFW] Help me identify this pluginHi @anns1202
It’s obviously hard to tell just looking at the html source code whether it’s a plugin or custom code.
The % values area looks like it could be accomplished using WooCommerce product attributes and the different weight options looks like it could be accomplished using WooCommerce variable products.
Forum: Fixing WordPress
In reply to: Problems with DB/themeGot it.
Usually, if you’re going to do something like a Database upgrade, it’s recommended to do it on a staging site (a copy of the main site) so that you can test to make sure nothing breaks, if If it does, you can troubleshoot.
I don’t know Aruba, do they offer you the option to create a staging environment to test the Database upgrade on?
Forum: Fixing WordPress
In reply to: Problems with DB/themeHello @pql89
I’m looking at your site now and it looks like these errors have been resolved?
Forum: Localhost Installs
In reply to: HTML differences between WAMP and “live”At least now we’re able to narrow it down a bit 🙂
I’ll have to compare settings and see if I can find an obvious difference
Sadly yes, it now just boils down to methodically comparing the configurations.
My suggestion would be to start with the built-in Site Health screen, specifically comparing the Site Health Info of each site (wamp vs localwp).
The other option is to compare the PHP configuration. You can do this by creating an
info.phpfile in the root of both local WP installs, with the following PHP code.<?php phpinfo();Or punt and just demo using localWP
That’s obviously entirely your call, but at least now you have that option 🙂
Forum: Localhost Installs
In reply to: HTML differences between WAMP and “live”IIIiiiiiinnteresting.
So my next thought would be that it has something to do with the WAMP environment/configuration.
Are you in a position to install something like LocalWP or DevKinsta, create a copy of the site using one of those local environments, and see if the problem persists?Out of interest, what WAMP configuration are you using?
Forum: Localhost Installs
In reply to: HTML differences between WAMP and “live”Sure, unfortunately it’s reached the point where I’d start digging into the code.
If it helps, you can create this file in the root of the wp install.
https://gist.github.com/jonathanbossenger/d96520acd6225ea969f091752a3bca8b
Replace the following
$sitename = get_option('blogname'); echo "Hello " . $sitename . '!';With something like
$data = wp_get_attachment_image_srcset(ID); print_r($data);Replacing ID with the actual ID of the image in question.
Then browse to that file and see what it outputs.
Forum: Localhost Installs
In reply to: HTML differences between WAMP and “live”I know, it’s a function one can use to fetch the srcset value for an image, so it’s easier to use this to test if the underlying functionality is working.
Forum: Localhost Installs
In reply to: HTML differences between WAMP and “live”D’oh! Sorry about that @michaelh99 I misunderstood that the problem was happening on live, not local wamp.
Do you have a way to check what the wp_get_attachment_image_srcset function returns, if you pass it the ID of one of these images on your local WAMP environment?
Forum: Everything else WordPress
In reply to: Existing images show errorHi @gmeyers you mention the problem started about 3 weeks ago, can you remember if you upgraded WordPress to version 6.3 at about the same time?
Does your webhost offer you a staging site option, where you could make a copy of the site, downgrade the WordPress version, and see if the problem is related to the WordPress upgrade?
Forum: Fixing WordPress
In reply to: I can’t enter the dashboard of a very old WP… question for expertsHi Hugo
So you can post a job using the Post a Job form. While there are a lot of full-time positions there, it’s also open to smaller projects.
The WordPress.org Support guidelines strictly prohibit folks offering or asking for paid work here, so your best bet is to try the WP Jobs board, or another WordPress expert platform like Codeable.
Forum: Accessibility
In reply to: Audio Description for menus/navigationNo problem, some times another pair of brains is helpful 🙂
If your question has been answered, we would love if you would mark this topic as resolved in the sidebar. This helps our volunteers find the topics that still need attention and more people will get helped, possibly like you did.
Forum: Localhost Installs
In reply to: HTML differences between WAMP and “live”Okay, thanks for that feedback.
One other thing I thought of, when you copy the changes from the local WAMP environment to the live server, are you also copying any related database changes?
I just uploaded an image locally on a clean WP install, and I noticed that it adds two postmeta records against the attachment custom post type data object for the media item, one with a meta key of _wp_attached_file and one with a meta key of _wp_attachment_metadata, which is a serialized array of image metadata, and this array includes a sizes key, which includes an array of data about the different sizes.
I’m thinking if this postmeta record doesn’t exist in the live database, that might explain why it’s not generating the srcset attribute for the img tag when it’s rendering the image on the live site.
Forum: Fixing WordPress
In reply to: I can’t enter the dashboard of a very old WP… question for expertsHello @hurodal
If you’re unable to access the WordPress dashboard to perform an update, then the alternative is to perform a manual upgrade. You can find details on how to perform that here:
https://wordpress.org/documentation/article/updating-wordpress/#manual-update
I would however suggest first making a backup, before performing the update, you can find details on how to do that here:
https://wordpress.org/documentation/article/wordpress-backups/.
Your friend who owns the hosting company may be able to help with this. The most important thing to do would be to back up the database, and the theme, if you purchased it and don’t have another copy somewhere.
If you don’t feel comfortable performing the update yourself there are WordPress services where you can hire WordPress experts to do this for you, or you could try posting a job on the WP Jobs website.
Forum: Developing with WordPress
In reply to: How to intregrate WhatsApp calls to WordPress?No problem.
I don’t personally have any recommendations, but you could try either posting the project on jobs.wordpress.net or codeable.io.