Home arrow All Articles & News
All Articles & News
Linux Reference PDF Print E-mail
Wednesday, 21 June 2006
Error: Argument list too long

When removing large number of files this error might occur. In order to avoid it use:
“find -type f -print0 | xargs -0 rm”

If it does not work, use “find ./ -name “*8*log -print0| xargs -0 rm” first.

 

 

MySQL

Login into mysql:

mysql -uuser -ppassword

 

Last Updated ( Wednesday, 21 June 2006 )
 
Warning: main(components/com_hotproperty PDF Print E-mail
Wednesday, 21 June 2006

site> statistics > search text

from the admin section, I get the following error message:

======================================

Warning: main(components/com_hotproperty/language/english.php): failed to open stream: No such file or directory in /usr/home/mysite/public_html/site/mambots/search/hotproperty.searchbot.php on line 24

Warning: main(): Failed opening ‘components/com_hotproperty/language/english.php’ for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /usr/home/mysite/public_html/site/mambots/search/hotproperty.searchbot.php on line 24

======================================

In order to get rid off the error made this change in hotproperty.searchbot.php line 24:

include_once($mosConfig_absolute_path.’/components/com_hotproperty/language/’.$hp_language.’.php’);
//include_once(’components/com_hotproperty/language/’.$hp_language.’.php’);

 
User name is not shown PDF Print E-mail
Wednesday, 21 June 2006

After upgrading to Joomla 1.08 user name is not shown correctly on the lofin form.

“Hi, 0″ is displayed insteadof “Hi, username”

The followind code is missing and should be added to mod_login.php in order to fix this problem:

///////// add this into mod_login.php before line 49 IF statement

if ( $name ) {
$query = “SELECT name”
. “\n FROM #__users”
. “\n WHERE id = $my->id”
;
$database->setQuery( $query );
$name = $database->loadResult();
} else {
$name = $my->username;
}
////////////////////////////

if ( $my->id ) {
// Logout output
// ie HTML when already logged in and trying to logout
if ( $name ) {
$name = $my->username;
}

 
Linked component name in Pathway PDF Print E-mail
Wednesday, 21 June 2006

There is a problem in Joomla!’s pathway when you’re using a third party component. When you navigate deeper in to a component like Mosets Tree you would expect to be able to browse back to the root directory from the pathway. But no, Joomla simply return the component name without link.

This hack) fixes this problem and in addition to that, it fixes the pathway problem when you have Mosets Tree published to the frontpage. It removes the duplication and works as expected.

Requirements

This hack is based on Joomla! 1.0.7 but it should work with any version of Joomla.

Instructions

There is a hacked file at the end of this post if you want to skip the details.

FILE: /includes/pathway.php

LINE: 286

You have the following codes
PHP Code:
$newlink = ” $itemname”;

Replace it with:
PHP Code:
if( @$mitems[$home_menu->id]->name <> $item->name ) {
$newlink = ‘
 
Joomla TITLE tag PDF Print E-mail
Wednesday, 21 June 2006

n order to change TITLE tag and/or remove the word HOME from titles you willll need to edit the Joomla.php file.

 

Joomla 1.0.8 and 1.0.12: 

 

Replace function setPageTitle to this one:

function setPageTitle( $title=null ) {
        if (@$GLOBALS['mosConfig_pagetitles']) {
            $title = trim( htmlspecialchars( $title ) );
            $title = stripslashes($title);

if ($title == 'Home')
{
 $this->_head['title'] = $GLOBALS['mosConfig_sitename'];
}
else
{
 $this->_head['title'] = $title;
}

        
        }
    }

This code can be adjusted to your needs. For example you may want to add or remove $GLOBALS[’mosConfig_sitename’] from the else clause.

Last Updated ( Friday, 25 May 2007 )
 
<< Start < Prev 1 2 3 4 5 Next > End >>

Results 28 - 36 of 41