This site uses cookies and similar technologies.

If you don't change browser settings, you agree to it.

I understand
1121 Posts
Bucklash
3 months ago
6
Topic

Hi folks

Knee deep in Free Object stuff.

I have created a plugin that creates or deletes to my free table.

It is a 'Seblod' free table in that Seblod knows about it.

My table is "#__cck_store_free_map".

The issue is with deletion of data

// variables
$table = '#__cck_store_free_map';
$content_type = 'map';
$data = array('of','stuff');
// create instance
$content = new JCckContentFree; 
$content->setTable( $table );

// ADD => WORKS
if ( $content->create( $content_type, $data )->isSuccessful() ) 
{  
    // works -> adds to free table and adds to cck_core table
}

// DELETE => WORKS 50%
$content->delete( $pk );  // deletes from free table and DOES NOT deletes from cck_core

Any tips or suggestions... or more info from me

Regards

Jon

Get a VIP membership
70 Posts
root
7 days ago
5
Level 1

Hi Jon,

Did you find any workaround to this bug? I think my problem is the same as yours.

If yes, the issue 554 should not be closed on github, it was closed the same day as Seblod 3.17.4 was out, on March 29.

I've tried this, but the tables on my database are ok, they already had these values:

https://github.com/Octopoos/SEBLOD/blob/master/administrator/components/com_cck/install/upgrades/3.17.0.sql

https://github.com/Octopoos/SEBLOD/blob/master/administrator/components/com_cck/install/upgrades/3.16.4.sql

Greetings and thank you

-Adonay

1121 Posts
Bucklash
7 days ago
4
Level 2

Hi Adonay

I think it is similar or related.... i never got round to checking, will have go today if get chance 

ps

the “free” entry was missing from my db

1121 Posts
Bucklash
7 days ago
3
Level 3

Just tested, works perfectly

70 Posts
root
6 days ago
2
Level 4

Thank you,

Did you try deleting items of an existing content type? I also have content types with free storage created some years ago and they work fine when deleting. The problem only happens when I create a new content type. One text field with free storage, one submit button and a list type with a "delete button".

1121 Posts
Bucklash
5 days ago
0
Level 5

ii used an existing free content type

haven’t tried with new one

Get a Book for SEBLOD