Jump to content

Probleme d'acces au site


Recommended Posts

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.fr
RewriteRule . - [E=REWRITEBASE:/]
RewriteRule ^api$ api/ [L]
RewriteRule ^api/(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L]

# Images
RewriteCond %{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 fancybox
RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L]

# Dispatcher
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,L]
</IfModule>

AddType application/vnd.ms-fontobject .eot
AddType font/ttf .ttf
AddType font/otf .otf
AddType 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 enabled
ErrorDocument 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

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 by Eolia (see edit history)
Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...