Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

metal-dev · MetaL Development

The Yahoo! Groups Product Blog

Check it out!

Group Information

? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Messages

Advanced
Messages Help
Messages 324 - 353 of 555   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#324 From: "pokara93" <loto@...>
Date: Mon Oct 4, 2004 11:18 am
Subject: problem persist objects with null values
pokara93
Send Email Send Email
 
hello, with the new version I can persist an object that have another
object that it is not persisted.For example, I have I class venta
(sale) that have an object of a class cliente (client), but not all
the "sales" have a "client", before new version if this object is not
initialize and persisted put the null value and all works fine. But
now to persist "sale" object i must to persist "client" object
before. How can i do it that? i can't create an empty "client"
because the "client" have another object inside and this have
another... a chain of objects that must to be persist before ... any
ideas?
thank you

pokara

#325 From: Manuel Lemos <mlemos@...>
Date: Mon Oct 4, 2004 5:59 pm
Subject: Re: problem persist objects with null values
mallemos
Send Email Send Email
 
Hello,

On 10/04/2004 08:18 AM, pokara93 wrote:
> hello, with the new version I can persist an object that have another
> object that it is not persisted.For example, I have I class venta
> (sale) that have an object of a class cliente (client), but not all
> the "sales" have a "client", before new version if this object is not
> initialize and persisted put the null value and all works fine. But
> now to persist "sale" object i must to persist "client" object
> before. How can i do it that? i can't create an empty "client"
> because the "client" have another object inside and this have
> another... a chain of objects that must to be persist before ... any
> ideas?

Right, you can't tell an object to store a reference to an object that
was not persisted because it does not make sense. It is explained in the
troubleshooting guide:

http://www.meta-language.net/metastorage-troubleshooting.html#non-persisted-refe\
rences

The change in the setreference functions code was made to prevent bugs
in your application.

If you want the sale object to not point to any client object in some
cases, just pass a null to the setreference function. You do not need to
create an client object to pass it to the setreference function.

--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html

#326 From: "pokara93" <loto@...>
Date: Tue Oct 5, 2004 9:14 am
Subject: Re: problem persist objects with null values
pokara93
Send Email Send Email
 
> If you want the sale object to not point to any client object in
some
> cases, just pass a null to the setreference function. You do not
need to
> create an client object to pass it to the setreference function.

ok, but if i call setreference with null, when i persist the object
sale and checked if isset client, the report an error:

$sale->client=null;

'it was atempted to persist an object of the class Venta with a
required variable that is not initialized'


if i put it as:

$sale->setClient(null);

don't return to me nothing ¿¿¿¿?????


and if i put:
$myclient=null;
$sale->setClient($myclient);
report:
"it was attempted to set the cliente reference variable of class
Venta to a null object"

at this moment to works allright, i was create a client with null
values and id = 0.




any more ideas???
thank you

#327 From: Manuel Lemos <mlemos@...>
Date: Tue Oct 5, 2004 12:16 pm
Subject: Re: Re: problem persist objects with null values
mallemos
Send Email Send Email
 
Hello,

On 10/05/2004 06:14 AM, pokara93 wrote:
>>If you want the sale object to not point to any client object in
> some
>>cases, just pass a null to the setreference function. You do not
> need to
>>create an client object to pass it to the setreference function.
>
> ok, but if i call setreference with null, when i persist the object
> sale and checked if isset client, the report an error:
>
> $sale->client=null;
>
> 'it was atempted to persist an object of the class Venta with a
> required variable that is not initialized'
>
>
> if i put it as:
>
> $sale->setClient(null);
>
> don't return to me nothing ¿¿¿¿?????
>
>
> and if i put:
> $myclient=null;
> $sale->setClient($myclient);
> report:
> "it was attempted to set the cliente reference variable of class
> Venta to a null object"
>
> at this moment to works allright, i was create a client with null
> values and id = 0.

Starting this release all variables are required by default. To be
allowed to leave a variable undefined you needed to declare it as optional:

<variable>
    <name>cliente</name>
    <class>cliente</name>
    <optional>1</optional>
