Joomla! Discussion Forums



It is currently Wed Nov 25, 2009 6:31 am (All times are UTC )

 




Post new topic Reply to topic  [ 11 posts ] 
Author Message
Posted: Sun Dec 25, 2005 4:11 am 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Sat Aug 20, 2005 1:40 am
Posts: 201
Location: south of France
hello
i use $database->insertObject in the component im playing with.

when i updated to 1.0.5, i cant use this method anymore.

my browser tells me :
Fatal error: Call to undefined function: getpublicproperties() in (path)\includes\database.php on line 550

when i replace database.php with the 1.0.4 one, all is ok

i use it like :
$myobj = new stdclass;
$myobj->value1 = "a";
$myobj->value2 = "b";
$database->insertObject('#__mytable',$myobj );

after reading the code, i have seen that i should forget :
new stdclass
and use only
mosDBtable ?


Last edited by Jinx on Sun Dec 25, 2005 10:06 pm, edited 1 time in total.

Top
  E-mail  
 
Posted: Sun Dec 25, 2005 10:06 pm 
User avatar
Joomla! Champion
Joomla! Champion
Offline

Joined: Fri Aug 12, 2005 12:47 am
Posts: 6431
That is correct.

_________________
Johan Janssens - Joomla Co-Founder, Lead Developer of Joomla 1.5

http://www.nooku.org - multi-lingual content manager and rapid extension development framework for Joomla 1.5
http://www.joomlatools.eu - training, consulting and extension development


Top
   
 
Posted: Mon Dec 26, 2005 1:20 am 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Sat Aug 20, 2005 1:40 am
Posts: 201
Location: south of France
thanks for attention


Top
  E-mail  
 
Posted: Mon Dec 26, 2005 1:40 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Tue Aug 30, 2005 10:27 pm
Posts: 16
Location: Michigan
Yeah this problem breaks the registration process in CB RC2

Thanks for the heads up!


Top
   
 
Posted: Mon Dec 26, 2005 8:36 am 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Mon Aug 29, 2005 5:17 pm
Posts: 297
Location: Austria
is there fixed database.php or i need to use old database.php from 1.0.4 as this also break user registration on Comunity Builder 1.0 RC2....?

Thnx

_________________
BosanskoHercegovacki Chat Komjuniti
http://www.chat.ba


Top
   
 
Posted: Mon Dec 26, 2005 3:07 pm 
User avatar
Joomla! Champion
Joomla! Champion
Offline

Joined: Fri Aug 12, 2005 12:47 am
Posts: 6431
Use the old database.php from 1.0.4.

_________________
Johan Janssens - Joomla Co-Founder, Lead Developer of Joomla 1.5

http://www.nooku.org - multi-lingual content manager and rapid extension development framework for Joomla 1.5
http://www.joomlatools.eu - training, consulting and extension development


Top
   
 
Posted: Tue Dec 27, 2005 5:42 pm 
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Sat Oct 29, 2005 1:43 pm
Posts: 172
Is this a Joomla issue or an issue with the other software using the "new StdClass"??

Basically is it something that will be fixed in Joomla or something that needs to be fixed in the other software?

_________________
Thanks,
Greg
CB Connector (CBC) Developer
CBC is a Community Builder Plugin to allow connection of Joomla! 1.0.x and Community Builder to a Categories Hierarchy, phpbb2, or phpbb3 forum.


Top
   
 
Posted: Tue Jan 10, 2006 10:26 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Sun Oct 23, 2005 1:38 pm
Posts: 35
I have already upgraded to 1.0.5 - how do I back up to 1.0.4 please.


Top
   
 
Posted: Wed Jan 11, 2006 12:07 am 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Fri Aug 19, 2005 2:46 am
Posts: 777
Location: Washington State, USA
wene wrote:
i use it like :
$myobj = new stdclass;
$myobj->value1 = "a";
$myobj->value2 = "b";
$database->insertObject('#__mytable',$myobj );

after reading the code, i have seen that i should forget :
new stdclass
and use only
mosDBtable ?

Just so I get this straight, how do you use 'mosDBtable' instead of 'new stdclass'? Just a straight replace or another method?

I've been working on a component and haven't upgraded to 1.0.5 yet but I'd like to know before I do.

_________________
New to Joomla? :) Make sure2 visit:
\_Anna's Joomla Tips - index.php/topic,5503.0.html


Top
   
 
Posted: Wed Jan 11, 2006 10:17 am 
Joomla! Ace
Joomla! Ace
Offline

Joined: Thu Aug 18, 2005 9:06 am
Posts: 1465
focalguy wrote:
Just so I get this straight, how do you use 'mosDBtable' instead of 'new stdclass'? Just a straight replace or another method?

I've been working on a component and haven't upgraded to 1.0.5 yet but I'd like to know before I do.

Just look at the existing database classes... like mosMenu, mosContent etc. - they are sub classes of mosDBTable... if you want to use it ithout a sub class you would still need to provide the parameters, for example:
Code:
$obj =& new mosDBTable('#__tablename', 'id', $database);

_________________
http://de.siteof.de/


Top
   
 
Posted: Thu Jan 12, 2006 2:18 am 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Fri Aug 19, 2005 2:46 am
Posts: 777
Location: Washington State, USA
Thanks de. I guess I'll figure it out when I work on it some more. I'm just kind of learning PHP as I go so I don't completely understand 'classes', creating new instances and everything. I just try to go off of existing code and read some PHP tutorials as I go along.

_________________
New to Joomla? :) Make sure2 visit:
\_Anna's Joomla Tips - index.php/topic,5503.0.html


Top
   
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

Quick reply

 



Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group