ReDJ and sh404sef
-
kalixo
-
Topic Author
-
Offline
-
Senior Member
-
Less
More
-
Posts: 45
-
Thank you received: 0
-
-
8 years 9 months ago #4675
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.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
8 years 9 months ago #4679
by admin
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
-
Less
More
-
Posts: 45
-
Thank you received: 0
-
-
8 years 9 months ago #4680
by kalixo
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.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
8 years 9 months ago - 8 years 9 months ago #4686
by admin
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
-
Less
More
-
Posts: 45
-
Thank you received: 0
-
-
8 years 9 months ago #4687
by kalixo
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.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
8 years 9 months ago #4688
by admin
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