</variable>


--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html

#328 From: "pokara93" <loto@...>
Date: Tue Oct 5, 2004 4:24 pm
Subject: Re: problem persist objects with null values ok!
pokara93
Send Email Send Email
 
ok!thank you very much

pokara

#329 From: "pokara93" <loto@...>
Date: Wed Oct 6, 2004 3:09 pm
Subject: new field in database
pokara93
Send Email Send Email
 
hello, when I change my component and insert a new file in the
database,all seems all right but, when i work with new database
report me this error:

Unknown column 'CodigoBalance.nombre' in 'field list'

the "nombre" value is the new column. If i see the database structure
this columns appears, and don't understand why report me this error
when i change my database some times and nothing was wrong. Is
possible bug of new version, do i make anything wrong?

thank you!

pokara

#330 From: Manuel Lemos <mlemos@...>
Date: Wed Oct 6, 2004 7:38 pm
Subject: Re: new field in database
mallemos
Send Email Send Email
 
Hello,

On 10/06/2004 12:09 PM, pokara93 wrote:
> hello, when I change my component and insert a new file in the
> database,all seems all right but, when i work with new database
> report me this error:
>
> Unknown column 'CodigoBalance.nombre' in 'field list'
>
> the "nombre" value is the new column. If i see the database structure
> this columns appears, and don't understand why report me this error
> when i change my database some times and nothing was wrong. Is
> possible bug of new version, do i make anything wrong?

This is strange. When you change your model definition and Metastorage
generates a new database schema, you need to install it with the same
schema installation class.

When you do this, that class changes the database schema without
affecting any data that was stored there before.

If you did this, the error above should not happen. Are you sure you are
using the same database in your application with the changed schema?

--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html

#331 From: "pokara93" <loto@...>
Date: Thu Oct 7, 2004 3:14 pm
Subject: Re: new field in database
pokara93
Send Email Send Email
 
sorry, this that happend,after actualice the database schema,in main
aplication I have just work with older version of database.sorry.
thanks for your patience.
pokara

#332 From: "pokara93" <loto@...>
Date: Thu Oct 21, 2004 3:45 pm
Subject: beginswith
pokara93
Send Email Send Email
 
hello, i was worked with the last version of metastorage (in this
case i checked it before write here), and when i try to use the
beginswith, contains or endswith tags, report this message:


Compilation resultsStatus: Failed
Error: beginswith is not a valid filter argument
File: factoria.component
Line: 628
Column: 9
Byte: 12804

my code is:

     <function>
       <name>getCuentaPorNombre</name>
       <type>getcollection</type>
       <argument>
         <name>nombre</name>
         <type>text</type>
       </argument>
       <parameters>
        <collection>cuentas</collection>
        <filter>
           <variable>
             <name>descripcion</name>
             <object>Cuenta</object>
           </variable>
          <beginswith />
           <argument>nombre</argument>
          <or />
           <variable>
             <name>descripcion</name>
             <object>Cuenta</object>
           </variable>
          <contains />
           <argument>nombre</argument>
          <or />
           <variable>
             <name>descripcion</name>
             <object>Cuenta</object>
           </variable>
          <endswith />
           <argument>nombre</argument>
        </filter>
       </parameters>
     </function>

what is the problem??
thanks again
pokara

#333 From: Manuel Lemos <mlemos@...>
Date: Thu Oct 21, 2004 5:19 pm
Subject: Re: beginswith
mallemos
Send Email Send Email
 
Hello,

On 10/21/2004 12:45 PM, pokara93 wrote:
>
> hello, i was worked with the last version of metastorage (in this
> case i checked it before write here), and when i try to use the
> beginswith, contains or endswith tags, report this message:
>
>
> Compilation resultsStatus: Failed
> Error: beginswith is not a valid filter argument

beginswith is not yet implemented. It is in the to do list.

I was willing to implement it but then I realized that it is not that
simple to make it database independent. The problem is that SQL LIKE
expressions may contain wildcard characters _ % . If you beginswith
expression contains the wildcard characters, those need to be escaped.
Escaping wildcard characters varies a little with different databases.

