Menu Content

Podpora

> Diskusní fóra, FAQs & placená podpora
Welcome, Guest
Username Password: Remember me

ERROR UPDATE new 2.1.1 com_content.php on line 14
(1 viewing) (1) Guest
Support forum for users using free edition of JoomSEF 3 (Joomla 1.5 compatible). These forums are mainly for mutual help between users.

Please note that due to our capacity limitations, we do not monitor these forums regularly.
  • Page:
  • 1

TOPIC: ERROR UPDATE new 2.1.1 com_content.php on line 14

ERROR UPDATE new 2.1.1 com_content.php on line 14 17 years, 4 months ago #3010

PLEASE HELP:

I've just setup joomla with joomsef 2.1.1. After upgrading fully successfully on my localhost, i transfered, did all neccessary changes (done this before) and get this error

www.hcsaccess.co.uk/

Fatal error: Class sefext_com_content: Cannot inherit from undefined class sef_404 in /home/httpd/vhosts/hcsaccess.co.uk/httpdocs/components/com_sef/sef_ext/com_content.php on line 14[/b]

PLEASE HELP, what is it. Does the .htaccess need other changing??

My DB is on the localhost with the hosting company UKDomains.

Any suggestions will really help.

Thanks<br><br>Post edited by: ajsajs7, at: 2007/09/01 10:16

Re:ERROR new 2.1.1 sef_ext/com_content.php on line 14 17 years, 4 months ago #3011

FILE for content.php

&lt;?php
/**
* SEF module for Joomla!
*
* @author $Author: michal $
* @copyright ARTIO s.r.o., www.artio.cz
* @package JoomSEF
* @version $Name$, ($Revision: 4994 $, $Date: 2005-11-03 20:50:05 +0100 (??t, 03 XI 2005) $)
*/

// Security check to ensure this file is being included by a parent file.
if (!defined('_VALID_MOS')) die('Direct Access to this location is not allowed.');

class sefext_com_content extends sef_404
{
function create($string, &amp;$vars) {
global $sefConfig;

$params = SEFTools::GetExtParams('com_content');

extract($vars);

// Set title.
$title = array();

//Limitstart, limit nog toevoegen
switch (@$task) {
case 'new': {
/*
$title[] = getMenuTitle($option, $task, $Itemid, $string);
$title[] = 'new' . $sefConfig-&gt;suffix;
*/
break;
}
case 'archivecategory':
case 'archivesection': {
if (eregi($task.\&quot;.*id=\&quot;.$id, $_SERVER['REQUEST_URI'])) break;
}
default: {
if( isset($do_pdf) &amp;&amp; ($do_pdf == 1) ) {
// Create PDF
$title = sef_404::getContentTitles('view', $id);
if (count($title) === 0) $title[] = getMenuTitle(@$option, @$task, @$Itemid);

$title[] = _CMN_PDF;
} else {
//$title = array_merge($title, sef_404::getContentTitles($task,$id));
$title = sef_404::getContentTitles($task, $id);
if (count($title) === 0) $title[] = getMenuTitle(@$option, @$task, @$Itemid);
// if ((@$task == \&quot;view\&quot;) &amp;&amp; isset($sefConfig-&gt;suffix)) {
// // throw the suffix on the last item
// if ($sefConfig-&gt;suffix == \&quot;/\&quot;) {
// $title[] = \&quot;/\&quot;;
// }else{
// $title[count($title)-1] .= $title[count($title)-1].$sefConfig-&gt;suffix;
// }
// }

// Add content ID if set to
if( $params-&gt;get('titleid', '0') != '0' ) {
$i = count($title) - 1;
$title[$i] = $id . '-' . $title[$i];
}

if ((@$task == 'view') &amp;&amp; isset($sefConfig-&gt;suffix)) {
$title[count($title) - 1] .= $sefConfig-&gt;suffix;
}
else {
$title[] = '/';
}

if( isset($pop) &amp;&amp; ($pop == 1) ) {
// Print article
$title[] = _CMN_PRINT. (isset($page) ? '-'.($page+1) : '');
}
}
}
}
if (count($title) &gt; 0) {
$string = sef_404::sefGetLocation($string, $title, null, @$limit, @$limitstart, @$lang);
}

return $string;
}
}
?&gt;

Re:ERROR new 2.1.1 sef_ext/com_content.php on line 14 17 years, 4 months ago #3016

Had to result to old version of Joomsef 1.5

Can you please tell me why there are two forwarded slashes // in the address bar?

www.hcsaccess.co.uk//platforms.html

???

Any suggestions?

below is .htaccess
________________________________________________________________

## Can be commented out if causes errors, see notes above.
Options FollowSymLinks

#
# mod_rewrite in use

RewriteEngine On


# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla! Directory (just / for root)

# RewriteBase /


########## Begin Standard SEF Section
## ALL (RewriteCond) lines in this section are only required if you actually
## have directories named 'content' or 'component' on your server
## If you do not have directories with these names, comment them out.
#
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
#RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
#RewriteRule ^(content/|component/) index.php
#
########## End Standard SEF Section


########## Begin 3rd Party or Core SEF Section
#
#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
#
########## End 3rd Party or Core SEF Section
  • Page:
  • 1
Přihlášení uživatele Prázdný