VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: jessemullinax on September 14, 2018, 21:45:14 PM

Title: VirtueMart - Invalid extension update on version 3.2.12 - how do i update???
Post by: jessemullinax on September 14, 2018, 21:45:14 PM
How do i update Virtuemart 3.2.12 extensions? When i try inside my Joomla account I pull an error called "Invalid extension update" ?

I have searched around for answers on how to fix this and found http://forum.virtuemart.net/index.php?topic=136977.msg479175#msg479175 but they are not very specific on how to update the .xml files. I was able to download the files here http://dev.virtuemart.net/projects/virtuemart/files but cannot locate where to over write the .xml files in my server directory and i also dont wannt do something wrong and break my website.

The reason why i want to fix this is because in my Google webmaster tools, my error pages are surging and i was told it is because of Virtuemart.

Do you have any suggestions on how to fix this please?
Title: Re: VirtueMart - Invalid extension update on version 3.2.12 - how do i update???
Post by: GJC Web Design on September 14, 2018, 22:23:31 PM
the latest stable is 3.2.14  http://dev.virtuemart.net/attachments/download/1119/com_virtuemart.3.2.14.9808_extract_first.zip

why don't u simply install this via Joomla ( test first on a clone etc)
Title: Re: VirtueMart - Invalid extension update on version 3.2.12 - how do i update???
Post by: jenkinhill on September 15, 2018, 11:11:01 AM
And see http://forum.virtuemart.net/index.php?topic=123808.0
Title: Re: VirtueMart - Invalid extension update on version 3.2.12 - how do i update???
Post by: jessemullinax on September 18, 2018, 17:31:29 PM
Forgive me for my ignorance, How do i set up a clone test site? I am kinda new to joomla.

ok just so i get this correct

I set up a back up of my entire site
i downloaded com_virtuemart.3.2.14.9808_extract_first.zip
Do i need to unzip it 1st before uploading?
If all goes well with that update then i install the aio com_virtuemart.3.2.14.9808_ext_aio.zip correct?

All should be updated and working like normal if all goes well.

Am in on the right track with this?
Thanks so much for all your help.

