News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

The standard Joomla 404 page is not being displayed

Started by AzMandius, February 19, 2020, 08:32:58 AM

Previous topic - Next topic

AzMandius

Hello,

Joomla! 3.6.4
PHP 5.6.40
VirtueMart 3.0.16

The issue is that the standard Joomla 404 page is not being displayed.

I have the "Enable VirtueMart 404 error handling" box unchecked, yet whenever i try to access an nonexistent product - i am brought to shop or product category front page, instead of Joomla 404 page.

This is not a problem for me personally, i like the user being redirected to shop front page instead of useles 404 error page, but the Google Search Console is complaining and saying that incorrect 404 page display could lead to product pages not being properly indexed by search engine.

Is there anything that could be done to enable the standard Joomla 404 error handling for VirtueMart pages no matter what? Some portion of code that i should check?

Thanks a lot!
AzBlog.me | Mentally healthy content & lnks.

GJC Web Design

It is true .. if u use the VM 404 handling you will potentially end up with indexed nonsense urls that point at the VM category

I prefer to switch it off and make a "proper" 404 article page that has a message, search and navigation

see:  https://docs.joomla.org/Archived:Creating_a_Custom_404_Error/en
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

AzMandius

Thanks for reply, done that, it works for regular Joomla items, but frankly it does not work for any VirtueMart related url, that is the reason i have created this thread.
AzBlog.me | Mentally healthy content & lnks.

Studio 42

Have you modify the virtuemart config to not use own 404 handler ?

GJC Web Design

ah!!!   VirtueMart 3.0.16  - wildly out of date!!!

how can you report bugs on software dating from 04/12/2016 ?
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

AzMandius

Quote from: Studio 42 on February 19, 2020, 14:29:43 PM
Have you modify the virtuemart config to not use own 404 handler ?
You mean this?
QuoteI have the "Enable VirtueMart 404 error handling" box unchecked, yet whenever i try to access an nonexistent product - i am brought to shop or product category front page, instead of Joomla 404 page.
AzBlog.me | Mentally healthy content & lnks.

Studio 42

AzMandius,
Update all your website. All is obsolete ! Vm, Joomla, PHP
And perhaps the problem is solved since(2 years)

AzMandius

Quote from: Studio 42 on February 20, 2020, 13:21:26 PM
perhaps the problem is solved since(2 years)
or not... who knows... that's not a solution though, but thanks anyway for trying

i am fully aware of outdated code, and there's could be a particular reason for not applying the updates so far, but who cares ;D "update your code" it's always the simplest "solution" to offer ;D
AzBlog.me | Mentally healthy content & lnks.

GJC Web Design

Quotebut who cares ;D "update your code" it's always the simplest "solution" to offer ;D


Sorry -- but a strange attitude.. updates, among other things also contain many bug fixes ...
No one is reporting your "problem" except you  ... I can tell you the VM 404 switch works on all recent (3.6.x releases) so there is a very good chance this has been fixed along with security vulnerabilities and new features.. etc

Will you wait till the inevitable hack occurs before updating? :(
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

AzMandius

It could be that template is the reason, as I am using a custom template. I'll have to check in that direction. Thanks.
AzBlog.me | Mentally healthy content & lnks.

GJC Web Design

very unlikely ... this VM 404 stuff is handled at the core of VM

e.g.
components\com_virtuemart\virtuemart.php

components\com_virtuemart\views\category\view.html.php

components\com_virtuemart\views\productdetails\view.html.php

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Studio 42

You can try to update to VM 3.0.18 or another release and chekc if it wrk. If the problem is the template

AzMandius

AzBlog.me | Mentally healthy content & lnks.