× Here you can get community support related to ReDJ.

I´m not detecting errors

More
10 years 5 months ago #1829 by admin
Replied by admin on topic I´m not detecting errors
I would like to add some other features, so not before a couple of weeks.

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

  • jrodgar
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 11 months ago #2547 by jrodgar
Replied by jrodgar on topic I´m not detecting errors
Hi!

Long time :)

I was checking 1.7.4 and the "fixes" I made and there are some of them (don´t know if currently necessary) that don´t exist:

Here is the diff:
494,495c494,498
<       header("HTTP/1.1 301 Moved Permanently");
<       header('Location: ' . $tourl);
---
>       //header("HTTP/1.1 301 Moved Permanently");
>       //header('Location: ' . $tourl);
>               $app = JFactory::getApplication();
>               $tourl = str_replace('&amp;','&',$tourl);
>               $app->redirect($tourl, $error->getMessage(), $msgType='message');
525c528
<           } else {
---
>           } /*else {
531c534
<           }
---
>           }*/
595a599
>       restore_exception_handler();
598c602
<     // JError::raise($error->get('level'), $error->get('code'), $error->get('message'), $error->get('info'), $error->get('backtrace'));
---
>       // JError::raise($error->get('level'), $error->getCode(), $error->getMessage(), $error->get('info'), $error->get('backtrace'));
602c606,611
<     $exception = new JException($error->get('message'), $error->get('code'), $error->get('level'), $error->get('info'), $error->get('backtrace'));
---
>       $exception = new JException($error->getMessage(),
>                                                                       $error->getCode()
>                                                                       //, $error->get('level')
>                                                                       //, $error->get('info')
>                                                                       //, $error->get('backtrace')
>                                                                       );
604c613,614
<     $handler = JError::getErrorHandling($exception->get('level'));
---
>     //$handler = JError::getErrorHandling($exception->get('level'));
>       $handler = JError::getErrorHandling(E_ERROR);
1164a1175
>       set_exception_handler(array('plgSystemReDJ', 'customError'));

What do you think? are they correct? (the first one is used to use the joomla messages to comunicate the error, instead of a redirect, maybe this could be configurable in your case, the others are regarding the old get('code') and the exception handlers, but I´m not sure if this is still needed)

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

More
9 years 11 months ago - 9 years 11 months ago #2548 by admin
Replied by admin on topic I´m not detecting errors
Hi,
I have just released new 1.7.5 Enterprise version, a reduced Community version will follow in the next weeks. The changelog is available here:

www.selfget.com/documentation/redj-joomla25/changelog.html

Looking at this 3D I'm not sure about what you suggest and if it is necessary. If you will check the 1.7.5 code just let me know if the problem persists (if you like).

Kind regards,
Luigi
Last edit: 9 years 11 months ago by admin.

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

Time to create page: 0.112 seconds