We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Error 500 [Solved] | Forum

Arifur Rahman
Arifur Rahman Nov 9 '13
If my users mistake the link spelling then my site redirect to Error 500 page not to 404 page.


Example: http://www.ofnf.me/oxwall if you write this by mistake, because we don't have any page call oxwall, then it will redirect to http://www.ofnf.me/500.phtml not to http://www.ofnf.me/404

How can I fix this issue?

Please help!

Thanks

The Forum post is edited by Alia Nov 21 '13
Alia Team
Alia Nov 10 '13
Arifur, may be enabling DEBUG mode can help finding out why  redirect to 404 is not happening.
Arifur Rahman
Arifur Rahman Nov 12 '13
Thank you Aliia,

DEBUG mode is now enabling, http://www.ofnf.me/ Can you please take a look?!

Thank you. 

Alia Team
Alia Nov 13 '13
Did you customize your code?

1. Try disabling CountryFlag plugin.
2. Check application.php ( under /ow_core).
Compare this file to original Oxwall's one.

This method in particular:

 public function route()
    {
        try
        {
            OW::getRequestHandler()->setHandlerAttributes(OW::getRouter()->route());
        }
        catch ( RedirectException $e )
        {
            $this->redirect($e->getUrl(), $e->getRedirectCode());
        }
        catch ( InterceptException $e )
        {
            OW::getRequestHandler()->setHandlerAttributes($e->getHandlerAttrs());
        }
    }

Arifur Rahman
Arifur Rahman Nov 13 '13
Thank you Aliia,I disabling CountryFlag plugin.2. Check application.php ( under /ow_core).Here is from my site: public function route() { try { OW::getRequestHandler()->setHandlerAttributes(OW::getRouter()->route()); } catch ( RedirectException $e ) { $this->redirect($e->getUrl(), $e->getRedirectCode()); } catch ( InterceptException $e ) { OW::getRequestHandler()->setHandlerAttributes($e->getHandlerAttrs()); } } /** * --------- */
Arifur Rahman
Arifur Rahman Nov 13 '13
After disable CountryFlag plugin 

Now forwording to http://www.ofnf.me/404 but getting parsererror

The Forum post is edited by Arifur Rahman Nov 13 '13
Attachments:
  Arifur Rahman (5).png (396.92Kb)
Alia Team
Alia Nov 14 '13
Arifur, I have noticed that you are using "Attachment" plugin.
And the parse error happens only when you are commending on a status where photo was added.

Let's deactivate "Attachment" plugin, and retest.
If the parse error disappears then the issue is with that third party plugin.
If parse error remains, we will debug further.


Arifur Rahman
Arifur Rahman Nov 15 '13
Thank you Aliia, You are so kind!


deactivate "Attachment" plugin, not getting Parseerror, it has gone. My site is DEBUG mode is enabling.
But here is a small problem getting,In profile page ''View more'' option not working, but in dashboard ''View more'' option working well. 

Attachments:
  Arifur Rahman (6).png (223.71Kb)
Alia Team
Alia Nov 18 '13
Arifur, seems like you managed to fix this  yourself.
Have just checked your site . "View more" is working.
What was the issue?
Arifur Rahman
Arifur Rahman Nov 20 '13
Thank you Aliia,

Now it working. :)

Alia Team
Alia Nov 21 '13
Have you found out what was causing this?
Arifur Rahman
Arifur Rahman Nov 21 '13
Thank you Alia,

no, I didn't found ...