Contact Us Today! | vcare@wdmtech.com

WDMtech

Topic-icon AJAX call error and throws parsererror

More
3 years 6 months ago #178

HexData 1.1 has got the fix


Thanks
Daniel

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

  • Eli Aschkenasy
  • Eli Aschkenasy's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
3 years 11 months ago #36

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
  • Eli Aschkenasy's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
3 years 11 months ago #35

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.

More
3 years 11 months ago #34

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
  • Eli Aschkenasy's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
3 years 11 months ago #33

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.

More
3 years 11 months ago #32

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
  • Eli Aschkenasy's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
4 years 6 hours ago #31

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.

More
4 years 7 hours ago #30

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
  • Eli Aschkenasy's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
4 years 7 hours ago #29

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.

More
4 years 17 hours ago #28

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
Last Edit: 4 years 17 hours ago by Daniel.

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

  • Eli Aschkenasy
  • Eli Aschkenasy's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
4 years 23 hours ago #27

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
  • Eli Aschkenasy's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
4 years 1 day ago #26

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.