Getting error on creating item by calling FLEXIcontent item model in custom code

3 weeks 3 days ago #72527 by Ali_wdm
In case 1, I am getting 'Incorrect token' error.

For case 2, i made a change, $id = array(); $id[] = '1234'
file: administrator\components\com_flexicontent\models\items.php
it working fine upto line 2560.
when control execute this line $item = $itemmodel->getItem($item_id); (on line 2561), there is some error. It not giving any error but not working.

Please Log in or Create an account to join the conversation.

3 weeks 3 days ago #72528 by ggppdk
Hello

about token you need to add it to the URL
(will give you code)

and about case 2 the other i ll test and provide some correction


-- FLEXIcontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

3 weeks 3 days ago #72534 by Ali_wdm
Hello,

When will you give code...??

Please Log in or Create an account to join the conversation.

3 weeks 2 days ago #72538 by ggppdk
Hello

i have tested
and corrected the code in my previous answer for CASE 2

some minor corrections
and also i have added to it the PHP files inclution files that are needed

- you will only get a notice of language association being empty when deleting an item without associations


-- FLEXIcontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!
The following user(s) said Thank You: Ali_wdm

Please Log in or Create an account to join the conversation.

3 weeks 2 days ago #72539 by Ali_wdm
Thanks a lot.

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
© 2018 Flexicontent. All Rights Reserved.