La Communauté Webmaster  forum rss


  Forum-webmaster
  Technique - programmation
  PHP / MySQL
(Modérateurs: Shain, Jey, Fabien, erwinol, Lilian, lauryv, ToToMaStEr)
  probleme importation base de donnée
« Précédent Suivant »
Pages: [1] Descendre
Répondre    Aviser des réponses    Envoyer le sujet    Imprimer
  Auteur  Sujet: probleme importation base de donnée  (Lu 489 fois)
probleme importation base de donnée
« sur: le 19-09-2009 a 18:20:10 »
taze95
Membre récent
*

Hors-Ligne

Messages: 1





Voir le Profil    E-Mail
Répondre avec citation

Bonjour à tous, je viens d'importer ma base de donnée en local avec wamp server 2. L'importation c'est bien passé, par contre j'ai un message d'erreur sur mon site. Je n'arrive pas a le résoudre pouvez vous m'aidez???

voila le message:

Warning: Parameter 1 to modMainMenuHelper::buildXML() expected to be a reference, value given in D:\wamp\www\mavideo\libraries\joomla\cache\handler\callback.php on line 99

voila le code de la page :

<?php
/**
* @version      $Id: callback.php 10707 2008-08-21 09:52:47Z eddieajau $
* @package      Joomla.Framework
* @subpackage  Cache
* @copyright  Copyright (C) 2005 - 2008 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.
*/

// Check to ensure this file is within the rest of the framework
defined('JPATH_BASE') or die();

/**
* Joomla! Cache callback type object
*
* @package      Joomla.Framework
* @subpackage  Cache
* @since      1.5
*/
class JCacheCallback extends JCache
{
  /**
    * Executes a cacheable callback if not found in cache else returns cached output and result
    *
    * Since arguments to this function are read with func_get_args you can pass any number of arguments to this method
    * as long as the first argument passed is the callback definition.
    *
    * The callback definition can be in several forms:
    *    - Standard PHP Callback array <http://php.net/callback> [recommended]
    *    - Function name as a string eg. 'foo' for function foo()
    *    - Static method name as a string eg. 'MyClass::myMethod' for method myMethod() of class MyClass
    *
    * @access  public
    * @return  mixed  Result of the callback
    * @since  1.5
    */
  function call()
  {
      // Get callback and arguments
      $args      = func_get_args();
      $callback  = array_shift($args);

      return $this->get( $callback, $args );
  }

  /**
    * Executes a cacheable callback if not found in cache else returns cached output and result
    *
    * @access  public
    * @param  mixed  Callback or string shorthand for a callback
    * @param  array  Callback arguments
    * @return  mixed  Result of the callback
    * @since  1.5
    */
  function get( $callback, $args, $id=false )
  {
      // Normalize callback
      if (is_array( $callback )) {
        // We have a standard php callback array -- do nothing
      } elseif (strstr( $callback, '::' )) {
        // This is shorthand for a static method callback classname::methodname
        list( $class, $method ) = explode( '::', $callback );
        $callback = array( trim($class), trim($method) );
      } elseif (strstr( $callback, '->' )) {
        /*
          * This is a really not so smart way of doing this... we provide this for backward compatability but this
          * WILL!!! disappear in a future version.  If you are using this syntax change your code to use the standard
          * PHP callback array syntax: <http://php.net/callback>
          *
          * We have to use some silly global notation to pull it off and this is very unreliable
          */
        list( $object_123456789, $method ) = explode('->', $callback);
        global $$object_123456789;
        $callback = array( $$object_123456789, $method );
      } else {
        // We have just a standard function -- do nothing
      }

      if (!$id) {
        // Generate an ID
        $id = $this->_makeId($callback, $args);
      }

      // Get the storage handler and get callback cache data by id and group
      $data = parent::get($id);
      if ($data !== false) {
        $cached = unserialize( $data );
        $output = $cached['output'];
        $result = $cached['result'];
      } else {
        ob_start();
        ob_implicit_flush( false );

VOICI LA LIGNE OU  IL Y A UN PROBLEME

                      $result = call_user_func_array($callback, $args);

        $output = ob_get_contents();

        ob_end_clean();

        $cached = array();
        $cached['output'] = $output;
        $cached['result'] = $result;
        // Store the cache data
        $this->store(serialize($cached), $id);
      }

      echo $output;
      return $result;
  }

  /**
    * Generate a callback cache id
    *
    * @access  private
    * @param  callback  $callback  Callback to cache
    * @param  array      $args  Arguments to the callback method to cache
    * @return  string  MD5 Hash : function cache id
    * @since  1.5
    */
  function _makeId($callback, $args)
  {
      if(is_array($callback) && is_object($callback

  • )) {
            $vars = get_object_vars($callback
  • );
            $vars[] = strtolower(get_class($callback
  • ));
            $callback
  • = $vars;
          }
          return md5(serialize(array($callback, $args)));
      }
    }


  • Rapporter au modérateur  
    Répondre    Aviser des réponses    Envoyer le sujet    Imprimer
    Pages: [1] Monter
    « Précédent Suivant »
    Sauter à: 

    Votre statut : Invité
    Vous devez être membre pour participer.
     
     
    Optimiser son référencement : Paperblog
    Optimiser son référencement : twitter
    Optimiser son référencement : l’attribut nofollow
    WordPress 3.0.1 est sorti
    L’intérêt du Google CDN pour vos sites internet
    AdFever vous propose de gagner un iPad avec son plugin de comparaison
    Profitez de la documentation officielle PHP dans Google Chrome
    Interdire le copier-coller dans un formulaire
     
     
    casino
     
     
     

    Copyright (c) Devclic 2002 - 2010 - Tous droits réservés

    creation site internet strasbourg