Hello there! Welcome to Youjoomla Support Forums

We are Web Development Company specializing in Joomla Templates , Joomla Extensions and WordPress Themes development . You are not able to see some forum threads due to your memberhip level. To unlock all forums and special customer support please take few moments to signup . If you are just searching for free joomla templates , or free joomla extension support simply head to our Free Joomla Support forums and open a new thread. Our moderators will help you as soon as possible. To spead up the response time please take few seconds and go over forum rules

Have fun!

[SOLVED] Fatal error: Class 'ContentHelperRoute' not found in mod_yj_booking.php on l

02-23-2010, 03:19 PM
# 1 (permalink)
buuuiak
Fatal error: Class 'ContentHelperRoute' not found in /home/domain_account/public_html/modules/mod_yj_booking/mod_yj_booking.php on line 150

I've got this error when I try to accesss any products from my VirtueMart after I instal the module yj_booking.

this is the code around line 150 :

PHP Code:

$booking = array();
foreach ( 
$load_items as $row ) {
    
$book = array(
        
'link' => ContentHelperRoute::getArticleRoute($row->slug$row->catslug$row->sectionid),
        
'title' => $row->title
    
);
    
$booking[] = $book;

Please help me with this issue !

my link is http://allinclusive.ro/typography-ov...ypography.html
02-23-2010, 03:30 PM
# 2 (permalink)
orion_
Read forum rules please, and give us link to your site..
02-23-2010, 03:51 PM
# 3 (permalink)
buuuiak
Quote:
Originally Posted by orion_
Read forum rules please, and give us link to your site..
Welcome to the Frontpage
02-23-2010, 04:14 PM
# 4 (permalink)
orion_
Hello

What version of joomla is your site?
If not the latest, upgrade! (1.5.15)
02-23-2010, 04:37 PM
# 5 (permalink)
orion_
Hello

I tested and installed the yj_booking_module to a site that has the same template you have. (with joomla 1.5.15 & PHP 5.2.9)
Published it and had no problem with VM Cart items...
02-23-2010, 05:01 PM
# 6 (permalink)
buuuiak
It's joomla 1.5.15 . PHP ver. 5.2.12 VirtueMart 1.1.4 . template RocketTheme Mynxx ver. 1.5.2

But the issue problem apear when access other links too diffrent from VirtueMart ex : the joomla default Poll module ...

Please help me with this issue.
02-23-2010, 05:24 PM
# 7 (permalink)
buuuiak
why in the root of the module directory mod_yj_booking isn't a helper.php like in all other module directory ?
this can be the source of the error ?
02-23-2010, 05:35 PM
# 8 (permalink)
buuuiak
could be a problem with components/com_content/helpers/route.php ? somewhere is a conflict I guess ... what about testing with this added code

PHP Code:

if(!class_exists('ContentHelperRoute')) require_once (JPATH_SITE '/components/com_content/helpers/route.php'); 
in mod_yj_booking.php ?
02-23-2010, 05:49 PM
# 9 (permalink)
orion_
Yes.. partly..

Try this:

Add this to mod_yj_booking.php
require_once (JPATH_SITE.DS.'components'.DS.'com_content'.DS.'h elpers'.DS.'route.php');

under this
defined( '_JEXEC' ) or die( 'Direct Access to this location is not allowed.');
02-24-2010, 05:48 AM
# 10 (permalink)
buuuiak
seams that now it's working, I hope well ... thank you !
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Powered by vBulletin®
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.

Members Login

Username
Password