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 28881 times)

Xaman

  • Newbie
  • *
  • Posts: 30
    • View Profile
New errors
« on: September 12, 2014, 07:22:44 pm »

Hi,

After updating jDiction to the latest version (1.3.1) I am now getting an error message when I check a translated page.

These are the errors:

Quote
Notice: Undefined index: c in /libraries/jdiction/jdiction.php on line 521

Notice: Undefined index: c in /libraries/jdiction/jdiction.php on line 535

Notice: Undefined index: in /libraries/jdiction/jdiction.php on line 535

The page seems to show the translated information correctly.
Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1684
    • View Profile
Re: New errors
« Reply #1 on: September 12, 2014, 07:32:32 pm »

You can reduce the error reporting level in joomla config.

I will also fix this notice.
Logged
Joomla! 5.0 Release Manager
Vote at JED

Xaman

  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: New errors
« Reply #2 on: September 12, 2014, 07:35:28 pm »

Thanks :)
Logged

Xaman

  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: New errors
« Reply #3 on: January 19, 2015, 08:18:25 pm »

Hi,

Once again I updated my jReviews and S2 Framework and the problem returns and can't seem to fix it. Can you take a look again?
Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1684
    • View Profile
Re: New errors
« Reply #4 on: January 19, 2015, 08:30:20 pm »

which error?
Logged
Joomla! 5.0 Release Manager
Vote at JED

Xaman

  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: New errors
« Reply #5 on: January 19, 2015, 09:51:55 pm »

which error?
Sent you the link by message.
Logged

Xaman

  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: New errors
« Reply #6 on: January 21, 2015, 03:54:35 am »

Were you able to see the error?
Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1684
    • View Profile
Re: New errors
« Reply #7 on: January 21, 2015, 08:18:16 am »

Yes but didn't remember what to change in symfony. Did I wrote a mail to you?
Logged
Joomla! 5.0 Release Manager
Vote at JED

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1684
    • View Profile
Re: New errors
« Reply #8 on: January 21, 2015, 09:53:54 am »

I found this message
Quote
        // Add query KEY HINTS
        if(isset($queryData['useKey'])) {
            $table_alias = key($queryData['useKey']);
            $key_hint = $queryData['useKey'][$table_alias];
            if($table_alias == $this->name) {
                //$useTable .= ' USE KEY ('.$key_hint.')';
            }
            elseif (isset($queryData['joins'][$table_alias])) {
                $split_ON = explode('ON',$queryData['joins'][$table_alias]);
                $split_ON[0] .= ' USE KEY ('.$key_hint.') ';
                //$queryData['joins'][$table_alias] = implode('ON',$split_ON);
            }
        }

I disabled 2 lines but didn't remember the file. Its something in the s2 database framework.
Logged
Joomla! 5.0 Release Manager
Vote at JED

Xaman

  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: New errors
« Reply #9 on: January 21, 2015, 02:37:00 pm »

Found it here: /components/com_s2framework/s2framework/libs/model/model.php

I removed that part and it's still giving the error.
Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1684
    • View Profile
Re: New errors
« Reply #10 on: January 22, 2015, 04:53:46 pm »

I need the query that makes this problem...

maybe you activate the debugger and send me the logfile file it should be in /logs/jdiction.php or something like this.
Logged
Joomla! 5.0 Release Manager
Vote at JED

Xaman

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

I need the query that makes this problem...

maybe you activate the debugger and send me the logfile file it should be in /logs/jdiction.php or something like this.
Ok, how do I send you this file? To which email?
Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1684
    • View Profile
Re: New errors
« Reply #12 on: January 22, 2015, 06:24:02 pm »

Logged
Joomla! 5.0 Release Manager
Vote at JED

Xaman

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

Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1684
    • View Profile
Re: New errors
« Reply #14 on: January 22, 2015, 06:39:28 pm »

In this file are 10000 translated queries... so I will not find the correct one ;-)

would you please change the following lines in /libraries/jdiction/database/jddatabase.php

line 428:
Code: [Select]
JLog::add('Query translated: ' . str_replace("\n", '\n', $this->sql), JLog::DEBUG, 'jdiction');
} else {
JLog::add('Query not translated: ' . str_replace("\n", '\n', $this->sql), JLog::DEBUG, 'jdiction');
//JLog::add('Backtrace: ' . @json_encode(debug_backtrace()), JLog::DEBUG, 'jdiction');
}

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

then delete the log file and open the page which cause the error with the parameter ?debug=2 attached at the end of the url.

and send the new file again.
Logged
Joomla! 5.0 Release Manager
Vote at JED

Pages: [1] 2