We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 14372
    • 49 Posts
    I'm getting this error in my error logs ...

    [2012-12-18 12:03:48] (ERROR @ /modx/index.php) Could not load class: Collection from mysql.collection.
    [2012-12-18 12:03:48] (ERROR @ /modx/index.php) Could not get table name for class:


    So I made a resource in which I call getTableName 4 times.

    The first time generates the error.

    The other three times I get the table name result.

    What could be causing it to fail the first time?

    Ps: I have generated all the schema files, parsed them, created classes and maps and the DB is there as well.
      • 14372
      • 49 Posts
      Somehow ... I fixed it, don't exactly know how though smiley