RE: [PEAR] dataobjects error
| From: | ThE LinuX_KiD | Date: | Sat, 04 Sep 2004 21:50:43 +0000 |
| Subject: | RE: [PEAR] dataobjects error | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-14414@lists.php.net to get a copy of this message | ||
Thank you !!
has worked !
->
->
-> On Thu, 26 Aug 2004 18:27:10 -0300, ThE LinuX_KiD
-> <gregoriandres@yahoo.com.ar> wrote:
-> >
-> > I've developed a project with Dataobjects
-> >
-> > when I test it on my Windows computer (with apache)
-> > there is not problems
-> >
-> > when I test it on Linux / apache production server
-> > I get a rare error:
-> >
-> > Warning: unable to call dataobjects_status::$E;e() method in
-> > /home3/jalilsta/jalilstamps-www/pear/DB/DataObject.php on line 378
-> >
-> > why, DataObjects call to "$E;e()" method ????
-> >
->
-> This is almost certainly due to the overloading that DB_DO does. Set
-> this before you include DB/DataObject.php:
->
-> define('DB_DATAOBJECT_NO_OVERLOAD', true);
->
->
-> > this happens when I try to run a simple "find();"
-> >
-> > .....
-> > require_once($_SERVER['DOCUMENT_ROOT'].'/classes/Status.php');
-> > DB_DataObject::debugLevel(5);
-> >
-> > $item = new DataObjects_Status();
-> > $item -> id=1;
-> > $item -> find();
-> > .....
-> >
-> > where is error ?
-> >
-> > next is my dataobjects, debug (5).
-> >
-> > thank you!
-> > andres
-> >
-> > dataobjects_status: __find:
-> > dataobjects_status: CONNECT: NEW CONNECTION
-> > dataobjects_status: CONNECT:
-> mysql://jalilsta:XXXX@127.0.0.1/jalilstamps_com
-> > e92ee8f40d69eadcd0a01604dff65ac8
-> > dataobjects_status: CONNECT:
-> >
-> a:1:{s:32:"e92ee8f40d69eadcd0a01604dff65ac8";O:8:"db_mysql":25:{s
-> :10:"connec
-> >
->
tion";i:0;s:7:"phptype";s:5:"mysql";s:8:"dbsyntax";s:5:"mysql";s:
-> 14:"prepare
-> >
-> _tokens";a:0:{}s:13:"prepare_types";a:0:{}s:8:"num_rows";a:0:{}s:
-> 19:"transac
-> >
->
tion_opcount";i:0;s:10:"autocommit";b:1;s:9:"fetchmode";i:1;s:3:"
-> _db";s:15:"
-> >
-> jalilstamps_com";s:6:"_debug";b:0;s:19:"_default_error_mode";N;s:
-> 22:"_defaul
-> >
->
t_error_options";N;s:22:"_default_error_handler";s:0:"";s:12:"_er
-> ror_class";
-> >
->
s:8:"DB_Error";s:16:"_expected_errors";a:0:{}s:8:"features";a:4:{
-> s:7:"prepar
-> >
->
e";b:0;s:8:"pconnect";b:1;s:12:"transactions";b:1;s:5:"limit";s:5
-> :"alter";}s
-> >
-> :13:"errorcode_map";a:18:{i:1004;i:-15;i:1005;i:-15;i:1006;i:-15;
-> i:1007;i:-5
-> >
-> ;i:1008;i:-17;i:1022;i:-5;i:1046;i:-14;i:1048;i:-3;i:1050;i:-5;i:
-> 1051;i:-18;
-> >
-> i:1054;i:-19;i:1062;i:-5;i:1064;i:-2;i:1100;i:-21;i:1136;i:-22;i:
-> 1146;i:-18;
-> >
-> i:1216;i:-3;i:1217;i:-3;}s:16:"prepared_queries";N;s:15:"prepare_
-> maxstmt";i:
-> >
->
0;s:10:"last_query";s:0:"";s:22:"fetchmode_object_class";s:8:"std
-> Class";s:7:
-> >
->
"options";a:7:{s:10:"persistent";b:0;s:3:"ssl";b:0;s:5:"debug";i:
-> 0;s:14:"seq
-> >
->
name_format";s:6:"%s_seq";s:8:"autofree";b:0;s:11:"portability";i
-> :0;s:8:"opt
-> >
->
imize";s:11:"performance";}s:3:"dbh";N;s:3:"dsn";a:9:{s:7:"phptyp
-> e";s:5:"mys
-> >
->
ql";s:8:"dbsyntax";s:5:"mysql";s:8:"username";s:8:"jalilsta";s:8:
-> "password";
-> >
->
s:8:"KKgNFfrc";s:8:"protocol";s:3:"tcp";s:8:"hostspec";s:9:"127.0
-> .0.1";s:4:"
-> >
port";b:0;s:6:"socket";b:0;s:8:"database";s:15:"jalilstamps_com";}}}
-> > db_dataobject_generator: CONNECT: USING CACHED CONNECTION
-> > db_dataobject_generator: fillTable: getting def for
-> jalilstamps_com/status
-> > db_dataobject_generator: defs: Array ( [0] => Array ( [table] => status
-> > [name] => id [type] => int [len] => 3 [flags] => not_null primary_key
-> > unsigned auto_increment ) [1] => Array ( [table] => status [name] =>
-> > descripcion [type] => string [len] => 35 [flags] => not_null ) )
-> > TABLE STRUCTURE FOR status Array ( [0] => stdClass Object ( [table] =>
-> > status [name] => id [type] => int [len] => 3 [flags] =>
-> not_null primary_key
-> > unsigned auto_increment ) [1] => stdClass Object ( [table] =>
-> status [name]
-> > => descripcion [type] => string [len] => 35 [flags] => not_null ) )
-> > db_dataobject_generator: CONNECT: USING CACHED CONNECTION
-> > Array ( [0] => dump for status [1] => Array ( [table] => Array
-> ( [id] => 129
-> > [descripcion] => 130 ) [keys] => Array ( [id] => N ) ) )
-> > Warning: unable to call dataobjects_status::$E;e() method in
-> > /home3/jalilsta/jalilstamps-www/pear/DB/DataObject.php on line 378
-> > dataobjects_status: CONNECT: USING CACHED CONNECTION
-> >
->
-> --
-> DB_DataObject_FormBuilder - The database at your fingertips
-> http://pear.php.net/package/DB_DataObject_FormBuilder
->
-> paperCrane --Justin Patrin--