AJAX call error and throws parsererror
- Daniel
-
- Offline
- Administrator
-
HexData 1.1 has got the fix
Thanks
Daniel
Please Log in or Create an account to join the conversation.
- Eli Aschkenasy
-
Topic Author
- Offline
- New Member
-
- Posts: 7
the solution is to declare $item as new stdClass
if(empty($item)) {
$item = new stdClass(); //in order not to violate E_STRICT standards
$item->title = null;
$item->params = array();
}
in models/profiles.php lines 238 until 241
Please Log in or Create an account to join the conversation.
- Eli Aschkenasy
-
Topic Author
- Offline
- New Member
-
- Posts: 7
for J3 and on refactor all your JRequest::getVar to
$jinput = JFactory::getApplication()->input;
<var> = $jinput->post->get(...)
and in order to get the whole $_POST (in profiles->store() ) you'll have to do
$jinput = JFactory::getApplication()->input;
$post = $jinput->getArray($_POST);
Please Log in or Create an account to join the conversation.
- Daniel
-
- Offline
- Administrator
-
Really thanks you for your suggestion. In the next version Database structure is all changed.
Thanks
Daniel
Please Log in or Create an account to join the conversation.
- Eli Aschkenasy
-
Topic Author
- Offline
- New Member
-
- Posts: 7
As your working on the next version please ensure that you clean up the installer sql.
Your creating:
UNIQUE KEY `profileid_2` (`profileid`,`column`),
KEY `profileid` (`profileid`),
KEY `profileid_3` (`profileid`),
KEY `column` (`column`)
whereas you only need
UNIQUE KEY `profileid` (`profileid`,`column`),
KEY `column` (`column`)
Please Log in or Create an account to join the conversation.
- Daniel
-
- Offline
- Administrator
-
Hi,
For now while using HexData you'll have to keep the debugger off. However We are working on the next version of HexData. We'll take care of it in the next release.
Thanks
Thanks
Daniel
Please Log in or Create an account to join the conversation.
- Eli Aschkenasy
-
Topic Author
- Offline
- New Member
-
- Posts: 7
right. the interesting thing is, that the debugger throws a warning for direct calls (see initial comment) to the hexdata function itself. without thinking about it too much, is there a way to @ suppress errors for the ajax call?
Please Log in or Create an account to join the conversation.
- Daniel
-
- Offline
- Administrator
-
JSON Ajax calls in HexData works only when none of the extensions is throwing any error or warning message. In your case any of the plugin is throwing any error which needs to be corrected. And Yes if you disable the error reporting it'll work fine.
Thanks
Thanks
Daniel
Please Log in or Create an account to join the conversation.
- Eli Aschkenasy
-
Topic Author
- Offline
- New Member
-
- Posts: 7
After debugging we found that the issue is due to error reporting being on. Are you developing on error_ = off?
Please Log in or Create an account to join the conversation.
- Daniel
-
- Offline
- Administrator
-
Hi,
Please send us your Backend login and FTP details at This email address is being protected from spambots. You need JavaScript enabled to view it., We'll look into it. It seems to be a conflict specific to your site. We'll try to resolve it asap.
Thanks
Danish Babu
Thanks
Daniel
Please Log in or Create an account to join the conversation.
- Eli Aschkenasy
-
Topic Author
- Offline
- New Member
-
- Posts: 7
in addition, if ajax dataType is changed to html and the controller is set to return
$obj->html
the call works again
Please Log in or Create an account to join the conversation.
- Eli Aschkenasy
-
Topic Author
- Offline
- New Member
-
- Posts: 7
any call of load_columns on both joomla 3.15 and 2.5.14 generates a parsererror javascript error. It is definitely the ajax call, as a direct call to the php function
index.php?option=com_hexdata&view=profiles&task=load_columns&table=<tablename>&id=1&<token>=1&abase=1
returns the correct ul
Please Log in or Create an account to join the conversation.