Yoni.Saadoun Posted November 4, 2015 Share Posted November 4, 2015 Bonjour j'ai un probleme d'accès à mon site: www.kcyshoes.fr Voici le message d'erreur: Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/kcyshoes/newsite/index.php on line 28 Cela doit provenir de mon fichier htaccess, j'ai essayé plein de chose rien ne va. Voici le contenu de mon htaccess: # ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again# .htaccess automaticaly generated by PrestaShop e-commerce open-source solution# http://www.prestashop.com - http://www.prestashop.com/forums<IfModule mod_rewrite.c><IfModule mod_env.c>SetEnv HTTP_MOD_REWRITE On</IfModule>RewriteEngine on#Domain: www.kcyshoes.frRewriteRule . - [E=REWRITEBASE:/]RewriteRule ^api$ api/ [L]RewriteRule ^api/(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L]# ImagesRewriteCond %{HTTP_HOST} ^mediaserveur1.kcyshoes.fr$ [OR]RewriteCond %{HTTP_HOST} ^mediaserveur2.kcyshoes.fr$ [OR]RewriteCond %{HTTP_HOST} ^mediaserveur3.kcyshoes.fr$ [OR]RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L]RewriteCond %{HTTP_HOST} ^mediaserveur1.kcyshoes.fr$ [OR]RewriteCond %{HTTP_HOST} ^mediaserveur2.kcyshoes.fr$ [OR]RewriteCond %{HTTP_HOST} ^mediaserveur3.kcyshoes.fr$ [OR]RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$1$2$3$4.jpg [L]RewriteCond %{HTTP_HOST} ^mediaserveur1.kcyshoes.fr$ [OR]RewriteCond %{HTTP_HOST} ^mediaserveur2.kcyshoes.fr$ [OR]RewriteCond %{HTTP_HOST} ^mediaserveur3.kcyshoes.fr$ [OR]RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$1$2$3$4$5.jpg [L]RewriteCond %{HTTP_HOST} ^mediaserveur1.kcyshoes.fr$ [OR]RewriteCond %{HTTP_HOST} ^mediaserveur2.kcyshoes.fr$ [OR]RewriteCond %{HTTP_HOST} ^mediaserveur3.kcyshoes.fr$ [OR]RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg [L]RewriteCond %{HTTP_HOST} ^mediaserveur1.kcyshoes.fr$ [OR]RewriteCond %{HTTP_HOST} ^mediaserveur2.kcyshoes.fr$ [OR]RewriteCond %{HTTP_HOST} ^mediaserveur3.kcyshoes.fr$ [OR]RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg [L]RewriteCond %{HTTP_HOST} ^mediaserveur1.kcyshoes.fr$ [OR]RewriteCond %{HTTP_HOST} ^mediaserveur2.kcyshoes.fr$ [OR]RewriteCond %{HTTP_HOST} ^mediaserveur3.kcyshoes.fr$ [OR]RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg [L]RewriteCond %{HTTP_HOST} ^mediaserveur1.kcyshoes.fr$ [OR]RewriteCond %{HTTP_HOST} ^mediaserveur2.kcyshoes.fr$ [OR]RewriteCond %{HTTP_HOST} ^mediaserveur3.kcyshoes.fr$ [OR]RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg [L]RewriteCond %{HTTP_HOST} ^mediaserveur1.kcyshoes.fr$ [OR]RewriteCond %{HTTP_HOST} ^mediaserveur2.kcyshoes.fr$ [OR]RewriteCond %{HTTP_HOST} ^mediaserveur3.kcyshoes.fr$ [OR]RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.jpg [L]RewriteCond %{HTTP_HOST} ^mediaserveur1.kcyshoes.fr$ [OR]RewriteCond %{HTTP_HOST} ^mediaserveur2.kcyshoes.fr$ [OR]RewriteCond %{HTTP_HOST} ^mediaserveur3.kcyshoes.fr$ [OR]RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L]RewriteCond %{HTTP_HOST} ^mediaserveur1.kcyshoes.fr$ [OR]RewriteCond %{HTTP_HOST} ^mediaserveur2.kcyshoes.fr$ [OR]RewriteCond %{HTTP_HOST} ^mediaserveur3.kcyshoes.fr$ [OR]RewriteRule ^c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L]# AlphaImageLoader for IE and fancyboxRewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L]# DispatcherRewriteCond %{REQUEST_FILENAME} -s [OR]RewriteCond %{REQUEST_FILENAME} -l [OR]RewriteCond %{REQUEST_FILENAME} -dRewriteRule ^.*$ - [NC,L]RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,L]</IfModule>AddType application/vnd.ms-fontobject .eotAddType font/ttf .ttfAddType font/otf .otfAddType application/x-font-woff .woff<IfModule mod_headers.c> <FilesMatch "\.(ttf|ttc|otf|eot|woff|svg)$"> Header add Access-Control-Allow-Origin "*" </FilesMatch></IfModule>#If rewrite mod isn't enabledErrorDocument 404 /newsite/index.php?controller=404# ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again Avez-vous des idées ? Merci Link to comment Share on other sites More sharing options...
Eolia Posted November 4, 2015 Share Posted November 4, 2015 (edited) Pourquoi incriminer le .htaccess ? L'erreur est décrite comme provenant de la ligne 28 de newsite/index.php C'est donc là qu'il faut chercher en 1er. PS: pour régénérer automatiquement le htaccess allez sur la page SEO & URL, désactivez la ré-écriture d'url et enregistrez, puis ré-activez-là et enregistrez de nouveau Edited November 4, 2015 by Eolia (see edit history) Link to comment Share on other sites More sharing options...
Yoni.Saadoun Posted November 4, 2015 Author Share Posted November 4, 2015 J'ai plus accès au BO de prestashop. Mon fichier index.php: <?php/** 2007-2015 PrestaShop** NOTICE OF LICENSE** This source file is subject to the Open Software License (OSL 3.0)* that is bundled with this package in the file LICENSE.txt.* It is also available through the world-wide-web at this URL:* http://opensource.org/licenses/osl-3.0.php* If you did not receive a copy of the license and are unable to* obtain it through the world-wide-web, please send an email* to [email protected] so we can send you a copy immediately.** DISCLAIMER** Do not edit or add to this file if you wish to upgrade PrestaShop to newer* versions in the future. If you wish to customize PrestaShop for your* needs please refer to http://www.prestashop.com for more information.** @author PrestaShop SA <[email protected]>* @copyright 2007-2015 PrestaShop SA* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)* International Registered Trademark & Property of PrestaShop SA*/require(dirname(__FILE__).'/config/config.inc.php');Dispatcher::getInstance()->dispatch(); Je ne vois rien d'anormal Link to comment Share on other sites More sharing options...
Yoni.Saadoun Posted November 4, 2015 Author Share Posted November 4, 2015 Si j'ajoute ((SetEnv PHP_VER 5)) a mon htaccess, mon site se redirige vers le webmail Et mon panel de gestion deconne complétement au niveau de l'affichage et imporssible de me connecter www.kcyshoes.fr/gestion Link to comment Share on other sites More sharing options...
Eolia Posted November 4, 2015 Share Posted November 4, 2015 Bon, il y a un autre problème là, votre nom de domaine n'a plus de DNS associés... http://mxtoolbox.com/SuperTool.aspx?action=a%3akcyshoes.fr&run=toolpage Link to comment Share on other sites More sharing options...
Yoni.Saadoun Posted November 4, 2015 Author Share Posted November 4, 2015 Je viens de passer le site sous PHP 5. J'ai fait des modifs sur OVH il faut peut etre attendre que les DNS change. Link to comment Share on other sites More sharing options...
Yoni.Saadoun Posted November 4, 2015 Author Share Posted November 4, 2015 Mais pk je ne peut qd mm pas accéder au BO de mon presta ?? Il ne reconnais plus mon compte et l'affichage est bizare www.kcyshoes.fr/gestion 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