Free cms blog design page
Home Free Templates Joomla Templates JoomlaStats
JoomlaStats  E-mail
User Rating: / 0
PoorBest 

Working in legacy mode with joomla 1.5...

getting

Cannot access empty property

 

error.... still geting in the admin part

Getting the Database Handler from the Factory

Phew. Still no joy.

Fatal error: Call to a member function setQuery() on a non-object

This one seems a bit strange at first glance. You might think "what's wrong with $database"? Fair question. The answer is it doesn't exist any more as a global variable. This error is caused way back up the chain where we make the new table object (the fancy way we say that is "when we instantiate the class").

To fix this one we have to hunt down each occurrence of:

global $database;

And replace that with:

$database = &JFactory::getDBO();


JFactory is a wondeful class in the new API. It give you access to a few handy variable without resorting to using globals. In this case it's useful for getting the default database connector.

That one takes a while. I found the easiest way to find them was to search for "global" using your IDE's find-in-files feature if it has one.

 

Fatal error: Cannot access empty property in /home/winstart/domains/winstart.com/public_html/template/libraries/joomla/registry/registry.php on line 197

solution:

Great tool!

In order to make it work with Joomla 1.5 you need to make this changees to the Registry.PHP


Changed from:
line 196 // Get the old value if exists so we can return it
line 197 $ns->$nodes[$i] =& $value;
line 198
line 199 return $ns->$nodes[$i];

To:
line 196 // Get the old value if exists so we can return it
line 197 if($nodes[$i]) $ns->$nodes[$i] =& $value;
line 198
line 199 if ($nodes[$i]) return $ns->$nodes[$i];

YES IT WORKS

 

 

BlinkList     Del.icio.us     Digg This!     Diigo Diigo    Facebook     Furl     Google     Ma.gnolia     Mr. Wong     Seed Newsvine     Reddit     Slashdot     Stumble It!     Technorati     Yahoo MyWeb
 

Add your comment

Your name:
Your website:
Subject:
Comment:
  The word for verification. Lowercase letters only with no spaces.
Word verification:

Group 2 Tab

Group 4 Tab