Jump to content

Error 500 in modules config


Recommended Posts

Hey there,

I'm trying to make my modules compatible with 1.5 rc, the be ready for the full version, but i'm encountering a major problem. For some reason, i get error 500 on most of them when clicking on "configure". I've noticed this seems to be related with the use of protected and private functions with uncommon-given names, like "private $errors" instead of "private $_errors".

 

It prestashop becoming strict on semantics, or is there something else i didn't spot?

 

Fabio

Edited by Nemo1 (see edit history)
Link to comment
Share on other sites

  • 1 month later...

Sorry to resummon the topic, but I've noticed the issue seems to be present in the final version, too. There is no error spawn (errors and sql errors are turned on). It just gives error 500! I also tried a module which is not using overrides, and that still doesn't work. Error 500, only that.

 

CRYPTIC!

Link to comment
Share on other sites

Investigating more, i've discovered that what's causing the problems is this piece of code here:

 

  if ($sql)
throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');
  throw new PrestaShopDatabaseException($this->getMsgError());

That's triggered in the displayerror method of the Db Class.

I'll check that class and let you know at which point it breaks (is anybody has the same issue)

 

p.s. Manually dumping the errors without calling the class works fine

 

 

THANKS GOODNESS!

So, i just discovered i had to turn MODE_DEV in defines.inc.php on to dump errors!

Okay, my fault, sorry for that!

Great function, thank you!

Edited by Nemo1 (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...