Therefore, I need to implement generate the SQL for beginswith
expressions within Metabase. That is not difficult but to make sure it
works right before I make a release, I need to test it in all databases
supported by Metabase.

So, if you need that with a certain urgence, what I can do for now is to
implement it in the Metabase driver for the database you use and later I
will make the necessary tests when I have more time to make a new
Metabase release. Just let me know which database you use so I can give
priority to it.


--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html

#334 From: "pokara93" <loto@...>
Date: Fri Oct 22, 2004 8:24 am
Subject: Re: beginswith
pokara93
Send Email Send Email
 
ok, don't worry, i just try to use this filter because i was see it
in other message before.
is not really important because i can filter the result in the
collection returns and not in the database call.
thank you
pokara

#335 From: Manuel Lemos <mlemos@...>
Date: Fri Oct 22, 2004 5:32 pm
Subject: Re: Re: beginswith
mallemos
Send Email Send Email
 
Hello,

On 10/22/2004 05:24 AM, pokara93 wrote:
> ok, don't worry, i just try to use this filter because i was see it
> in other message before.
> is not really important because i can filter the result in the
> collection returns and not in the database call.

Good. Pattern matching is definetly in my to do list but I would not be
able to implement it right away because I am actively working on the
report generation classes that are very important for practically
everybody because they are a better means to retrieve mixed data to
compose reports than using the data object classes. Fortunately they are
almost done, so they will be released soon.

--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html

#336 From: "pokara93" <loto@...>
Date: Thu Oct 28, 2004 5:04 pm
Subject: timestamp
pokara93
Send Email Send Email
 
hello again, at this time i try to change the $isonow variable in php
classes to my data format %d-%m-%Y and it's not do nothing because in
database the date stored is 0000-00-00 00:00:00. is that possible, to
change this i must do something else??
thank again!!
pokara

#337 From: Manuel Lemos <mlemos@...>
Date: Thu Oct 28, 2004 5:14 pm
Subject: Re: timestamp
mallemos
Send Email Send Email
 
Hello,

On 10/28/2004 02:04 PM, pokara93 wrote:
>
> hello again, at this time i try to change the $isonow variable in php
> classes to my data format %d-%m-%Y and it's not do nothing because in
> database the date stored is 0000-00-00 00:00:00. is that possible, to
> change this i must do something else??

If you just want to store the date (not the time) set the variable type
to date, not timestamp.

--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html

#338 From: "pokara93" <loto@...>
Date: Fri Oct 29, 2004 10:55 am
Subject: Re: timestamp
pokara93
Send Email Send Email
 
it is not the problem, i need timestamp, but the only i change is the
format of date, i have '%d-%m-%Y %H:%M:%S' and the string that store
in database is 00-00-0000 00:00:00.
i know that is a valid format, but i don't know why metastorage don't
put it into the database.
thanks

pokara

#339 From: Manuel Lemos <mlemos@...>
Date: Fri Oct 29, 2004 12:52 pm
Subject: Re: Re: timestamp
mallemos
Send Email Send Email
 
Hello,

On 10/29/2004 07:55 AM, pokara93 wrote:
>
> it is not the problem, i need timestamp, but the only i change is the
> format of date, i have '%d-%m-%Y %H:%M:%S' and the string that store
> in database is 00-00-0000 00:00:00.
> i know that is a valid format, but i don't know why metastorage don't
> put it into the database.

The date and time values are only stored in the ISO 8601 format
(YYYY-MM-DD hh:mm:ss). That is the format that all databases support.

If you want to pass values in other format, either you need to convert
them in your application or I need to implement getter and setter
functions that perform the format conversion. Is this what you want?

--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html

#340 From: "pokara93" <loto@...>
Date: Tue Nov 2, 2004 11:51 am
Subject: ok, i just undertand the problem
pokara93
Send Email Send Email
 
ok, so the trouble is that php knows this format in "strftime"
function but database don't works with it. Ok, i didn´t understand
why it is happend. it's not problem to convert the string of database
query in valid format to my aplication.
thanks
pokara

#341 From: Miguel Angel Laguna <malaguna@...>
Date: Mon Nov 8, 2004 5:52 pm
Subject: Problem with new release
malaguna@...
Send Email Send Email
 
Hello all:

I´ve just download the last release and installed. When I try to
compile a project I always get "Building generatecomponent.files ..."
in the "compiler output" and nothing else happens, of course no files
are created.

I althougth tried with cms project and the result was the same.

Thansk in advance.


--
Miguel A. Laguna

"La vida es aquello que sucede, mientras intentas cumplir tus espectativas"

#342 From: Manuel Lemos <mlemos@...>
Date: Mon Nov 8, 2004 9:17 pm
Subject: Re: Problem with new release
mallemos
Send Email Send Email
 
Hello,

On 11/08/2004 03:52 PM, Miguel Angel Laguna wrote:
> I´ve just download the last release and installed. When I try to
> compile a project I always get "Building generatecomponent.files ..."
> in the "compiler output" and nothing else happens, of course no files
> are created.
>
> I althougth tried with cms project and the result was the same.

It seems that you probably exceeded the PHP configured memory but since
the error messages are probably being suppresed you are not noticing them.

Assumming that is the problem, the solution is explained in the
troubleshooting guide, but it consists basically in increasing the
memory_limit setting in your php.ini file.

http://www.meta-language.net/metastorage-troubleshooting.html

--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html

#343 From: Miguel Angel Laguna <malaguna@...>
Date: Mon Nov 8, 2004 10:12 pm
Subject: Re: Problem with new release
malaguna@...
Send Email Send Email
 
Thanks a lot.

You were right, I change to apache2 some weeks ago, but I forgot to
change the 'memory_limit' directive. I did such thing when I install
metastorage the first time, but this time ...  :-o

Regards.


On Mon, 08 Nov 2004 19:17:33 -0200, Manuel Lemos <mlemos@...> wrote:
>
> Hello,
>
> On 11/08/2004 03:52 PM, Miguel Angel Laguna wrote:
> > I´ve just download the last release and installed. When I try to
> > compile a project I always get "Building generatecomponent.files ..."
> > in the "compiler output" and nothing else happens, of course no files
> > are created.
> >
> > I althougth tried with cms project and the result was the same.
>
> It seems that you probably exceeded the PHP configured memory but since
> the error messages are probably being suppresed you are not noticing them.
>
> Assumming that is the problem, the solution is explained in the
> troubleshooting guide, but it consists basically in increasing the
> memory_limit setting in your php.ini file.
>
> http://www.meta-language.net/metastorage-troubleshooting.html
>
> --
>
> Regards,
> Manuel Lemos
>
> PHP Classes - Free ready to use OOP components written in PHP
> http://www.phpclasses.org/
>
> PHP Reviews - Reviews of PHP books and other products
> http://www.phpclasses.org/reviews/
>
> Metastorage - Data object relational mapping layer generator
> http://www.meta-language.net/metastorage.html
>
>
>
> Yahoo! Groups Links
>
>
>
>
>


--
Miguel A. Laguna

"La vida es aquello que sucede, mientras intentas cumplir tus espectativas"

#344 From: "migalagu" <migalagu@...>
Date: Wed Nov 17, 2004 8:14 pm
Subject: Problems with IIS
migalagu
Send Email Send Email
 
Hello all:

Recently I moved an application developed with metastorage from a LAMP
to a Windows + IIS + PHP + MySQL, and all seems to be work all right
except the compilation of the model.

I got the next error:

Error: could not create the XML cache file directory
"C:\Inetpub\wwwroot\chcrui\Interfaz\front_end\trabajo\Actual\metal\metastorage/w\
ork/cache/C/Inetpub/wwwroot/chcrui/Interfaz/front_end/trabajo/Actual/metal/metal\
/include"

File:
C:\Inetpub\wwwroot\chcrui\Interfaz\front_end\trabajo\Actual\metal\metastorage/wo\
rk/cache/C/Inetpub/wwwroot/chcrui/Interfaz/front_end/trabajo/Actual/metal/metal/\
include/php.bindings.cache

