Jump to content

Networkerror: 500 Internal Server Error And 404-Error


Recommended Posts

Hello all ...

 

I have updated the prestashop 1.4 to 1.5.

 

I have modified the module (ex:bla bla bla ) for make compatible with 1.5. Currently the ajax doesn't return the result from php file. The issue is with controller.

 

In prestahop 1.4 the method to call the controller is:

 

ControllerFactory::getController('CategoryController');

 

If i use the same method in prestashop 1.5 then i have got the 500 internal error ( i checked in firebug)

 

 

NetworkError: 500 Internal Server Error

 

In prestashop 1.5 the method to call the controller is:

 

 

Tools::redirect('index.php?controller=category'.($_REQUEST ? '&'.http_build_query($_REQUEST, '', '&') : ''), __PS_BASE_URI__, null, 'HTTP/1.1 301 Moved Permanently');

 

OR include(dirname(__FILE__).'/../../category.php').

 

Then the fire bug give me 404 error

 

Is it a proper context to call the controller in 1.5v ?

 

Or i am doing something wrong with code.

 

Please help me out.

 

Remember this code is in php file called through ajax.

Link to comment
Share on other sites

  • 3 weeks later...
×
×
  • Create New...