Fatal error: Out of memory lors de l’activation du plugin ANNONCES (Créer un compte)

  • Statut : non résolu
3 sujets de 1 à 3 (sur un total de 3)
  • Auteur
    Messages
  • #494049
    sylvainbr
    Membre
    Chevalier WordPress
    239 contributions

    Bonjour,

    Ma configuration WP actuelle
    – Version de WordPress : 3.1

    Lors de l’activation du plugin annonces j’ai le message suivants:

    Fatal error: Out of memory (allocated 31981568) (tried to allocate 8192 bytes) in /homepages/htdocs/wp-content/plugins/annonces/includes/lib/Zend/Search/Lucene/Document/OpenXml.php on line 1

    Est ce vraiment un problème de mémoire par rapport au serveur de mon hébergeur 1&1 ou un problème de place?

    Merci pour votre éclaircissement.

    Pour info pour le moment je n’arrive pas à me connecter à mon espace perso (je suis en train de demander les info à l’ancienne personne de notre asso qui doit les avoirs)

    <?php
    /**
    * Zend Framework
    *
    * LICENSE
    *
    * This source file is subject to the new BSD license that is bundled
    * with this package in the file LICENSE.txt.
    * It is also available through the world-wide-web at this URL:
    * http://framework.zend.com/license/new-bsd
    * 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 license@zend.com so we can send you a copy immediately.
    *
    * @category Zend
    * @package Zend_Search_Lucene
    * @subpackage Document
    * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
    * @license http://framework.zend.com/license/new-bsd New BSD License
    * @version $Id: OpenXml.php 16971 2009-07-22 18:05:45Z mikaelkael $
    */


    /** Zend_Search_Lucene_Document */
    require_once ABSPATH.'wp-content/plugins/'.Basename_Dirname_AOS.'/includes/lib/Zend/Search/Lucene/Document.php';

    if (class_exists('ZipArchive', false)) {

    /**
    * OpenXML document.
    *
    * @category Zend
    * @package Zend_Search_Lucene
    * @subpackage Document
    * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
    * @license http://framework.zend.com/license/new-bsd New BSD License
    */
    abstract class Zend_Search_Lucene_Document_OpenXml extends Zend_Search_Lucene_Document
    {
    /**
    * Xml Schema - Relationships
    *
    * @var string
    */
    const SCHEMA_RELATIONSHIP = 'http://schemas.openxmlformats.org/package/2006/relationships';

    /**
    * Xml Schema - Office document
    *
    * @var string
    */
    const SCHEMA_OFFICEDOCUMENT = 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument';

    /**
    * Xml Schema - Core properties
    *
    * @var string
    */
    const SCHEMA_COREPROPERTIES = 'http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties';

    /**
    * Xml Schema - Dublin Core
    *
    * @var string
    */
    const SCHEMA_DUBLINCORE = 'http://purl.org/dc/elements/1.1/';

    /**
    * Xml Schema - Dublin Core Terms
    *
    * @var string
    */
    const SCHEMA_DUBLINCORETERMS = 'http://purl.org/dc/terms/';

    /**
    * Extract metadata from document
    *
    * @param ZipArchive $package ZipArchive OpenXML package
    * @return array Key-value pairs containing document meta data
    */
    protected function extractMetaData(ZipArchive $package)
    {
    // Data holders
    $coreProperties = array();

    // Read relations and search for core properties
    $relations = simplexml_load_string($package->getFromName(« _rels/.rels »));
    foreach ($relations->Relationship as $rel) {
    if ($rel[« Type »] == Zend_Search_Lucene_Document_OpenXml::SCHEMA_COREPROPERTIES) {
    // Found core properties! Read in contents…
    $contents = simplexml_load_string(
    $package->getFromName(dirname($rel[« Target »]) . « / » . basename($rel[« Target »]))
    );

    foreach ($contents->children(Zend_Search_Lucene_Document_OpenXml::SCHEMA_DUBLINCORE) as $child) {
    $coreProperties[$child->getName()] = (string)$child;
    }
    foreach ($contents->children(Zend_Search_Lucene_Document_OpenXml::SCHEMA_COREPROPERTIES) as $child) {
    $coreProperties[$child->getName()] = (string)$child;
    }
    foreach ($contents->children(Zend_Search_Lucene_Document_OpenXml::SCHEMA_DUBLINCORETERMS) as $child) {
    $coreProperties[$child->getName()] = (string)$child;
    }
    }
    }

    return $coreProperties;
    }

    /**
    * Determine absolute zip path
    *
    * @param string $path
    * @return string
    */
    protected function absoluteZipPath($path) {
    $path = str_replace(array(‘/’, ‘\’), DIRECTORY_SEPARATOR, $path);
    $parts = array_filter(explode(DIRECTORY_SEPARATOR, $path), ‘strlen’);
    $absolutes = array();
    foreach ($parts as $part) {
    if (‘.’ == $part) continue;
    if (‘..’ == $part) {
    array_pop($absolutes);
    } else {
    $absolutes[] = $part;
    }
    }
    return implode(‘/’, $absolutes);
    }
    }

    } // end if (class_exists(‘ZipArchive’))

    #765984
    Li-An
    Participant
    Maître WordPress
    28916 contributions

    Visiblement, le plugin « annonces » pose problème. Il faudrait vérifier qu’il est bien à jour et la consommation mémoire de votre blog (il existe des plugins pour ça).

    #765985
    sylvainbr
    Membre
    Chevalier WordPress
    239 contributions

    Le plugin ANNONCES est à jour.
    Voici le détail de ma consommation mémoire via le plugin wp system health

    En espérant que ce poste soit asse compréhensible.

    SYSTEM:
    OS Type Linux infong 2.4 #1 SMP Thu Nov 25 01:59:22 UTC 2010 i686 GNU/Linux
    Server Software Apache
    Server Signature
    Server Name armeco.org
    PHP Version 5.2.17
    Zend Version 2.2.0
    Platform 32Bit
    Loaded Extensions date, libxml, openssl, pcre, zlib, bcmath, bz2, calendar, ctype, curl, dba, dbase, dom, hash, filter, ftp, gd, gettext, session, iconv, idn, standard, json, mbstring, mcrypt, mhash, mysql, SimpleXML, SPL, PDO, pdo_sqlite, posix, Reflection, imap, shmop, pdo_mysql, soap, mysqli, SQLite, exif, tidy, tokenizer, wddx, xml, xmlreader, xmlwriter, xsl, zip, cgi
    MySQL Server 5.0.91-log
    Memory Limit 90 MB
    Storage Space 58,36 MB of 2,44 GB (2,33 %) used.
    – Soft Limit 2,44 GB
    Number of Files 4627 of 262144 files (1,77 %) stored.
    date/time
    (LC_TIME) C
    last 1 minute 3,66
    Rendering Dashboard
    (callback:dashboard)
    29,51 %
    26,56 MB | Will be passed during generation of this Dashboard Overview.

    PHP
    Maximum Execution Time
    (max_execution_time) 50 seconds
    This sets the maximum time in seconds a script is allowed to run before it is terminated by the parser.
    Maximum File Size
    (upload_max_filesize) 40 MB
    The maximum size of an uploaded file.
    Short Open Tags
    (short_open_tag) On
    Tells whether the short form () of PHP’s open tag should be allowed.
    Remote open Files
    (allow_url_fopen) Off
    This option enables the URL-aware fopen wrappers that enable accessing URL object like files. Should be disabled for security reasons, to prevent remote file inclusion attacks.
    Remote include Files
    (allow_url_include) Off
    This option allows the use of URL-aware fopen wrappers with the following functions: include(), include_once(), require(), require_once(). Should be disabled for security reasons, to prevent remote file inclusion attacks.
    PHP Safe Mode
    (safe_mode) Off
    Whether to enable PHP’s safe mode.
    Open Basedir
    (open_basedir)
    Limit the files that can be opened by PHP to the specified directory-tree, including the file itself. This directive is NOT affected by whether Safe Mode is turned On or Off.

    WORDPRESS
    Version 3.1.1
    Installation Type Standard Installation
    Language
    (WPLANG) fr_FR
    Language
    (get_locale) fr_FR
    Update Method
    (evaluated) direct
    Describes the layer been used to performs automatic updates at your WordPress installation.
    Post Revision Handling
    (WP_POST_REVISIONS) no limit
    Whether to skip, enable or limit post revisions.
    Automatic Save Interval
    (AUTOSAVE_INTERVAL) 60 seconds
    Post/Page Editor time interval for sending an automatic draft save.
    Empty Trash Interval
    (EMPTY_TRASH_DAYS) 30 days
    Constant controls the number of days before WordPress permanently deletes posts, pages, attachments, and comments, from the trash bin.

    TRANSLATION
    WordPress
    (textdomain: « default ») File: wp-content/languages/fr_FR.mo
    Size: 422 kB
    Strings: 3185
    total translations
    (summary) Loaded Files: 5
    Total Size: 615 kB
    Total Strings: 5317

    DATABASE
    MySQL Server 5.0.91-log
    wp_posts
    (MyISAM | WordPress) 178 rows
    Data: 203,28 kB
    Index: 28,00 kB
    Waste: 3,41 kB
    All Tables
    (memory usage) 793,958 kB
    Amount of memory your database currently utilize in total.
    post(Type)
    10,11 %
    18 rows | percentage of total rows

3 sujets de 1 à 3 (sur un total de 3)
  • Vous devez être connecté pour répondre à ce sujet.