Skip to main content
Improved English and formatting
Source Link
mickmackusa
  • 4.8k
  • 4
  • 18
  • 48

I'm getting an error aswhen trying to save edits in my custom component.

I have another edit.php that works just well.

I identified that the problem lies in the table file, especificallyspecifically in the function check();.

When iI have the function in my table file, whenever iI save the edit, it gives me an SQL error:

`table_users` was not locked with LOCK TABLES`

`table_users` was not locked with LOCK TABLES

when iWhen I take the function out, it gives me a different error (Thethe weirdest part is that even with the function not being there, it still says the function name):

> Error Save failed with the following error: Invalid `parent_id` [0] in
> PrefixNameTableTableName::check()

Error Save failed with the following error:
Invalid parent_id [0] in PrefixNameTableTableName::check()

theThe problem is that iI don't need parent_idparent_id. How can iI solve it?

I'm getting an error as trying to save edits in my custom component.

I have another edit.php that works just well.

I identified that the problem lies in the table file, especifically in the function check();

When i have the function in my table file, whenever i save the edit, it gives me an SQL error:

`table_users` was not locked with LOCK TABLES`

when i take the function out, it gives me different error (The weirdest part is that even with the function not being there, it still says the function name):

> Error Save failed with the following error: Invalid `parent_id` [0] in
> PrefixNameTableTableName::check()

the problem is that i don't need parent_id. How can i solve it?

I'm getting an error when trying to save edits in my custom component.

I have another edit.php that works well.

I identified that the problem lies in the table file, specifically in the function check().

When I have the function in my table file, whenever I save the edit, it gives me an SQL error:

`table_users` was not locked with LOCK TABLES

When I take the function out, it gives me a different error (the weirdest part is that even with the function not being there, it still says the function name):

Error Save failed with the following error:
Invalid parent_id [0] in PrefixNameTableTableName::check()

The problem is that I don't need parent_id. How can I solve it?

deleted 236 characters in body
Source Link

I'm getting an error as trying to save edits in my custom component.

I have another edit.php that works just well.

I identified that the problem lies in the table file, especifically in the function check();

When i have the function in my table file, whenever i save the edit, it gives me an SQL error:

`table_users` was not locked with LOCK TABLES`

when i take the function out, it gives me different error (The weirdest part is that even with the function not being there, it still says the function name):

> Error Save failed with the following error: Invalid `parent_id` [0] in
> PrefixNameTableTableName::check()

the problem is that i don't need parent_id. How can i solve it?

SOLVED:

1 . Verify your table file.

2 . Make sure your class extends JTable and not JTableNested if you don't need parent_id.

3 . Verify your class and table names.

4 . Make sure your database user has permissions.

I'm getting an error as trying to save edits in my custom component.

I have another edit.php that works just well.

I identified that the problem lies in the table file, especifically in the function check();

When i have the function in my table file, whenever i save the edit, it gives me an SQL error:

`table_users` was not locked with LOCK TABLES`

when i take the function out, it gives me different error (The weirdest part is that even with the function not being there, it still says the function name):

> Error Save failed with the following error: Invalid `parent_id` [0] in
> PrefixNameTableTableName::check()

the problem is that i don't need parent_id. How can i solve it?

SOLVED:

1 . Verify your table file.

2 . Make sure your class extends JTable and not JTableNested if you don't need parent_id.

3 . Verify your class and table names.

4 . Make sure your database user has permissions.

I'm getting an error as trying to save edits in my custom component.

I have another edit.php that works just well.

I identified that the problem lies in the table file, especifically in the function check();

When i have the function in my table file, whenever i save the edit, it gives me an SQL error:

`table_users` was not locked with LOCK TABLES`

when i take the function out, it gives me different error (The weirdest part is that even with the function not being there, it still says the function name):

> Error Save failed with the following error: Invalid `parent_id` [0] in
> PrefixNameTableTableName::check()

the problem is that i don't need parent_id. How can i solve it?

deleted 2 characters in body
Source Link

I'm getting an error as trying to save edits in my custom component.

I have another edit.php that works just well.

I identified that the problem lies in the table file, especifically in the function check();

When i have the function in my table file, whenever i save the edit, it gives me an SQL error:

`table_users` was not locked with LOCK TABLES`

when i take the function out, it gives me different error (The weirdest part is that even with the function not being there, it still says the function name):

> Error Save failed with the following error: Invalid `parent_id` [0] in
> PrefixNameTableTableName::check()

the problem is that i don't need parent_id. How can i solve it?

SOLVED:

1 . Verify your table file.

2 . Make sure your class extends JTable and not JTableNested if you don't need parent_id.

3 . Verify your classesclass and table names.

4 . Make sure your database user has permissions.

I'm getting an error as trying to save edits in my custom component.

I have another edit.php that works just well.

I identified that the problem lies in the table file, especifically in the function check();

When i have the function in my table file, whenever i save the edit, it gives me an SQL error:

`table_users` was not locked with LOCK TABLES`

when i take the function out, it gives me different error (The weirdest part is that even with the function not being there, it still says the function name):

> Error Save failed with the following error: Invalid `parent_id` [0] in
> PrefixNameTableTableName::check()

the problem is that i don't need parent_id. How can i solve it?

SOLVED:

1 . Verify your table file.

2 . Make sure your class extends JTable and not JTableNested if you don't need parent_id.

3 . Verify your classes and table names.

4 . Make sure your database user has permissions.

I'm getting an error as trying to save edits in my custom component.

I have another edit.php that works just well.

I identified that the problem lies in the table file, especifically in the function check();

When i have the function in my table file, whenever i save the edit, it gives me an SQL error:

`table_users` was not locked with LOCK TABLES`

when i take the function out, it gives me different error (The weirdest part is that even with the function not being there, it still says the function name):

> Error Save failed with the following error: Invalid `parent_id` [0] in
> PrefixNameTableTableName::check()

the problem is that i don't need parent_id. How can i solve it?

SOLVED:

1 . Verify your table file.

2 . Make sure your class extends JTable and not JTableNested if you don't need parent_id.

3 . Verify your class and table names.

4 . Make sure your database user has permissions.

deleted 213 characters in body
Source Link
Loading
deleted 213 characters in body
Source Link
Loading
deleted 2 characters in body; edited title
Source Link
Loading
deleted 6 characters in body
Source Link
Loading
edited tags
Link
Loading
deleted 219 characters in body
Source Link
Loading
edited title
Link
Loading
Post Undeleted by Thiago Guimarães
Post Deleted by Thiago Guimarães
Post Undeleted by Thiago Guimarães
Post Deleted by Thiago Guimarães
added 230 characters in body
Source Link
Loading
added 9 characters in body
Source Link
Loading
Source Link
Loading