Line: 0
Column: 0
Byte: 0

I configured PHP with more than 8mb, I reviewed that directories of
metal, metastorage and projects has enough privilegs and I tried to
compile cms example project, but i got the same error once and again.

I search the whole mails of the list for something similar and read
the FAQS but I did not found something similar.

The problem is that I have never been working with IIS, so any Ideas?

Thanks in advance.

#345 From: Manuel Lemos <mlemos@...>
Date: Wed Nov 17, 2004 8:30 pm
Subject: Re: Problems with IIS
mallemos
Send Email Send Email
 
Hello,

On 11/17/2004 06:14 PM, migalagu wrote:
> The problem is that I have never been working with IIS, so any Ideas?

You are probably running PHP in safe mode. That would prevent the
creation of files on disk. In that case, you would need to disable safe
mode. Just let me know if that is not the case.

--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html

#346 From: Manuel Lemos <mlemos@...>
Date: Sun Nov 21, 2004 3:01 am
Subject: Re: ERROR ON INSTALL CMS
mallemos
Send Email Send Email
 
Hello,

On 11/20/2004 06:13 PM, Jorge Paván wrote:
> Hello!. I want to begin to test the cms component and, after I compile
> it, and want to run "metal\metastorage\install\setup\install.php" and I
> obtain the error: "Error: Could not install database: the database was
> only partially created: Valor por defecto invalido para 'sequence' ".
> I can see the error is in metabase_manager.php, line 345
> Could you help me please?

That sounds like you are using MySQL 4.1 that has a backwards
compatibility problem of not allowing the setting of default values of
auto-increment fields.

That problem was solved almost 2 months ago, but since I have not made a
public release of neither Metastorage or Metabase, the fix is only
available in the CVS version. You may download CVS snapshots from here
and hopefully the problem will be solved:

http://www.meta-language.net/download.html#snapshots


--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html

#347 From: Miguel Angel <migalagu@...>
Date: Sun Nov 21, 2004 3:12 pm
Subject: Re: Problems with IIS
migalagu
Send Email Send Email
 
Hello all:

Sorry by the late, but server machine is far from me.
I reviewed safe-mode directive and it is not active

;
; Safe Mode
;
safe_mode = Off

Regards.

  --- Manuel Lemos <mlemos@...> escribió:

---------------------------------
Hello,

On 11/17/2004 06:14 PM, migalagu wrote:
> The problem is that I have never been working with
IIS, so any Ideas?

You are probably running PHP in safe mode. That would
prevent the
creation of files on disk. In that case, you would
need to disable safe
mode. Just let me know if that is not the case.

--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written
in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer
generator
http://www.meta-language.net/metastorage.html

Yahoo! Groups Sponsor
Get unlimited calls to

U.S./Canada


---------------------------------
Yahoo! Groups Links

    To visit your group on the web, go to:
http://groups.yahoo.com/group/metal-dev/

    To unsubscribe from this group, send an email to:
metal-dev-unsubscribe@yahoogroups.com

    Your use of Yahoo! Groups is subject to the Yahoo!
Terms of Service.




______________________________________________
Renovamos el Correo Yahoo!: ¡100 MB GRATIS!
Nuevos servicios, más seguridad
http://correo.yahoo.es

#348 From: Jorge Paván <jpavan@...>
Date: Sun Nov 21, 2004 5:32 pm
Subject: Re: Re: ERROR ON INSTALL CMS
jmpavan
Send Email Send Email
 
Yes, I use MySQL 4.1.7 and the problem had been resolved.

