We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7923
    • 4,213 Posts
    When I save certain objects, I get a warning to apache error log saying:

    PHP Warning: Illegal offset type in /var/www/modx/core/xpdo/om/xpdoobject.class.php on line 1454

    It seems to happen with objects that have multiple primary keys and I have index="pk" attribute in the schema for each of the primary key fields.

    The data saves OK, but those warnings keeps coming to my error log (modx error log says nothing). Why is that?

    This question has been answered by doze. See the first response.

    [ed. note: doze last edited this post 13 years, 7 months ago.]


      "He can have a lollipop any time he wants to. That's what it means to be a programmer."
    • discuss.answer
      • 7923
      • 4,213 Posts
      Got it the same time I wrote that post...

      Changed the foreign keys in the schema from index="pk" to index="fk" and now all is well.

      Still wondering though the meaning of the index attribute as the documentation says it is ignored, but clearly it isn't.


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."