• Hello Fabrik Community

    Fabrik is now in the hands of the development team that brought you Fabrik for Joomla 4. We have recently transitioned the Fabrik site over to a new server and are busy trying to clean it up. We have upgraded the site to Joomla 4 and are running the latest version of Fabrik 4. We have also upgraded the Xenforo forum software to the latest version. Many of the widgets you might have been used to on the forum are no longer operational, many abandoned by the developers. We hope to bring back some of the important ones as we have time.

    Exciting times to be sure.

    The Fabrik 4.0 Official release is now available. In addition, the Fabrik codebase is now available in a public repository. See the notices about these in the announcements section

    We wish to shout out a very big Thank You to all of you who have made donations. They have really helped. But we can always use more...wink..wink..

    Also a big Thank You to those of you who have been assisting others in the forum. This takes a very big burden off of us as we work on bugs, the website and the future of Fabrik.

Problem with deletions in Ajaxified lists

Status
Not open for further replies.

dimoss

Well-Known Member
Hi

I have an ajaxified list and when I select to delete a record, it loads but it seems it cannot be rendered and still shows the record. You need to search again to see that the record is actually deleted.

Thanks.
 
It's working on my site.
What do you mean with "seems it cannot be rendered"?
Is this a list displayed via menu item or in content...?
What are your Joomla cache settings? (you can disable list caching in list advanced settings)
 
Hi Troester

The deletion works but in order to confirm it, you need to refresh or re-filter the list. Normally in a non-ajaxified link when I click to delete and after the confirmation message, I get a message that the record deleted. In an ajaxified list after the the confirmation message I get nothing and I continue to see the record I deleted.
The list dispalayed via menu item.
Joomla cache is disabled by default.
Also list caching is disabled.

Thanks
 
hmm, I get the confirmation popup, I get the "loading" mask, after "loading" is gone the list is there without the deleted record.
Can you see a JS error?
 
Error 500 details:

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="el-gr" lang="el-gr" dir="ltr">
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>1054 - Unknown column &#039;fab_adeies_exodou.id&#039; in &#039;where clause&#039; SQL=SELECT DISTINCT( `fab_years`.`etos` ) AS text, `fab_years`.`id` AS value
FROM `fab_years` AS `fab_years`
  WHERE  (`fab_adeies_exodou`.`id` IN (&#039;8614&#039;)) ORDER BY `fab_years`.`etos`ASC</title>
    <link rel="stylesheet" href="/templates/system/css/error.css" type="text/css" />
        </head>
<body>
    <div class="error">
        <div id="outline">
        <div id="errorboxoutline">
            <div id="errorboxheader">1054 - Unknown column &#039;fab_adeies_exodou.id&#039; in &#039;where clause&#039; SQL=SELECT DISTINCT( `fab_years`.`etos` ) AS text, `fab_years`.`id` AS value
FROM `fab_years` AS `fab_years`
  WHERE  (`fab_adeies_exodou`.`id` IN (&#039;8614&#039;)) ORDER BY `fab_years`.`etos`ASC</div>
            <div id="errorboxbody">
            <p><strong>??????? ????? ??? ???? ??????? ??? ???????? ?? ???????????? ?? ??????:</strong></p>
            <ol>
                <li><strong>?????????? ?????????</strong></li>
                <li>??? ?????? ?????????? ????????? ?? ??? <strong>?????????? ?????? ????? ??? ?????????</strong></li>
                <li><strong>????? ?????????</strong></li>
                <li><strong>?? ??? ?????????? ? ????????</strong> ?? ????? ?? ??????</li>
                <li>? ????? ??? ???????? ?? ???????.</li>
                <li>???????? ?????? ???? ??? ??????????? ??? ?????????? ???.</li>
            </ol>
            <p><strong>????????, ????????? ??? ??? ??? ???????? ???????:</strong></p>
            <ul>
                <li><a href="/index.php" title="???????? ???? ?????? ??????">?????? ??????</a></li>
            </ul>
            <p>??? ?? ?????????? ??????????, ????????, ????????????? ?? ?? ??????????? ????? ??? ????????? ??? ????????? ?? ?????? ????????..</p>
            <div id="techinfo">
            <p>Unknown column &#039;fab_adeies_exodou.id&#039; in &#039;where clause&#039; SQL=SELECT DISTINCT( `fab_years`.`etos` ) AS text, `fab_years`.`id` AS value
FROM `fab_years` AS `fab_years`
  WHERE  (`fab_adeies_exodou`.`id` IN (&#039;8614&#039;)) ORDER BY `fab_years`.`etos`ASC</p>
            <p>
                            </p>
            </div>
            </div>
        </div>
        </div>
    </div>
</body>
</html>
 
I have tried it in 2 different sites in two different servers with clean installations with J3.3.6 and latest github.
I have the same problem in both.
 
Where is the "WHERE" clause coming from?
Generated by Fabrik automatically (joined list etc) or is it a "Data-where" edited by you?

Is fab_adeies_exodou.id existing or is the PK of table fab_adeies_exodou some other column?
 
Hi Troester

The fab_adeies_exodou.id is existing. It's the PK key.
There is only dbjoin elements.
The WHERE is automatically generated to find the record based on the id which is the PK.
 
I tested also in xampp and have the same problem.
It deletes the record but after the Loading mask i still see the deleted record. I need to re-apply the filter to get the list wto the deleted record!
 
I don't seem to be able to replicate this. I have a simple test list, with a few random elements and a join element. I set the join element up as a normal list filter, with the ist set to be ajaxified, and I can happily delete rows with no problems.

I'll need to know more about the exact setup that triggers this issue.

-- hugh
 
Hi Hugh

I confirm that after your fix on Github the problem solved!
Thanks once again for your valuable support!
 
Status
Not open for further replies.
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top