Fatal Error Joomla Default Editor

Leave a comment

I just meet a problem in my Joomla-made Website, when I want to install Phocagallery component there was an error

Fatal error: Call to undefined method stdClass::onDisplay() in /[host root folder]/libraries/joomla/html/editor.php on line 261

If we see the error directory, it doen’s come from Phocagallery component but it pure Joomla bug. I’m looking for the solution and I got this one:

1. Go to error directory above, chmod-ing file editor.php to 664 then open the file

2. Go to line 261, you will see

// Try to authenticate
$result[] = $plugin->onDisplay($editor);

Replace the code:

if (method_exists($plugin, ‘onDisplay’)) { $result[] = $plugin->onDisplay($editor); }

3. Save and reupload the file using your FTP client.

4. Done, solved.

Reference: http://forum.joomla.org


Flash Database Connection VB.NET

Leave a comment

This is what I called database connection for lazy people like me Tongue out

I’m using this method in VB.NET 2005 Environment, connecting my program with SQL Server 2005. Just click on Data Sources on the left side of your VB.NET Environment then click icon Add New Data Source and so follow these step below:

  1. After you click Add New Data Source, the Data Source Configuration Wizard will show up, choose Database on Choose a Data Source Type step then click Next.
  2. Click New Connection… button in Choose Your Data Connection step, you have to configure the connection details.
  3. Choose Microsoft SQL Server (OLE DB) for Data source, write down your Server name for example LISAMIRASZ-PC (this is my PC name).
    Choose Use SQL Server Authentication and provide it by username and password you logon to your SQL Server the select a database name.
  4. Click Test Connection button and if the connection is success you may click OK.
  5. If you wanto save your Connection String configuration, just give the Connection String a name then check the checkbox for save.
  6. Click Next then the next step will show Choose Your Database Objects, select the table(s), stored procedure(s), view(s) or function(s) that you want to include to your application project and give the Dataset a name, click Finish.

Connection is done! If you want to embed the field on dataset into your application form, all you have to do is only drag the field name on the Data Sources into your form. Sooo lazy… =))

Create ODBC DSN automatically in VB.NET deployment


Here is step-by-step how to create an ODBC DSN automatically through client/server application setup project in your client computer so you don’t need to adding and configure an ODBC connection manually in every client computer to support your client/server application. For your information, I’m using Windows Vista Home Premium SP1, SQL Server 2005 and VB.NET 2005 SP1.

1.  Open new blank text file using Notepad (I’m using Notepad++), write:

Windows Registry Editor Version 5.00

“your_user_dsn_name”=”SQL Native Client”

2.  Save the file by using .reg extension
3. Open another brand new blank text file the write:

Windows Registry Editor Version 5.00


3.  Save the file by using .reg extension
4.  Now, you have 2 .reg files on your machine, go to your Project
5.  Under Visual Studio Solution Explorer, right click your Setup Project – View – Registry
6.  On Registry window, right click Registry on Target Machine – Import
7.  Choose your first .reg file you have just created before then click OK
8.  Do the same step for the second .reg file
9.  Finish, save your project

Quite simple isn’t it?