SEF Advance 2008 1.2.6 & Virtuemart 1.1.0

16 years 1 month ago #3130 by benmcntsh
Hello, I just bought SEF Advance 2008 and it works perfectly with Joomla. I am also using Virtuemart 1.1.1 and I am having a couple of problems with the sef_ext.php extension that is available.

Just dropping in the file as-is produces the error:

Direct Access to this location is not allowed.

So, I replaced line 14:
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );

with
if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' );

Then, when trying to view a product page I got the following error:

Fatal error: Call to a member function setQuery() on a non-object in /home1/picturj2/public_html/components/com_virtuemart/sef_ext.php on line 255

which is referring to this line of code:
$database->setQuery( $q );

Any idea how to fix that one?

Thanks!

Please Log in or Create an account to join the conversation.

16 years 1 month ago #3131 by Saka
Activate the legacy mode plugin.

Emir Sakic
www.sakic.net

Please Log in or Create an account to join the conversation.

About us

We provide high quality Joomla components created by a co-founder and original core developer of Joomla. For over a decade, our products have been used by more than 20.000 webmasters around the world.

Stay in touch