lordbdp Posted June 12, 2013 Share Posted June 12, 2013 (edited) Bonsoir, Lorsqu'on me laisse un message directement sur la boutique, j'ai un message d'erreur lors de l'envoi de ma réponse : Warning: preg_match() expects parameter 2 to be string, array given in /home/mon_site.com/classes/Validate.php on line 177 Warning: Cannot modify header information - headers already sent by (output started at /home/ecentral/public_html/bigoodies.com/classes/Validate.php:177) in /home/mon_site.com/classes/Tools.php on line 141 J'ai cherché sur le web une solution mais je ne trouve rien... Merci d'avance. Edited June 12, 2013 by lordbdp (see edit history) Link to comment Share on other sites More sharing options...
lordbdp Posted June 14, 2013 Author Share Posted June 14, 2013 A savoir que malgré le message d'erreur, la réponse est quand-même bien envoyée. Une solution ? Link to comment Share on other sites More sharing options...
soltek73 Posted July 4, 2013 Share Posted July 4, 2013 i have your identical problem in the same files same lines ? have you solved it ? Link to comment Share on other sites More sharing options...
WebTotem Posted July 9, 2013 Share Posted July 9, 2013 Salut à tous, un petit up car j'ai exactement le même problème. Il semblerait que le système considère PS_SHOP_EMAIL dans la table configuration (appel depuis ../classes/Mail.php) comme un array et non comme un string. C'est bizarre mais je ne vois pas ni pourquoi ni comment régler le problème. Si quelqu'un a une idée? C'est pas bloquant dans l'absolu mais c'est gênant. Et çapourrait devenir problématique à l'avenir je pense. A vos idées. Merci Link to comment Share on other sites More sharing options...
joseantgv Posted July 23, 2013 Share Posted July 23, 2013 Check this: https://github.com/PrestaShop/PrestaShop/pull/588/files Link to comment Share on other sites More sharing options...
WebTotem Posted July 23, 2013 Share Posted July 23, 2013 Super merci pour cette infos. Je vais tester et voir ce que cela donne. Juste pour mon info personnelle de "non-deveolppeur", en quoi consiste cette modification. Tu fais appel à la classe Contact.php ? Une autre fonction? En tout cas merci. Fabien Link to comment Share on other sites More sharing options...
joseantgv Posted July 23, 2013 Share Posted July 23, 2013 I have to answer in English as I'm Spanish and I don't want to use Google Translator, I hope you understand me. Function preg_match expects a string as a parameter and PS was sending an array. This: $contact = new Contact((int)$ct->id_contact); returns an array with the contact names in all languages, so with this modification only returns an array with the thread language. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now