Search the web
Sign In
New User? Sign Up
metal-dev · MetaL Development
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Error: Call to undefined function MetabaseCreateLOB()   Message List  
Reply | Forward Message #552 of 553 |
Hi!

I'm using the latest snapshot of Metastorage. The generated code doesn't
contain function named MetabaseCreateLOB(). So the bug is probably in
generation scripts. If you tell me where, I could upload the generated
code too.

I get the fallowing error:

Fatal error: Call to undefined function MetabaseCreateLOB() in
C:\Program Files\EasyPHP 2.0b1\www\uus\components\Fileshare\File.php on
line 376


Code I'm running is:

if(isset($_FILES['file']) && $_FILES['file']['size'] > 0){
$fileName = $_FILES['file']['name'];
$tmpName = $_FILES['file']['tmp_name'];
$fileSize = $_FILES['file']['size'];
$fileType = $_FILES['file']['type'];

$ff = &$f->newFile();
$ff->name = $fileName;
$ff->description = '';
$ff->setFileData($tmpName);
$ff->owner = $u->id;
$s = $ff->save();
$c->addFile($ff);
$c->save();
}
}

Class definition for File is:
<class>
<name>File</name>

<variable>
<name>name</name>
<type>text</type>
<length>64</length>
</variable>

<variable>
<name>fdata</name>
<type>largedata</type>
<binary>1</binary>
</variable>

<variable>
<name>uploadtime</name>
<type>timestamp</type>
<autocreate>localtime</autocreate>
</variable>

<variable>
<name>description</name>
<type>text</type>
<length>255</length>
<multiline>1</multiline>
</variable>

<variable>
<name>owner</name>
<class>WebUser</class>
</variable>

<collection>
<name>categories</name>
<class>FileCategory</class>
<reference>files</reference>
</collection>

<function>
<name>setFileData</name>
<type>setlargedata</type>
<parameters>
<variable>fdata</variable>
<file>
<argument>filePath</argument>
</file>
</parameters>
</function>

<function>
<name>save</name>
<type>persist</type>
</function>

</class>



[Non-text portions of this message have been removed]




Sat Nov 15, 2008 7:22 pm

m4r6u5
Offline Offline
Send Email Send Email

Forward
Message #552 of 553 |
Expand Messages Author Sort by Date

Hi! I'm using the latest snapshot of Metastorage. The generated code doesn't contain function named MetabaseCreateLOB(). So the bug is probably in generation...
m4r6u5
Offline Send Email
Nov 16, 2008
10:24 pm

Hello, ... You need to include metabase_lob.php to access objects with large data fields. -- Regards, Manuel Lemos Find and post PHP jobs ...
Manuel Lemos
mallemos
Offline Send Email
Nov 16, 2008
11:48 pm
< Prev Topic  |  Next Topic >
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help