jDiction Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

jDiction 2.2.0 released. http://jdiction.org/downloads

Pages: 1 [2]

Author Topic: New errors  (Read 48708 times)

Xaman

  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: New errors
« Reply #15 on: January 22, 2015, 06:45:10 pm »

Done and sent.
Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1688
    • View Profile
Re: New errors
« Reply #16 on: January 22, 2015, 06:55:42 pm »

good the needed query is not in it ;-)

please add after line 386 ("translate = fale;") the following line:

Code: [Select]
if ($_REQUEST['debug'] == '2') JLog::add('Query: ' . str_replace("\n", '\n', $this->sql), JLog::DEBUG, 'jdiction');
Logged
Joomla! 5.0 Release Manager
Vote at JED

Xaman

  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: New errors
« Reply #17 on: January 22, 2015, 07:07:51 pm »

Ok, done and sent the new logs file.
Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1688
    • View Profile
Re: New errors
« Reply #18 on: January 22, 2015, 07:20:34 pm »

please send me a superuser account.

and do you have the latest jdiction version installed?

because it seams that it translates "UPDATE" and "SHOW" queries but that shouldn't be done.
Logged
Joomla! 5.0 Release Manager
Vote at JED

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1688
    • View Profile
Re: New errors
« Reply #19 on: January 22, 2015, 07:30:10 pm »

And I did't a misstake.

could you change the code to:
line 429 or so to:
Code: [Select]
} else {
if ($_REQUEST['debug'] == '2') JLog::add('Query not translated: ' . str_replace("\n", '\n', $this->sql), JLog::DEBUG, 'jdiction');
//JLog::add('Backtrace: ' . @json_encode(debug_backtrace()), JLog::DEBUG, 'jdiction');
}

because atm all queries are translated in the log and thats not true ;-)

Logged
Joomla! 5.0 Release Manager
Vote at JED

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1688
    • View Profile
Re: New errors
« Reply #20 on: January 22, 2015, 07:34:09 pm »

Oh I think I found it

could you search for the string
Code: [Select]
# Removed directory from order by because it makes the query SLOW
Code: [Select]
# Instead we run a much faster query below to re-order the output array
and remove both lines, it seams that they are both in the same query and the parse could not handle comments.
Logged
Joomla! 5.0 Release Manager
Vote at JED

Xaman

  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: New errors
« Reply #21 on: January 22, 2015, 07:44:19 pm »

Oh I think I found it

could you search for the string
Code: [Select]
# Removed directory from order by because it makes the query SLOW
Code: [Select]
# Instead we run a much faster query below to re-order the output array
and remove both lines, it seams that they are both in the same query and the parse could not handle comments.
Remove from where exactly?
Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1688
    • View Profile
Re: New errors
« Reply #22 on: January 22, 2015, 08:44:49 pm »

Search for the Text in the joomla Installation. It must bin in component.
Logged
Joomla! 5.0 Release Manager
Vote at JED

Xaman

  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: New errors
« Reply #23 on: January 22, 2015, 08:48:46 pm »

I don't know how to do that, I can only search for files names.
Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1688
    • View Profile
Re: New errors
« Reply #24 on: January 23, 2015, 12:13:55 pm »

Do you have a local copy of your site?

if so you can do it locally.

Anyway the should be in /components/com_jReviews/ and then maybe in models directory.

alternative install the attached version.
delete the logfile.
open the url with ?jDictionDebug=2
and send me the logfile.

then I should be able to find the file faster.

btw. the new version fixes a utf8 url translation problem.
« Last Edit: January 23, 2015, 01:18:39 pm by Harald Leithner »
Logged
Joomla! 5.0 Release Manager
Vote at JED

Xaman

  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: New errors
« Reply #25 on: January 23, 2015, 03:32:54 pm »

Ok, sent you the new logs file.
Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1688
    • View Profile
Re: New errors
« Reply #26 on: January 23, 2015, 03:58:36 pm »

You have a good chance to find this in
/components/com_jreviews/jreviews/cms_compat/joomla/models/category.php near line 613 or 679
Logged
Joomla! 5.0 Release Manager
Vote at JED

Xaman

  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: New errors
« Reply #27 on: January 23, 2015, 04:10:43 pm »

Finally, it worked! Thanks, seems they changed the location of these files, but now I know where is it. :D

Thanks again for all your help.
Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1688
    • View Profile
Re: New errors
« Reply #28 on: January 23, 2015, 04:22:25 pm »

I will try to fix this problem in jdiction too but maybe not today ;-)
Logged
Joomla! 5.0 Release Manager
Vote at JED

Pages: 1 [2]