Thanks a lot Manuel!
   ----- Original Message -----
   From: Manuel Lemos
   To: metal-dev
   Cc: metabase-dev
   Sent: Sunday, November 21, 2004 12:01 AM
   Subject: [metal-dev] Re: ERROR ON INSTALL CMS


   Hello,

   On 11/20/2004 06:13 PM, Jorge Paván wrote:
   > Hello!. I want to begin to test the cms component and, after I compile
   > it, and want to run "metal\metastorage\install\setup\install.php" and I
   > obtain the error: "Error: Could not install database: the database was
   > only partially created: Valor por defecto invalido para 'sequence' ".
   > I can see the error is in metabase_manager.php, line 345
   > Could you help me please?

   That sounds like you are using MySQL 4.1 that has a backwards
   compatibility problem of not allowing the setting of default values of
   auto-increment fields.

   That problem was solved almost 2 months ago, but since I have not made a
   public release of neither Metastorage or Metabase, the fix is only
   available in the CVS version. You may download CVS snapshots from here
   and hopefully the problem will be solved:

   http://www.meta-language.net/download.html#snapshots


   --

   Regards,
   Manuel Lemos

   PHP Classes - Free ready to use OOP components written in PHP
   http://www.phpclasses.org/

   PHP Reviews - Reviews of PHP books and other products
   http://www.phpclasses.org/reviews/

   Metastorage - Data object relational mapping layer generator
   http://www.meta-language.net/metastorage.html


         Yahoo! Groups Sponsor

         Get unlimited calls to

         U.S./Canada




------------------------------------------------------------------------------
   Yahoo! Groups Links

     a.. To visit your group on the web, go to:
     http://groups.yahoo.com/group/metal-dev/

     b.. To unsubscribe from this group, send an email to:
     metal-dev-unsubscribe@yahoogroups.com

     c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



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

#349 From: Manuel Lemos <mlemos@...>
Date: Mon Nov 22, 2004 3:48 am
Subject: Re: Problems with IIS
mallemos
Send Email Send Email
 
Hello,

On 11/21/2004 01:12 PM, Miguel Angel wrote:
> Sorry by the late, but server machine is far from me.
> I reviewed safe-mode directive and it is not active
>
> ;
> ; Safe Mode
> ;
> safe_mode = Off

Maybe you are not looking at the real location of the php.ini file.

The safest way to check whether you are really using safe mode is to run
a PHP script with the phpinfo(); function call.

Anyway, assuming that you are really not in safe mode, this needs
further investigation so determine why the directory is not being
created successfully.

Therefore, I need you to go in the file metal/metal_compiler.php in
function CreateOutputDirectory near line 140 and remove the @ characters
that preceed calls to is_dir and mkdir functions and let me know what
error messages are displayed when you run Metastorage again.

Doing so prevents that PHP silence additional error messages that are
usually outputted to explain why the command failed.

Make sure that php.ini has the option display_errors = On to let PHP
output the errors to the current page output.

--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html

#350 From: Miguel Angel <migalagu@...>
Date: Mon Nov 22, 2004 8:14 pm
Subject: Re: Problems with IIS
migalagu
Send Email Send Email
 
Hello:

I'm so sorry :-(

I did what you said Manuel, and I found a warning
about directory creation, then I reviewed directory
permision again, and ...

One of the first thing I did was enable write access,
I don't understand it, but the metal directory was
readonly.

Sorry by the inconvenience and thanks ...

  --- Manuel Lemos <mlemos@...> escribió:

---------------------------------
Hello,

On 11/21/2004 01:12 PM, Miguel Angel wrote:
> Sorry by the late, but server machine is far from
me.
> I reviewed safe-mode directive and it is not active
>
> ;
> ; Safe Mode
> ;
> safe_mode = Off

Maybe you are not looking at the real location of the
php.ini file.

The safest way to check whether you are really using
safe mode is to run
a PHP script with the phpinfo(); function call.

Anyway, assuming that you are really not in safe mode,
this needs
further investigation so determine why the directory
is not being
created successfully.

Therefore, I need you to go in the file
metal/metal_compiler.php in
function CreateOutputDirectory near line 140 and
remove the @ characters
that preceed calls to is_dir and mkdir functions and
let me know what
error messages are displayed when you run Metastorage
again.

Doing so prevents that PHP silence additional error
messages that are
usually outputted to explain why the command failed.

Make sure that php.ini has the option display_errors =
On to let PHP
output the errors to the current page output.

--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written
in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer
generator
http://www.meta-language.net/metastorage.html

