Problem with caching in Megamenu: Sub-categories redirect to admin area

ThemeBurn SupportForumsOpenCart ThemesBurnEngineProblem with caching in Megamenu: Sub-categories redirect to admin area

This topic has been marked as not resolved.

Hi Support,

I am still having problems Burnengine caching the right links in the menu header respectively the sub-categories. Atm, the strange behaviour is, that if I add the subcategories widget in the content area of a category (to show to visitors from a main category, that there are sub categories), then the links are saved as
domain.com/admin/index.php?route=product/category&path=2_121_63

So, they are not using the url alias and on top using the wrong url. If I delete the admin in the url, it leads me to the correct sub category.

I am using SEO Megakit Plus as an extension.

Can you confirm that bug? How does Burnengine saves or retrieves those URLs? In the database, all seems to be set correctly in terms of url alias.

Best,
Axanne

  • This reply was modified 2714 days ago by  axanne.
  • This reply was modified 2714 days ago by  axanne.
 axanne
November 14, 2016 at 4:09 pm #53075

BurnEngine retrieves the urls according to the standart OpenCart functionality. Can you please point us to real example of this issue (website url) ?

November 17, 2016 at 6:13 pm #53265

Thanks for the reply.

It is actually very hard to pinpoint it, as I have to wait for BurnEngine to save those wrong Urls to cache. I could provide you with the cache files, which saved the wrong URLs once I spot it again. I am not sure, though, if it has any value for you.

It seems to save (or maybe the SEO Megakit extension, I don’t know) different URLs, which are pointing to the same place (like subdomain.maincomain.com and maindomain.com pointing to the same category) -It also only happens in the menus and the subcategory wigets, never to normal intra-links within the page or links to products. I have 2 language version on my store. You can theoretically go to the English version, if you append an /en/ to the maindomain.com – the standard language is without any suffix, i.e. maindomain.com/

Do you have an idea, where I could try to debug that problem? Is it possible to point me to the files, which retrieve the specific SEO Urls for the (mega)menu and subcategory-widget?

 axanne
November 17, 2016 at 8:13 pm #53269

The urls for the megamenu and categories widget are generated from system/vendor/BurnEngin/model/categoryModel.php. You can search for

$this->url_links[$new_path] = $this->registry->get('url')->link('product/category', 'path=' . $new_path);

As you can see, we use the default OpenCart Url class for generating the urls. So theoretically if your plugin applies custom generation logic to the URL class, BurnEngine should take advantage of it.

There is indeed an URL cache system, which is activated after enabling the ‘OpenCart Performance+’ extension. It consists of two layers – memory cache and file cache. They are both controlled from Theme Settings -> System -> Cache -> Database cache -> SEO Urls SQL Level 1/2. You can try different combinations to see if switching them off resolves your issue.

Let us know if you find out something.

Also, which SEO Megakit features are you using that our SEO extension is missing ?

Regards,
ThemeBurn team

November 21, 2016 at 11:43 am #53440

We have finally isolated the cause of this issue. The fix will be available with the upcoming update.

Regards,
ThemeBurn team

January 23, 2017 at 12:07 pm #55727

Well, that is very, very good to hear!! When will the upcoming update be available?

And regarding the SEO Megakit extension, that we are using: I didn’t do a proper side-by-side feature comparison, but kept using the old extension as it seemed to be used by many people , hence possibly less bugs and better support.

In generel, the features I am using there are the URL manager for categories, products and info-sites. Also handy to create your own redirects (like for checkout or to shorten an URL). Important for us:
- multilingual and multidomain. Also Sitemaps
- redirect/canonical URL to one main URL (like domain.com/category1/category2/product1 to domain.com/product1)
- talking about canonical URLs, this is a very important SEO tag for us, as we are having products with the same description but different colors as separate products. We try to redirect them manually (via DB entry using the canonical feature of the extension) to just one popular product, so the bots assign only one main product.
- Some sort of caching

  • This reply was modified 2642 days ago by  axanne.
 axanne
January 25, 2017 at 2:05 pm #55818

Hi,

The update should be ready within a week.

BR,
ThemeBurn team

January 30, 2017 at 10:59 pm #55962
Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.