• 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.

Unexpected token at dropdown filter

Status
Not open for further replies.

thomasmes

Member
I've updated Fabrik to the lastet version from GIT, but I still get this error every second: "Uncaught SyntaxError: Unexpected token <"
This happens when I activate the filter (dropdown) on a databasejoin element (named 'pcata') and a cascadingdropdown element (named 'pcatb') that is watching this first databasejoin element ('pcata').

Console log:
(<br />
<b>Warning</b>: Header may not contain more than a single header, new line detected in <b>..\wwwroot\libraries\joomla\application\web.php</b> on line <b>966</b><br />
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-gb" lang="en-gb" dir="ltr">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Error: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near &#039;AND 1 = -1&#039; at line 4 SQL=SELECT DISTINCT(`pcatb`.`id`) AS value, `pcatb`.`category`AS text
FROM `pcatb` AS `pcatb`
WHERE 4 = -4 AND 1 ORDER BY category ASC
AND 1 = -1</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href='//fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css' />
<style type="text/css">
h1,h2,h3,h4,h5,h6,.site-title{
font-family: 'Open Sans', sans-serif;
}
</style>
 
WHERE 4 = -4 AND 1 ORDER BY category ASC
AND 1 = -1
Did you set anything in the WHERE clause of your CDD element? or in the dbjoin?
What is your "Order by" setting in "List settings/Filters"?
 
On the CDD I had "1 ORDER BY category ASC". Removing this solved the problem.

I now see the Order By setting un the List view settings.

Thanks
 
Status
Not open for further replies.
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top