× Here you can get community support related to ReDJ.

ReDJ and sh404sef

  • kalixo
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 9 months ago #4675 by kalixo
ReDJ and sh404sef was created by kalixo
Dear all,
I use sh404sef and REDJ component - everything works great, but In some pages I got error page with:

Catchable fatal error: Object of class Sh404sefClassRouter could not be converted to string in /plugins/system/redj/redj.php on line 688

the source page that should be redirecred is:
(http)://darmolandia(dot)pl/promocje/wyprzedaz-txm24-do-50-znizki-na-ubrania-bielizne-buty-akcesoria-i-artykuly-szkolne-i-dla-domu

using REDJ I am redirecting all pages with url containg "/promocje/" to string without this category. In most of cases it works, but In some not. I don't know what could be causing this problem?

Thanks in advance,
best regards,
Kalixo

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

More
8 years 9 months ago #4679 by admin
Replied by admin on topic ReDJ and sh404sef
I think I got the problem, but I need to make some tests to fix it.

Kind regards,
Luigi
The following user(s) said Thank You: kalixo

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

  • kalixo
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 9 months ago #4680 by kalixo
Replied by kalixo on topic ReDJ and sh404sef
Dear Luigi,
I can't wait for your solution :)
Thanks, and good luck!

Best regards,
Kalixo

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

More
8 years 9 months ago - 8 years 9 months ago #4686 by admin
Replied by admin on topic ReDJ and sh404sef
Hi,
I will release new version with fix asap. But if you can't wait, edit the redj.php plugin file go to line 687, and change this:
    // Call saved exception handler
    if (is_callable("{$GLOBALS["_REDJ_EXCEPTION_HANDLER"][0]}::{$GLOBALS["_REDJ_EXCEPTION_HANDLER"][1]}"))
    {
      if (version_compare(PHP_VERSION, '5.3.0', '<'))
      {
        call_user_func($GLOBALS["_REDJ_EXCEPTION_HANDLER"][0]."::".$GLOBALS["_REDJ_EXCEPTION_HANDLER"][1], $error);
      } else {
        $GLOBALS["_REDJ_EXCEPTION_HANDLER"][0]::$GLOBALS["_REDJ_EXCEPTION_HANDLER"][1]($error);
      }
    }

With this:
    // Call saved exception handler
    if (is_callable($GLOBALS["_REDJ_EXCEPTION_HANDLER"]))
    {
      call_user_func($GLOBALS["_REDJ_EXCEPTION_HANDLER"], $error);
    }

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

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

  • kalixo
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 9 months ago #4687 by kalixo
Replied by kalixo on topic ReDJ and sh404sef
Dear Luigi,
thank you - your fix worked and I the "problem" is not displaying enymore.
I found out that there is still problem with rendering some of my pages with strange urls, but I think that's not the redj problem.

Thank you,
Kalixo

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

More
8 years 9 months ago #4688 by admin
Replied by admin on topic ReDJ and sh404sef
Thanks for reporting.

And no, ReDJ doesn't matter with any content page, just redirects...

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

Time to create page: 0.183 seconds