Thanks, Jesse
Title: Re: VirtueMart - Invalid extension update on version 3.2.12 - how do i update???
Post by: GJC Web Design on September 18, 2018, 20:15:07 PM
I set up a back up of my entire site
I personally would clone (copy somewhere as a test site) but if your happy to test on live and if it goes wrong ( normally shouldn't) then reinstate the backup .. fine

i downloaded com_virtuemart.3.2.14.9808_extract_first.zip
Do i need to unzip it 1st before uploading?

Yep -- it contains the 2 installers .. vm and AIO

If all goes well with that update then i install the aio com_virtuemart.3.2.14.9808_ext_aio.zip correct?
yep

All should be updated and working like normal if all goes well.
Title: Re: VirtueMart - Invalid extension update on version 3.2.12 - how do i update???
Post by: jessemullinax on September 18, 2018, 20:41:50 PM
Thank you for the help. One last newbie question

when i extracted the com_virtuemart.3.2.14.9808_extract_first.zip i noticed 3 zip files. What do i do with the 3rd here, com_tcpdf_1.0.4.zip?
Title: Re: VirtueMart - Invalid extension update on version 3.2.12 - how do i update???
Post by: Ventsi Genchev on September 18, 2018, 22:43:22 PM
Install the third zip file as well.
Title: Re: VirtueMart - Invalid extension update on version 3.2.12 - how do i update???
Post by: GJC Web Design on September 18, 2018, 22:51:13 PM
Quotecom_tcpdf_1.0.4.zip

pdf invoice creation files
Title: Re: VirtueMart - Invalid extension update on version 3.2.12 - how do i update???
Post by: jessemullinax on September 19, 2018, 15:57:10 PM
I was able to successfully update to 3.2.14 but when i go check the updates all the extensions still need updating and when i attempt to update those i am still pulling and error "invalid extension update" and nothing updates in Virtuemart. As seen in the images below Any suggestions?
Title: Re: VirtueMart - Invalid extension update on version 3.2.12 - how do i update???
Post by: jenkinhill on September 19, 2018, 18:07:11 PM
That is the list of installed extensions with their version numbers and the update links. The VM ones listed are all up to date, but all other stuff above Avatax need updating.

To check for updates go to Extensions/Manage/Update  if you don't see anything there clear cache and then use find updates
Title: Re: VirtueMart - Invalid extension update on version 3.2.12 - how do i update???
Post by: jessemullinax on September 19, 2018, 18:17:51 PM
Very cool, thank you ALL! I cleared the cache and all those update request went away! I could not have done this without the helpful advice from this forum! Again, thank you very much!
Jesse
Title: Re: VirtueMart - Invalid extension update on version 3.2.12 - how do i update???
Post by: jessemullinax on September 19, 2018, 20:05:50 PM
here is a related question i started with on this topic. In Google webmaster tools i have Virtuemart errors coming up as seen in the image below. When you click them my 404 page does not appear. here is an example https://www.linestop.com/tools/resilient-seat-knife-gate-valve/manufacturer/2lbin-com/by,pc.ordering,product_name?keyword= However if you go to any other page outside vituremart such as this example https://www.linestop.com/servicessdfsdfsdfsdf my 404 page appears. Why is virtuemart not allowing my 404 page to work and how can i fix this so that google webmaster tools does not pick them up?
Thank you in advance for your kind help
Title: Re: VirtueMart - Invalid extension update on version 3.2.12 - how do i update???
Post by: GJC Web Design on September 19, 2018, 22:27:01 PM
uncheck Enable VirtueMart 404 error handling in vm admin->config->config->shop
Title: Re: VirtueMart - Invalid extension update on version 3.2.12 - how do i update???
Post by: jessemullinax on September 19, 2018, 23:00:26 PM
I found and unchecked the enable VirtueMart 404 error handling and cleared all my cache files but i am still having the same issue. For example https://www.linestop.com/component/virtuemart/product-attributes/by,pc.ordering,product_name?keyword=&Itemid=435 However, this still is pulling a server error not found page.

If you take that same link above and delete all the way back to the https://www.linestop.com/component/virtuemart/product-attribut it will pull my correct 404 page.

Thanks, Jesse

Title: Re: VirtueMart - Invalid extension update on version 3.2.12 - how do i update???
Post by: Jörgen on September 19, 2018, 23:26:44 PM
https://www.linestop.com/index.php?option=com_content&view=article&id=299 (https://www.linestop.com/index.php?option=com_content&view=article&id=299)

Is a non https page, it has unsecured content. Check your code for the 404 page.

Jörgen @ Kreativ Fotografi
Title: Re: VirtueMart - Invalid extension update on version 3.2.12 - how do i update???
Post by: GJC Web Design on September 20, 2018, 00:03:37 AM
you still have all the example data published : e.g.  https://www.linestop.com/tools/resilient-seat-knife-gate-valve/manufacturer
https://www.linestop.com/component/virtuemart

and as for the correct 404 -- I think this is more to do with your server setup .. it seems when ever there is a dot in the url it returns the generic server 404

https://www.linestop.com/component/virtuemart/product-attrib.utes

https://www.linestop.com/corporate/cont.act-us

even non VM pages
Title: Re: VirtueMart - Invalid extension update on version 3.2.12 - how do i update???
Post by: jessemullinax on September 21, 2018, 16:15:02 PM
Wow good find! I was able to unpublish all the sample data to clean that page up thank you. I did discover a VirtueMart error as seen in the image on the product category page. I had to perform a product category search just to get them to show up in order to unpublish because all of them are not appearing as well as part of the columns. so far only 6 of the 10 VirtueMart product category will display. Any fixes on that? Not a huge deal but something to look at...

Lastly, anyone have ideas on why my 404 pages are not working when you simply place a "." period anywhere in the link as GJC Web Design pointed out? I will call my hosting support later today and if find out anything i will report my finding with you all.

https://www.linestop.com/component/virtuemart/product-attrib.utes

https://www.linestop.com/corporate/cont.act-us

Thanks, Jesse

Title: Re: VirtueMart - Invalid extension update on version 3.2.12 - how do i update???
Post by: jessemullinax on September 24, 2018, 19:38:08 PM
Submitted a ticket to my hosting about the 404 page situation and they were able to help me fix this. I will post the info here to help anyone else with this issue.

When you add a period ('.') to the request, it becomes a file request.

So with your example:

https://www.linestop.com/component/virtuemart/product-attrib.utes

Is actually requesting the file product-attrib with file extension 'utes'. As that doesn't exist, it triggers the 404 which loads C:\inetpub\vhosts\linestop.com\error_docs\Not_Found.html.

Versus your non-existent pages like https://www.linestop.com/fsdfsdfsdfds - since this has no file extension, it is using your base rewrite to load using index.php:

<rule name="Joomla Main Rewrite Rule" enabled="true" stopProcessing="false">
                    <match url="(.*)" ignoreCase="true" />
                    <conditions logicalGrouping="MatchAll">
                        <add input="{URL}" pattern="(/[^.]*|\.(php|html?|feed|pdf|raw))$" />
                        <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
                    </conditions>
                    <action type="Rewrite" url="index.php/" />
                </rule>

However, since 'product-attrib.utes' is a file request, it doesn't trigger this rewrite, which is how the Joomla 404s get handled.

I modified the Error Pages section for linestop.com and changed 404 from:

'Insert content from static file in to the error response: C:\inetpub\vhosts\linestop.com\error_docs\not_found.html'

to:

'Execute a URL on this site' and set the URL to your 404 page: /index.php?option=com_content&view=article&id=299

So now your 404s for requests like https://www.linestop.com/component/virtuemart/product-attrib.utes will load your custom 404 page. You can see that this change has modified the web.config for the 404 error to:

<error statusCode="404" path="/index.php?option=com_content&amp;view=article&amp;id=299" responseMode="ExecuteURL" />

Please let me know if you have any questions.
Title: Re: VirtueMart - Invalid extension update on version 3.2.12 - how do i update???
Post by: jessemullinax on October 01, 2018, 23:00:51 PM
Well dang just when you think you are good to go you find more issues.
I am attempting to fix my other error pages but Joomla is giving me a hard time

For example if you click this link https://www.linestop.com/services/pipeline-services/freeze-plugs/14-services?format=feed&type=rss
you will get the error 500 which i configured just as i did with my 404 error page but for some reason my template will not display with the content as seen when you click that link above.

Does anyone know how to get my 404 template to appear with the other error codes?
Here is what my 404 page looks like https://www.linestop.com/inde
Here is my web.config code.
<httpErrors>
            <remove statusCode="502" subStatusCode="-1" />
            <remove statusCode="501" subStatusCode="-1" />
            <remove statusCode="500" subStatusCode="-1" />
            <remove statusCode="412" subStatusCode="-1" />
            <remove statusCode="406" subStatusCode="-1" />
            <remove statusCode="405" subStatusCode="-1" />
            <remove statusCode="403" subStatusCode="-1" />
            <remove statusCode="401" subStatusCode="-1" />
            <remove statusCode="404" subStatusCode="-1" />
            <remove statusCode="400" />
            <error statusCode="400" path="C:\Inetpub\vhosts\linestop.com\error_docs\bad_request.html" />
            <remove statusCode="404" />
            <error statusCode="404" path="/index.php?option=com_content&amp;view=article&amp;id=299" responseMode="ExecuteURL" />
            <remove statusCode="407" />
            <error statusCode="407" path="C:\Inetpub\vhosts\linestop.com\error_docs\proxy_authentication_required.html" />
            <remove statusCode="414" />
            <error statusCode="414" path="C:\Inetpub\vhosts\linestop.com\error_docs\request-uri_too_long.html" />
            <remove statusCode="415" />
            <error statusCode="415" path="C:\Inetpub\vhosts\linestop.com\error_docs\unsupported_media_type.html" />
            <remove statusCode="503" />
            <error statusCode="503" path="C:\Inetpub\vhosts\linestop.com\error_docs\maintenance.html" />
            <error statusCode="401" prefixLanguageFilePath="" path="C:\Inetpub\vhosts\linestop.com\error_docs\unauthorized.html" />
            <error statusCode="403" prefixLanguageFilePath="" path="C:\Inetpub\vhosts\linestop.com\error_docs\forbidden.html" />
            <error statusCode="405" prefixLanguageFilePath="" path="C:\Inetpub\vhosts\linestop.com\error_docs\method_not_allowed.html" />
            <error statusCode="406" prefixLanguageFilePath="" path="C:\Inetpub\vhosts\linestop.com\error_docs\not_acceptable.html" />
            <error statusCode="412" prefixLanguageFilePath="" path="C:\Inetpub\vhosts\linestop.com\error_docs\precondition_failed.html" />
         <remove statusCode="500" />
            <error statusCode="500" path="/index.php?option=com_content&amp;view=article&amp;id=299" responseMode="ExecuteURL" />
            <error statusCode="501" prefixLanguageFilePath="" path="C:\Inetpub\vhosts\linestop.com\error_docs\not_implemented.html" />
            <error statusCode="502" prefixLanguageFilePath="" path="C:\Inetpub\vhosts\linestop.com\error_docs\bad_gateway.html" />
        </httpErrors>

Set up exactly like the 404 page

My hosting that helped me fix those others issues directed me to this page but its over my head... https://docs.joomla.org/Custom_error_pages

Thanks in advance.
Title: Re: VirtueMart - Invalid extension update on version 3.2.12 - how do i update???
Post by: Jörgen on October 02, 2018, 07:36:03 AM
I do not think this will always work to detect a 500 error. You can use Rupostels plugin instead:
https://www.rupostel.com/utilities-for-joomla/extensions/fatal-catcher-plugin (https://www.rupostel.com/utilities-for-joomla/extensions/fatal-catcher-plugin)

Be aware that this should not be included more than for debugging puposes. It could interfere with You website. But it is a great tool and gives You an email when a 500 error occurs :)

Jörgen @ Kreativ Fotografi
Title: Re: VirtueMart - Invalid extension update on version 3.2.12 - how do i update???
Post by: GJC Web Design on October 02, 2018, 10:17:06 AM
I doubt you will ever get a 500 error to redirect to some "error" page

500 means the server has stopped - how then will it then pick up the pieces and then start display Joomla articles as error pages?