Yahoo! Groups Sponsor
Get unlimited calls to

U.S./Canada


---------------------------------
Yahoo! Groups Links

    To visit your group on the web, go to:
http://groups.yahoo.com/group/metal-dev/

    To unsubscribe from this group, send an email to:
metal-dev-unsubscribe@yahoogroups.com

    Your use of Yahoo! Groups is subject to the Yahoo!
Terms of Service.




______________________________________________
Renovamos el Correo Yahoo!: ¡100 MB GRATIS!
Nuevos servicios, más seguridad
http://correo.yahoo.es

#351 From: "dlgrinberg" <dlgrinberg@...>
Date: Tue Dec 7, 2004 12:52 pm
Subject: Error - Cannot use object of type read_arguments_class as array
dlgrinberg
Send Email Send Email
 
Hi,

I just downloaded metastorage, and all of its requirements.  I am sure
that I have installed it all correctly.  However, when I try to
compile the test project 'cms', I get the following error:

Fatal error:
Cannot use object of type read_arguments_class as array in
~dir~\metal\metastorage\applications\metastorage\metastorage.php
on line 352

What am I doing wrong??

I am trying to run it on:
XP Pro SP2
IIS 5.1
PHP 5.02

Do I have to change a setting??

Thanks
David Grinberg

#352 From: Manuel Lemos <mlemos@...>
Date: Tue Dec 7, 2004 5:29 pm
Subject: Re: Error - Cannot use object of type read_arguments_class as array
mallemos
Send Email Send Email
 
Hello,

On 12/07/2004 10:52 AM, dlgrinberg wrote:
> I just downloaded metastorage, and all of its requirements.  I am sure
> that I have installed it all correctly.  However, when I try to
> compile the test project 'cms', I get the following error:
>
> Fatal error:
> Cannot use object of type read_arguments_class as array in
> ~dir~\metal\metastorage\applications\metastorage\metastorage.php
> on line 352

That is due to a bug that was fixed last month. Since I have not yet
made a public release, you need to use the latest version from CVS that
you can download from here:

http://www.meta-language.net/download.html#cvs

--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html

#353 From: Manuel Lemos <mlemos@...>
Date: Fri Dec 17, 2004 6:10 pm
Subject: Re: I need at least one example!!! :-D
mallemos
Send Email Send Email
 
on 12/17/2004 03:19 PM gprog51 said the following:
>
>>>I would really apreciate a simple example php script to do this.
>>>I have generated the cms example, but I need an example of how
> to use
>>>the createarticleform.php generated script. I want a script that
> shows
>>>the form on the browser so I could add some articles to de
> Database.
>
>>I am working on a tutorial that gives working examples for this.
>>Meanwhile, if you download the original Metastorage from the
> download
>>page (not from CVS), inside metastorage/install/web there are a
> few
>>scripts that I used to generate the example screenshots.
>>The createauthor.php script just creates an author object with
> some
>>predefined values. You need to run this first.
>>The submitarticle.php script is the script that will call the
> generated
>>form class. Currently I predefined some global variables to fill
> the
>>form values and generate the HTML file submitarticle.html. You may
> want
>>to remove the first lines that define the form values to run this
> is a
>>real Web page script.
>
> I've the same problem. I've generated the code and I'm not able to
> use it.
> In the folder projects/cms/install there is createarticleform.php
> but I cannot use it.
> I've tried to download Metastorage from http://www.meta-
> language.net/download/metal.zip but there is no script named
> submitarticle.php nor submitarticle.html
>
> Any idea?

I think there was an error when these archives were generated and those
scripts were not include. They are also not in the CVS repository as
they are just test scripts.

Since the they were meant to be helps while the tutorial was not ready,
you will probably not need them after you read the tutorial section on
using the generated code that you may find here:

http://www.meta-language.net/metastorage-tutorial.html#using-generated-code

Just let me know if you still would like to know anything that is not
explained here.


BTW, you have mailed the mailing list owner address. Please use the list
address in the future when you need to ask for support
metal-dev@yahoogroups.com .


--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html

Messages 324 - 353 of 555   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

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