• Home
  • Get help
  • Ask a question
Last post 2 hours 24 min ago
Posts last week 191
Average response time last week 1 hour 50 min
All time posts 68187
All time tickets 10530
All time avg. posts per day 20

Helpdesk is open from Monday through Friday CET

Please create an (free) account to post any question in the support area.
Please check the development versions area. Look at the changelog, maybe your specific problem has been resolved already!
All tickets are private and they cannot be viewed by anyone. We have made public only a few tickets that we found helpful, after removing private information from them.

#1071 – sh404SEF - Virtuemart 2 - Blank Product Pages

Posted in ‘sh404SEF’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Monday, 28 September 2015 11:13 UTC
SntAmico
 Hi,

I have just purchased the sh404SEF plugin and am in the process of going through my website to optimise all URLs before going online.

I doing so I finally arrived at the store area of the site and found that all product pages returned a blank screen. After testing for a while I discovered that the product pages returned when disabling the sh404SEF plugin.

I have seen online that there are some threads relating to some incompatibility, however I also see that virtuemart has been listed as compatible with your component.

Please advise.

Turning on error reporting provided the following:

Fatal error: Access to undeclared static property: VmConfig::$vmlang in xxxxxxxxxxxxxxxx/components/com_sh404sef/meta_ext/com_virtuemart.php on line 180

Regards,
John
Monday, 28 September 2015 13:45 UTC
wb_weeblr
Hi

What version of Virtuemart are you using? This error maybe be happening with extremely old versions, like 2.0.x

Rgds
 
Monday, 28 September 2015 14:04 UTC
SntAmico
Hi,

Am currently using Joomla 2.5.8.
Monday, 28 September 2015 14:05 UTC
wb_weeblr
Hi

My question was:
What version of Virtuemart are you using?


Also:
Joomla 2.5.8.
I assume you mean Joomla 2.5.28?

Rgds
 
Monday, 28 September 2015 14:12 UTC
SntAmico
Ah sorry about that, VM version is 2.0.12f

Yes meant 2.5.28 although 2.5.8 is written all over the Joomla backend.



File code reference @ line 180 is as follows:

// product data
$productRecord = ShlDbHelper::selectObject('#__virtuemart_products_' . VmConfig::$vmlang, array('product_name', 'customtitle'), array('virtuemart_product_id' => $virtuemart_product_id));
if (!empty($productRecord))
{
$productTitle = empty($productRecord->customtitle) ? $productRecord->product_name : $productRecord->customtitle;
array_unshift($title, $productTitle);
}

Monday, 28 September 2015 14:55 UTC
wb_weeblr
Hi

Problem is not the sh404SEF code, problem is the Virtuemart version that's way too old (end of 2012). Current VM is version 3, but even in the 2.X branch, the current version is 2.6.x.
And even in the 2.0.x series, 2.0.12 is not the latest, it's 2.0.27, you're missing like 12 versions!

I don't why you have such an old version which has so many vulnerabilities, but I think at this stage the simplest way is simply to disable this feature, by commenting out the code as follow:
// product data
/*
$productRecord = ShlDbHelper::selectObject('#__virtuemart_products_' . VmConfig::$vmlang, array('product_name', 'customtitle'), array('virtuemart_product_id' => $virtuemart_product_id));
if (!empty($productRecord))
{
$productTitle = empty($productRecord->customtitle) ? $productRecord->product_name : $productRecord->customtitle;
array_unshift($title, $productTitle);
}
*/


Rgds
 
Monday, 28 September 2015 15:10 UTC
SntAmico
Ok, thank you for your insight and subtly suggesting the need for an update.

To be honest, updating is something I will shortly be considering, however, this VM version was provided within a Joomla template theme, which has been somewhat problematic to say the least. I will comment out this code and get back to you.
Monday, 28 September 2015 15:44 UTC
wb_weeblr
Hi

Sorry if I was blunt, but it's only when you site's been hacked that you regret not having updated continuously. That's especially true for e-commerce of course, where your income is directly related to working hours of the site. Been doing sh404SEF since 2006. Seen quite a few of that!

I'll add a test in next release so that this situation won't cause a fatal error. The function will not be the same, but to be honest, support for Joomla 2.5 will be dropped soon (for new versions) so that doesn't change much anyway.

Rgds
 
Monday, 28 September 2015 15:49 UTC
SntAmico
Ok that appears to have resolved it. I will make a note to undo this when I do get the VM update sorted.

Appreciate where your comming from with regards to updates. Thanks again for your time.

Regards,
John
Monday, 28 September 2015 16:15 UTC
wb_weeblr
Hi

Closing this ticket now, feel free to open a new one as needed. If you do so, please mention this ticket number in the new one.

If you created any superadmin account for us, be sure to delete or block it now to avoid unecessary risk in the future.


Cheers!
 
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.