Category products not found - magento-1.9

WHOOPS, OUR BAD... The page you requested was not found, and we have
a fine guess why. If you typed the URL directly, please make sure
the spelling is correct. If you clicked on a link to get here, the
link is outdated.
What can you do?
Have no fear, help is near! There are many ways you can get back on
track with Magento Store.
Go back to the previous page.
Use the search bar at the top of the page to search for your products.
Follow these links to get you back on track!
Store Home | My Account.
I get these errors in Magento. How should I solve this?

Check in the 'url rewrite' that created urls are correct, specifically in the column 'url requested' because sometimes puts extensions like 'htm, html ...) or perhaps have some special character.

You might have faced problem due to following reasons.
Your category is not active in admin
If active, products are not assigned.
If assigned, Indexing is not done.
If indexing done, please ensure you are using default category URL.
If category url is not default, please make sure you did catalog_url_rewrite indexing properly.
These above are the cases where you can get resolve your problem.

Related

Missing Schema for WordPress theme.json

According to the docs, one can simple add
$schema": "https://schemas.wp.org/trunk/theme.json",
to the beginning of the JSON file to load the schema
VS code gives me the error that it's missing:
And sure enough, going to https://schemas.wp.org/trunk/theme.json it doesn't exist:
I've seen posts such as this one about missing schema which says to go to https://schemas.wp.org/wp/5.9/theme.json but same result. Searching around it seems like their security certificate expired at some point, but surely they resolved that many months ago.
I'd like to resolve this to get the benefits of schema (autocomplete / intellisense) in the file, especially since the file is getting larger and this is a large project with multiple people working on it.
Help appreciated.
It seems like https://schemas.wp.org/trunk/theme.json is not reachable for you even though it is online (I can reach the URL). The url forwards to ttps://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/theme.json which might be accessible for you. If yes, you can add this direct url as the value for $schema.

How do I direct all traffic or searches going to duplicate (or similar URLs) to one URL on our website?

I'll try to keep this as simple as possible, as i don't quite understand how to frame the question entirely correctly myself.
We have a report back on our website that is indicating duplicate meta titles and descriptions, which look very much (almost exactly) like the following - although i have used an example domain below:
http://example.com/green
https://example.com/green
http://www.example.com/green
https://www.example.com/green
But, only one of these actually exists as an HTML file on our server, which is:
https://www.example.com/green
As i understand it, i need to somehow tell google and other search engines which of these URLs is correct, and this should be done by specifying a 'canonical' link or URL.
My problem is that the canonical reference must apparently be added to any duplicate pages that exist, and not the actual main canonical page? But we don't actually have any other pages, beyond the one mentioned just above. So there is nowhere to set these canonical rel references?
I'm sure there must be a simple explanation for this that i am completely missing?
So it turns out that these were duplicate URLs which occur as a result of the fact that our website exists as a subdomain of our domain. Any traffic that arrives at example.com (our domain) needs permanent redirect to https://www.example.com, by way of a redirect within the htaccess documentation.

How deal with redirects in Wikipedia dump?

I have successfully imported the enwiki-latest-pages-articles-multistream.XML page into MySQL using this guide.
When I lookup the text for a page (process described here), it will often be #REDIRECT [[some_page_name]]. The only way I know of to follow this redirect is by searching through all page titles for some_page_name. Not only is this time consuming but sometimes there are multiple articles under the exact same title name!
I'm considering just removing all redirect pages from the database.
But before I do, is there a better way to handle these redirects?
As I understand, you want to determine what is the target of the redirect. Right?. If yes, then you can get it using this query:
select rd_title from redirect
inner join page
on page_id = rd_from
where page_title like "some_page_name"
The rd_title is the target page of the redirect.
Please correct me if I'm wrong.

Wikipedia API - How to get all links from multiple pages?

I'm new to wiki api. I have read how to get all links from a specific page, and managed to do so, but in my case I need a list of links from many pages. And sending a request for each page is inefficient. This is the kind of request I use -
http://en.wikipedia.org/w/api.php?action=query&format=jsonfm&generator=links&gpllimit=500&redirects=true&pageids=1234
I must admit that I don't fully understand what each argument means. So -
How do you chain multiple pageids to 'pageids' argument? I guess that's a silly question but I didn't find any reference :\
Can the response point out which page owns each link?
Thanks!
You can just join page IDs (or names if you use the titles parameter) with | which is in general how you make lists in the MediaWiki API. I don't think there is a way to find out which link comes from which page, though.

URL of Category page in Magento changed to /shop-3.html how to change it back to /shop.html

After I changed the URL key in Category management in Magento from "shop" to "webshop"and later changed it back to "shop", the url of the category page now shows up like /shop-3.html Is there a way to go back to the original /shop.html?
FOUND THE SOLUTION: http://www.youtube.com/watch?feature=player_embedded&v=8xttr_ILd6A
Sometimes when you make changes to your products, or enable a certain extension, Magento might start to rewrite all your URLs to include a suffix "-1" or some other number. Within the URL Rewrites, Magento differentiates between System URLs and Custom URLs. If the System URLs are broken like this, you should not fix this by adding new Custom URLs.
Instead, open up phpMyAdmin, create a backup of your Magento database, and flush the Magento table core_url_rewrite (so that it becomes totally empty). Immediately afterwards, refresh the Catalog Url Rewrites under Index Management. This will regenerate all System URLs.
you can edit url write,i think there will be entry like /shop-3.html just change it is you want
http://www.magentocommerce.com/wiki/modules_reference/english/mage_adminhtml/urlrewrite/index
and also refer
http://www.magentocommerce.com/knowledge-base/entry/what-url-rewrites-are-and-why-they-are-important
hope this will sure help you.
Simple answer
just delete url related to shop (custom and system generated), than run re-indexing it will work