Categories
Web Development

Subversion Notes

As I dip my toe in the SVN (Subversion) pond, I'll post here some resources for my own edification and that of anyone else who cares to follow this page.

Subversion Book Version Control with Subversion: For Subversion 1.5

Getting Started with SVN on Snipe.net

Categories
Joomla!

Rokbridge Install Error

Rokbridge is a Joomla!/phpbb bridge designed to allow the use of Joomla authentication on a phpbb install.

Upon install, running Joomla 1.5.14, The following error was encountered when I accessed rockbridge through the Joomla! admin panel:

Fatal error: Class 'JFile' not found in /home/…/administrator/components/com_rokbridge/helper.php on line 145

This was a little difficult to track down, (more reports than solutions) but the solution seems to be to add the following line immediately prior to line 145 in the referenced file;

[sourcecode language="php"]
jimport( 'joomla.filesystem.file' );
[/sourcecode]

In my case, I added a comment and a line of whitespace above and below for clarity, so I have the following code: starting at line 130 in helper.php:

[sourcecode language="php"]

function getParams($refresh = false)

{

static $instance;

 

if ($instance == null || $refresh)

{

$component="com_rokbridge";

 

$table =& JTable::getInstance('component');

$table->loadByOption( $component );

 

// work out file path

$option = preg_replace( '#\W#', ", $table->option );

$path = JPATH_ADMINISTRATOR.DS.'components'.DS.$option.DS.'config.xml';

 

// following line added to fix error at install – see http://www.rockettheme.com/forum/index.php?f=199&t=115248&rb_v=viewtopic

jimport( 'joomla.filesystem.file' );

 

if (JFile::exists( $path )) {

$instance = new JParameter( $table->params, $path );

} else {

$instance = new JParameter( $table->params );

}

}

 

return $instance;

}

[/sourcecode]

 

Reference: http://www.rockettheme.com/forum/index.php?f=199&t=115248&rb_v=viewtopic

 

Categories
Linux

Useful Linux Commands

Yes, I know.  This is pretty thin.  But as I stumble through my infrequent tasks in Linux, I need to write down the little bits that I need to remember.  Feel free to chip in!

To Delete a Folder With Contents

[sourcecode language="bash"]
rm -rf {folder}
[/sourcecode]

Show full path of current dir in linux command prompt

[sourcecode language="shell"]
PS1="[\u@\h \w]\\$ "
[/sourcecode]