VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: Cpointcc on July 18, 2022, 21:27:40 PM

Title: Product Page Missing after upgrading to VM 4.06
Post by: Cpointcc on July 18, 2022, 21:27:40 PM
Hello,

I have updated my client's site from VM 3.88 to 4.06.  My main product page is a category listing of all categories which is working.  When I click on the product category, nothing shows up.  I have a featured products module that works and displays the product info.

I have restored the site back to the VM 3.88 version and all is ok again.

I then tried to manually via the Extensions Update one by one install to see where the site broke.  It was with the main Virtuemart 4.0.6 install.  I have no error message with the error report turned on. I do have an inspector error showing:

product-categories:6 Uncaught SyntaxError: Unexpected string (at product-categories:6:485)

Any suggestions on what else to look for? 


IP   69.167.158.101
URL   https://www.industrialsemi.com
PHP   7.4.30
MySQL   5.7.38
Web server   Apache/2.4.54 (cPanel) OpenSSL/1.1.1q mod_bwlimited/1.4

I have again restored the site back to the version prior to the VM update.
Title: Re: Product Page Missing after upgrading to VM 4.06
Post by: pinochico on July 18, 2022, 23:45:22 PM
QuoteAny suggestions on what else to look for?

No suggestion,
because we don't see your code or debug, we don't want if you use override or not.
Title: Re: Product Page Missing after upgrading to VM 4.06
Post by: Cpointcc on July 19, 2022, 15:42:15 PM
Hello,

I have updated the site again.  You should be able to see the broken pages under Product Categories, then choose a category. 

https://snipboard.io/FKXV4j.jpg

https://snipboard.io/usKSZj.jpg

However, the Module for the Special Buys works:  https://snipboard.io/UIwfWv.jpg

The search module no longer works either.

Thank you for helping.



Title: Re: Product Page Missing after upgrading to VM 4.06
Post by: GJC Web Design on July 19, 2022, 17:25:05 PM
there are definitely routing problems with VM4.0.6 but a lot of corrections have been made for the next release which should be shortly...

Title: Re: Product Page Missing after upgrading to VM 4.06
Post by: Cpointcc on July 19, 2022, 17:26:31 PM
Shortly as in hours, days, weeks?

Title: Re: Product Page Missing after upgrading to VM 4.06
Post by: GJC Web Design on July 19, 2022, 17:40:22 PM
in the lap of the gods but would think a couple of days at most..

BTW ... there is no compulsion to update versions .. it is nice to have the latest but as an early adopter there is always the chance of an undetected bug with any new software....  ;)
Title: Re: Product Page Missing after upgrading to VM 4.06
Post by: Cpointcc on July 19, 2022, 17:46:05 PM
I agree, however, I was testing with PHP8 upgrade so I wanted to ensure that wasn't the culprit.  Thanks for your reply.
Title: Re: Product Page Missing after upgrading to VM 4.06
Post by: Cpointcc on July 19, 2022, 20:56:58 PM
I have restored back to my pre vm4 version.  Client can't be down too long.
Title: Re: Product Page Missing after upgrading to VM 4.06
Post by: pinochico on July 20, 2022, 03:11:36 AM
QuoteClient can't be down too long.

I am constantly surprised at the basic mistakes people make here.

The basic lesson of web programmers is - if it works don't upgrade, don't touch the system.
We have sites that are 12 years old and still make money and are functional and people from all over the world keep coming and buying them.

So any complaining about what the client wants is irrelevant at this point - he is not the one who decides whether to upgrade or not, you are the one to blame for doing it and using a still non-functional beta version on a production site, on top of that on untested PHP 8.1 (if you wrote it correctly and it is true)
Excuse it then by what the client wants and that it won't last long - so what?

Is the VM responsible for what I install and set up for the clients?
No, I am solely responsible for that and I have to understand it properly to know that I will suffer the consequences if I make a mistake.
Only me and not VirtueMart

And VirtueMart has no obligation to save my ass.

We have now pushed back 4 eshops for another year. They are on J25 and will last. We would not have made it to the beginning of the season, it is pointless to stress me and clients now.

It will already be a working J4.2 without basic bugs and it looks promising even with the VM version (according to chat).

In the meantime, we better upgrade 20 sites from J15 to J4 (no VM, just core).
Title: Re: Product Page Missing after upgrading to VM 4.06
Post by: Roderic on July 20, 2022, 14:47:03 PM
Quote from: pinochico on July 20, 2022, 03:11:36 AM

I am constantly surprised at the basic mistakes people make here.

The basic lesson of web programmers is - if it works don't upgrade, don't touch the system.

Not so sure about that, there are updates to fix security holes etc.
When updating PHP to keep it safe and up to date, you need to update Joomla / VM to keep it compatible.

The VM versions released in the last month or 2 are also not released as "Beta". They also work fine in J3.10. In J4 it needs some work.
Title: Re: Product Page Missing after upgrading to VM 4.06
Post by: pinochico on July 20, 2022, 18:37:19 PM
It's just a matter of perspective.

Yes, we also had one colleague in the collective who was always updating something and constantly solving problems.
We don't have him anymore. Clients were complaining that they had to deal with things all the time and the eshops weren't making money.

Yes, VM4 on J3 after the upgrade already shows the recommended stability for deployment on production eshops.