Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Table is read only
  • Hi, I have small problem with my orm queries. I can't save data to database (mysql) using ORM but on that same settings Auth adds new data to database without problems. What i am missing?
  • Can you be more specific? What code? Any error messages?
  • I'm sorry, yes:

    controller code:

    $nowe = Model_Podania::forge();
    $nowe->student = $student;
    ....
    $nowe->save()

    And errorr:

    Fuel\Core\Database_Exception [ 1036 ]:
    Table 'xyz' is read only [ INSERT INTO `xyz (...) VALUES (...) ]
  • HarroHarro
    Accepted Answer
    This error is usually caused by an issue with the file permissions. It can also happen if your table is corrupt, for example when you copy database files while MySQL is still running.

    Either way, it is not a Fuel issue, it is a problem with your database (table).
  • Thank You for Your help, it was corrupted table.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion