Ashish Kumar (Ashfame)
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Post Author Dropdown MissingI am researching on what can be done about this. Meanwhile can you confirm your version of WordPress in use?
Forum: Fixing WordPress
In reply to: Post Author Dropdown MissingDo you have over 10000 users on your site? In that case WordPress doesn’t show that authors dropdown. Maybe you recently crossed 10K number of users?
It could also be that you are viewing posts of another author and you don’t have the permission (capability) for editing others’ posts?
Forum: Fixing WordPress
In reply to: Strange error message during updatesThese are just PHP warnings. In this case, the warning is about the code trying to access an array with a particular key that doesn’t exist.
Does it have a real impact? Probably not. But ideally, this is unexpected and should be handled in code, for which the code would need to be changed to not access the array when the key doesn’t exist.
envira-gallery-lite
andsimple-history
are two plugins that are reported in your log. So you would go and report this to them.PHP warnings could be happening on normal page loads and when you browse admin panel as well, you just don’t see them, as PHP can be configured to not display them by default or log them to a log file on the server.
Hope that helps!
Forum: Fixing WordPress
In reply to: WordPress Image ProblemYour <title> tag should also be relevant as to the page of the website. Its title of the particular page and not just the website. So its not good if its just
Pixground - High-Quality 4K Wallpapers
for every single page.You can’t make Google do anything, but follow their guidelines.
And like I said above, I could see both your website title & actual h1 being used for several images. Google will try to choose a text that it thinks represents the text best. You can aid them in that by following their guidelines.
Forum: Fixing WordPress
In reply to: Receiving JSON error when trying to upload imagesUnexpected response from the server. The file may have been uploaded successfully. Check in the Media Library or reload the page.
So did the media got uploaded despite the error? Or no?
Have you tried uploading a different file? Can you tell me what the file names were? Simple name “file.png” or “file.jpeg” is a good test to rule out any characters in file name that can cause a problem.
It would be worth looking at actual response of that http call in networks tab of browsers’ dev tools to see if it has some PHP notices/warnings output in it.
Forum: Fixing WordPress
In reply to: Rich Text Editor (tinymce) triggering password protection loginI think you misunderstood what I said. I said you can try opening tinymce JS file directly on that URL to test whether its auth free or not, while you tinker with
.htaccess
.As soon as that’s actually auth free, your issue would go away.
You can go to the
.htaccess
at root where you set the basic auth and do it like the following to set exclusions:AuthType Basic AuthName "Restricted Area" AuthUserFile /path/to/.htpasswd Require valid-user # Exclude specific directories from authentication SetEnvIf Request_URI "^/directory1/.*$" allow SetEnvIf Request_URI "^/directory2/.*$" allow # Allow access without authentication to specific directories Satisfy any Order allow,deny Allow from env=allow Deny from all
In this example you are setting
/directory1/
and/directory2/
as exclusions to basic auth. So that line would look like this (among all exclusions):SetEnvIf Request_URI "^/wp-includes/js/tinymce/.*$" allow
Forum: Developing with WordPress
In reply to: Get ID on the Custom Post Type URL SlugHi, This is really tricky to setup since WordPress uses that slug to identify whether a request belongs to a custom post type.
It requires fiddling with rewrite rules as I understand it. I asked the same question in 2011, there is a great answer to it by Mike which I can recommend reading to try understand this situation better.
Forum: Developing with WordPress
In reply to: API to send postsYou would need to know how to interact with the API offered by the website/portal where you want to send your WordPress posts.
WordPress has hooks where you can plug custom code that would execute when those hooks are executed. You would likely be interested in wp_insert_post hook where you would receive some data along with your hook inside of which you can send the data to the external API.
add_action('wp_insert_post', 'send_to_external_service', 10, 3); function send_to_external_service($post_id, $post, $update) { // Send to API here }
You can create a simple plugin to put that code in.
WordPress also offer functions to send http request – wp_remote_post()
Forum: Fixing WordPress
In reply to: update fail authenticity wp-6.2.2, no signature foundSounds like there are some file permissions issue. You should talk to your webhost to get that fixed for you.
You can also update WordPress yourself.
Forum: Fixing WordPress
In reply to: Dashboard not working after switching domainsBased on that screenshot when trying to access plugin install page directly, that indicates your user account doesn’t have the permission i.e. it doesn’t have privileges as an admin account should.
This sort of an issue doesn’t happen when changing the domain, but lets try to find out what’s wrong. Can you run the following queries and tell me the output (I would need the second one in text and not a screenshot – use a code block for it by typing
/code
and pasting the text in it).### List users and their roles
select ID, user_login, meta_value from wp_users u JOIN wp_usermeta um ON (um.user_id = u.ID) WHERE um.meta_key = 'wp_capabilities';
### Capabilities attached to roles
SELECT option_value FROM wp_options WHERE option_name = 'wp_user_roles';
Forum: Fixing WordPress
In reply to: Breadcrumb issue when select multiple category in single postBreadcrumbs logic would generally not have enough logic in it, to know how the user landed on a particular URL. In your case, it would just try to show one of the categories of that post, which is “beginner” either based on the first category that’s added or first alphabetical one.
If you really want to show the category from which they came, it would have to be done by modifying the logic of breadcrumbs, and track the user journey so that you know what category to show in there. Here is a similar thread, which has a code snippet to choose category based on HTTP referrer.
Hope that helps.
Forum: Fixing WordPress
In reply to: WordPress Site Not Sending EmailEnsure you filled out the information correctly, with no extra spaces etc or copy-paste errors.
Forum: Fixing WordPress
In reply to: WordPress Site Not Sending Email@iipmi That plugin is literally advising on what’s the issue and recommended next steps. What problem are you facing following those steps?
Forum: Fixing WordPress
In reply to: Text and Image not formatting on mobile view correctly in AstraHi,
You will have better luck trying support option of Astra theme, as its unlikely someone who is familiar with that option would end up seeing your post and respond.
Its not possible to answer or make a guess even, without being familiar with how the theme works.
Forum: Fixing WordPress
In reply to: WordPress Image ProblemI tried clicking on some pictures of your website in Image search of Google, and I land on the right page, where that image is & I see the download option.
To explain, it will link to whatever page it found the image on.
For the title, every page on your website has the same
<title>
“Pixground – High Quality Wallpapers”, which is what it chooses to show. But since its same for all pages, for some it uses the<h1>
below with<title>
, at least for me.