Hello,
Not very sure if it's related to Fabrik (i searched the forum and found some topics about this error, but there is no final conclusion) but every time i tried to add a conditional statement to a query using a php plugin or a calc element, i see this error:
The message appear only if i add the clause "where", otherwise will run fine. For example, i tried to use this query:
same problem if the value for user_id is set to be dynamic:
I also tried to run this query in a test.php file:
and is running fine, i can add any statements and conditions..
What could be the problem?
Not very sure if it's related to Fabrik (i searched the forum and found some topics about this error, but there is no final conclusion) but every time i tried to add a conditional statement to a query using a php plugin or a calc element, i see this error:
Not Acceptable
An appropriate representation of the requested resource /administrator/index.php could not be found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
The message appear only if i add the clause "where", otherwise will run fine. For example, i tried to use this query:
Code:
$query->select($db->quoteName('group_id'));
$query->from($db->quoteName'#__user_usergroup_map');
$query->where('user_id = 122');
same problem if the value for user_id is set to be dynamic:
Code:
$query->where($db->quoteName('user_id')." = ".$db->quote($iduser));
I also tried to run this query in a test.php file:
Code:
$result = mysql_query("SELECT group_id FROM jos_users_usergroup_map where id=122");
$row = mysql_fetch_array( $result );
echo "Grup: ".$row['group_id'];
and is running fine, i can add any statements and conditions..
What could be the problem?