Open Source Content Management Framework

Re: [midgard-dev] Mgd 8.09 issue?

  1. Re: [midgard-dev] Mgd 8.09 issue?

    Sat September 13 2008 09:23:04 UTC
    I changed this

    > midcom_core_privilege::collect_content_privileges($dummy_object,
    > $collect_user)

    Into this:

    midcom_core_privilege::collect_content_privileges($object_guid,
    $collect_user)

    and priviliges reading worked but now I get

    Fatal error: Call to undefined function mgd_set_errno() in
    /usr/share/php/midcom/lib/midcom/baseclasses/core/dbobject.php on line 1086

    I see that mgd_set_errno is widely used across midcom, but 8.09 does not
    imlements this?

    Solt

    _______________________________________________
    dev mailing list
    dev@lists.midgard-project.org
    http://lists.midgard-project.org/mailman/listinfo/dev
    •  Reply
  2. Re: [midgard-dev] Mgd 8.09 issue?

    Sat September 13 2008 10:52:55 UTC
    Marcin Soltysiak writes:

    Hi!

    > Fatal error: Call to undefined function mgd_set_errno() in
    > /usr/share/php/midcom/lib/midcom/baseclasses/core/dbobject.php on line 1086
    >
    > I see that mgd_set_errno is widely used across midcom, but 8.09 does not
    > imlements this?

    Enabled.

    Debian packages should be ready in couple of hours at OBS dev builds:
    http://download.opensuse.org/repositories/home:/midgardproject:/midgard19-dev/

    Piotras
    _______________________________________________
    dev mailing list
    dev@lists.midgard-project.org
    http://lists.midgard-project.org/mailman/listinfo/dev
    •  Reply
  3. Re: [midgard-dev] Mgd 8.09 issue?

    Sun September 21 2008 10:01:08 UTC
    Hi,

    I'll keep posting 8.09 issues in this thread.

    During uploading photos to photostream:

    Warning: Wrong type for 'midgard_topic' constructor in
    /var/cache/midgard/midcom/phpscripts/midcom.dba-midcom-legacy_classes.inc.php
    on line 3944

    followed by

    Fatal error: Call to undefined function mgd_open_attachment() in
    /usr/share/php/midcom/lib/org/routamc/photostream/photo.php on line 317

    Is mgd_open_attachment deprecated?

    Solt

    _______________________________________________
    dev mailing list
    dev@lists.midgard-project.org
    http://lists.midgard-project.org/mailman/listinfo/dev
    •  Reply
  4. Re: [midgard-dev] Mgd 8.09 issue?

    Sun September 21 2008 10:17:30 UTC
    Marcin So?tysiak writes:
    > Hi,

    Hi!

    > Warning: Wrong type for 'midgard_topic' constructor in
    > /var/cache/midgard/midcom/phpscripts/midcom.dba-midcom-legacy_classes.inc.php
    > on line 3944

    Can you xdebug this?
    MgdSchema objects' constructor accepts integers or strings type (or
    explicit null).
    I suspect there's an array or some float type passed.

    > followed by
    >
    > Fatal error: Call to undefined function mgd_open_attachment() in
    > /usr/share/php/midcom/lib/org/routamc/photostream/photo.php on line 317
    >
    > Is mgd_open_attachment deprecated?

    Funtion itself, yes.
    There is still enabled MidgardAttachment class so its open method should
    be used instead.

    Piotras
    _______________________________________________
    dev mailing list
    dev@lists.midgard-project.org
    http://lists.midgard-project.org/mailman/listinfo/dev
    •  Reply
  5. Re: [midgard-dev] Mgd 8.09 issue?

    Sun September 21 2008 10:17:32 UTC
    ----- Original Message -----
    From: "Piotr Pokora" <piotrek.pokora@gmail.com>
    To: "Midgard and MidCOM development" <dev@lists.midgard-project.org>
    Sent: Sunday, September 21, 2008 12:17 PM
    Subject: Re: [midgard-dev] Mgd 8.09 issue?


    > Marcin So?tysiak writes:
    >> Hi,
    >
    > Hi!
    >
    >> Warning: Wrong type for 'midgard_topic' constructor in
    >> /var/cache/midgard/midcom/phpscripts/midcom.dba-midcom-legacy_classes.inc.php
    >> on line 3944
    >
    > Can you xdebug this?

    Warning: Wrong type for 'midgard_topic' constructor in
    /var/cache/midgard/midcom/phpscripts/midcom.dba-midcom-legacy_classes.inc.php
    on line 3944
    Call Stack
    # Time Memory Function Location
    1 0.0025 120192 {main}( ) ../12-85-27-0.php:0
    2 0.3962 10275136 midcom_application->codeinit( ) ../12-85-27-0.php:63
    3 0.4098 10554896 midcom_application->_process( ) ../application.php:478
    4 0.7447 13857548 midcom_application->_handle( ) ../application.php:972
    5 0.7451 13857584 midcom_baseclasses_components_interface->handle( )
    ../application.php:1065
    6 0.7452 13857584 midcom_baseclasses_components_request->handle( )
    ../interface.php:580
    7 0.9002 14871476 org_routamc_photostream_handler_upload->_handler_upload( )
    ../request.php:674
    8 0.9005 14871652 org_routamc_photostream_handler_upload->_batch_handler( )
    ../upload.php:560
    9 1.0846 14873108
    org_routamc_photostream_handler_upload->_load_controller( )
    ../upload.php:392
    10 1.0846 14873108 org_routamc_photostream_handler_upload->_load_schemadb( )
    ../upload.php:157
    11 1.0993 15011696
    org_routamc_photostream_handler_upload->_to_gallery_defaults( )
    ../upload.php:92
    12 1.0994 15011992 midcom_db_topic->__construct( ) ../upload.php:113
    13 1.0994 15011992 midcom_baseclasses_database_topic->__construct( )
    ../topic.php:34
    14 1.0994 15011992 __midcom_baseclasses_database_topic->__construct( )
    ../topic.php:28
    15 1.0995 15012040 midgard_topic->midgard_topic( )
    ../midcom.dba-midcom-legacy_classes.inc.php:3944

    > MgdSchema objects' constructor accepts integers or strings type (or
    > explicit null).
    > I suspect there's an array or some float type passed.
    >
    >> followed by
    >>
    >> Fatal error: Call to undefined function mgd_open_attachment() in
    >> /usr/share/php/midcom/lib/org/routamc/photostream/photo.php on line 317
    >>
    >> Is mgd_open_attachment deprecated?
    >
    > Funtion itself, yes.
    > There is still enabled MidgardAttachment class so its open method should
    > be used instead.
    >

    OK, So it need to be rewritten.

    Solt

    _______________________________________________
    dev mailing list
    dev@lists.midgard-project.org
    http://lists.midgard-project.org/mailman/listinfo/dev
    •  Reply
  6. Re: [midgard-dev] Mgd 8.09 issue?

    Sun September 21 2008 10:27:17 UTC
    Marcin So?tysiak writes:

    Hi!

    >>> Warning: Wrong type for 'midgard_topic' constructor in
    >>> /var/cache/midgard/midcom/phpscripts/midcom.dba-midcom-legacy_classes.inc.php
    >>> on line 3944
    >> Can you xdebug this?
    >
    > Warning: Wrong type for 'midgard_topic' constructor in
    > /var/cache/midgard/midcom/phpscripts/midcom.dba-midcom-legacy_classes.inc.php
    > on line 3944
    > Call Stack
    ...
    > 13 1.0994 15011992 midcom_baseclasses_database_topic->__construct( )
    > ../topic.php:34
    > 14 1.0994 15011992 __midcom_baseclasses_database_topic->__construct( )
    > ../topic.php:28
    > 15 1.0995 15012040 midgard_topic->midgard_topic( )
    > ../midcom.dba-midcom-legacy_classes.inc.php:3944

    Ah, sorry. i also meant some var_dump of $_id :)

    >>> Is mgd_open_attachment deprecated?
    >> Funtion itself, yes.
    >> There is still enabled MidgardAttachment class so its open method should
    >> be used instead.
    >>
    > OK, So it need to be rewritten.

    This can be done with legacy MidgardAttachment or directly with new API:
    http://www.midgard-project.org/documentation/php_midgard_blob/

    There's an issue with write_content so you can use file handler explicitly:

    $attachment = new midgard_attachment($guid);
    $blob = new midgard_blob($attachment);
    $fh = $blob->get_handler();

    $fh is typical PHP file handler.

    Piotras
    _______________________________________________
    dev mailing list
    dev@lists.midgard-project.org
    http://lists.midgard-project.org/mailman/listinfo/dev
    •  Reply
  7. Re: [midgard-dev] Mgd 8.09 issue?

    Sun September 28 2008 20:06:54 UTC
    Marcin So?tysiak writes:

    Hi!

    >>> Warning: Wrong type for 'midgard_topic' constructor in
    >>> /var/cache/midgard/midcom/phpscripts/midcom.dba-midcom-legacy_classes.inc.php
    >>> on line 3944
    >> Can you xdebug this?
    >
    > Warning: Wrong type for 'midgard_topic' constructor in
    > /var/cache/midgard/midcom/phpscripts/midcom.dba-midcom-legacy_classes.inc.php
    > on line 3944
    > Call Stack
    > 11 1.0993 15011696
    > org_routamc_photostream_handler_upload->_to_gallery_defaults( )
    > ../upload.php:92

    This is weird ( at least for me). Argument passed to topic's
    constructor is $_REQUEST['to_gallery'] array.
    Is it intentional or there's bug somewhere else?

    Piotras
    _______________________________________________
    dev mailing list
    dev@lists.midgard-project.org
    http://lists.midgard-project.org/mailman/listinfo/dev
    •  Reply
  8. Re: [midgard-dev] Mgd 8.09 issue?

    Tue September 30 2008 07:05:51 UTC

    hmm I wonder if the way chooser works in single selection mode has been changed so that it always post an array ?

    •  Reply
Designed by Nemein, hosted by Anykey