Linkto Posted December 13, 2016 Share Posted December 13, 2016 (edited) Bonjour la communauté. Mon but est de doubler mon site pour ensuite modifier le second. L'hébergeur est le même, seulement la BDD est différente. J'ai copié le contenu de mon site (Boutique A) pour le coller dans un nouveau dossier (Boutique . L'intégralité du FTP a été copié. J'ai donc copié la BDD en modifiant dans la configuration : "PS_SHOP_DOMAIN" et "PS_SHOP_DOMAIN_SSL". Dans le dossier config, j'ai modifié le fichier "settings.inc.php" pour renseigner les nouvelles informations de la BDD. Je pensais que tout fonctionnerait, malheureusement non lol. Voici le message d'erreur : Internal Server ErrorThe server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Voici le message dans les logs d'erreurs : [Tue Dec 13 18:22:35 2016] [alert] [client **.214.53.140] [host www.ma-boutique.com] /homez.18/ma-boutique/www/ma-boutique/.htaccess: Invalid command '\xef\xbb\xbf#', perhaps misspelled or defined by a module not included in the server configuration Avez-vous une piste sur ce que j'ai oublié ou ce que je dois faire ? Merci par avance. Edited December 14, 2016 by Linkto (see edit history) Link to comment Share on other sites More sharing options...
Linkto Posted December 14, 2016 Author Share Posted December 14, 2016 Re, La page de login côté administration s'affiche correctement si je supprime le fichier .htaccess, mais une fois connecté, ce message d'erreur s'affiche sur une page blanche : Parse error: syntax error, unexpected 'if' (T_IF) in /home/ma-boutique/www/ma-boutique/modules/slider/slider.php on line 1 Quand je rentre dans le fichier slider.php en local, il s'ouvre normalement, mais sur le serveur il est sur une seule ligne, même quand je l'up à nouveau. Avez-vous une idée du pourquoi ? Link to comment Share on other sites More sharing options...
PixGeek Posted December 14, 2016 Share Posted December 14, 2016 connecte toi au back-office onglet ->préférences->SEO & URLs : recontruit tes url en cliquant sur le premier boutton enregistrer, pui, recontruit ton .htacces puis les robots, vide le cache et cela devrait etre bon.... sinon recontrole ton fichier settings avec les bonnes informations y compris le mot de passe BBD Link to comment Share on other sites More sharing options...
Linkto Posted December 16, 2016 Author Share Posted December 16, 2016 (edited) Merci pour ces informations. J'ai réussi à accéder à la partie administration et faire ce que tu m'as dis. Le back office semble parfait, par contre au niveau du front il y a toujours des erreurs, mais cette fois elles s'affichent. Toutes les erreurs viennent du même fichier : Notice: Undefined index: SP_layoutRes in /home/ma-boutique/www/ma-boutique/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 95Notice: Trying to get property of non-object in /home/ma-boutique/www/ma-boutique/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 95Notice: Undefined index: SP_body_bg_pattern in /home/ma-boutique/www/ma-boutique/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 167Notice: Trying to get property of non-object in /home/ma-boutique/www/ma-boutique/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 167Notice: Undefined index: SP_layoutStyle in /home/ma-boutique/www/ma-boutique/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 168Notice: Trying to get property of non-object in /home/ma-boutique/www/ma-boutique/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 168Notice: Undefined index: SP_sidebarPosition in /home/ma-boutique/www/ma-boutique/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 235Notice: Trying to get property of non-object in /home/ma-boutique/www/ma-boutique/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on lineNotice: Undefined index: SP_contentStyle in /home/ma-boutique/www/ma-boutique/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 63Notice: Trying to get property of non-object in /home/ma-boutique/www/ma-boutique/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 63Notice: Undefined index: SP_showCpanel in /home/ma-boutique/www/ma-boutique/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 155Notice: Trying to get property of non-object in /home/ma-boutique/www/ma-boutique/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 155235 J'ai ouvert le fichier mais je ne vois pas d'où ça vient, je pense que ça vient d'un dossier qui a peut être été mal up. SP c'est peut être le nom de mon thème qui est SP_ClickBoom. Je vais essayer de voir si tout a bien été up. Sinon une autre piste ? Merci encore Edited December 16, 2016 by Linkto (see edit history) Link to comment Share on other sites More sharing options...
Alexandre Carette Posted December 16, 2016 Share Posted December 16, 2016 Salut, Les notices ne sont pas des erreurs mais des avertissements, il faudrait dans le theme mettre une verification des variables SP_ pour les afficher uniquement si elles existent avec if isset. Si tu ne veux pas voir ces notices tu desactives le mode debug. cdt Link to comment Share on other sites More sharing options...
Linkto Posted December 16, 2016 Author Share Posted December 16, 2016 Merci bien, effectivement ça fonctionne. J'avais essayé de désactiver mais sans vider le cache à nouveau. J'ai encore des problèmes de positionnement mais plus d'erreurs. Merci à tous les 2 pour votre aide. 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