Recherche avancée

Médias (91)

Autres articles (78)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

Sur d’autres sites (13920)

  • Anomalie #4668 (Nouveau) : Erreur 500 : failed to open dir : Permission denied

    15 février 2021, par Pierre KUHN

    Bonjour,

    Avec la dernière version de 4.3.0 on bloque à la fin :

    1. <span class="CodeRay"><span class="constant">Fatal</span> error: <span class="constant">Uncaught</span> <span class="constant">UnexpectedValueException</span>: <span class="constant">RecursiveDirectoryIterator</span>::__construct(./docker/database/mysql): failed to open dir: <span class="constant">Permission</span> denied in /<span class="keyword">var</span>/www/html/octoshow/spip_loader.php:<span class="integer">998</span> <span class="constant">Stack</span> trace: <span class="comment">#0 [internal function]: RecursiveDirectoryIterator->__construct('./docker/databa...', 12288) #1 [internal function]: RecursiveDirectoryIterator->getChildren() #2 [internal function]: FilterIterator->rewind() #3 /var/www/html/octoshow/spip_loader.php(998): FilterIterator->rewind() #4 /var/www/html/octoshow/spip_loader.php(928): SL_lister_contenus_superflus(Array, './', Array) #5 /var/www/html/octoshow/spip_loader.php(887): SL_comparer_contenus(Array, './') #6 /var/www/html/octoshow/spip_loader.php(1187): SL_nettoyer_superflus(Array, './') #7 /var/www/html/octoshow/spip_loader.php(1345): spip_deballe_paquet('spip/archives/s...', './spip-v3.2.9.z...', '', 0) #8 /var/www/html/octoshow/spip_loader.php(1462): spip_deballe('spip/archives/s...', 'fichier', '', 0) #9 {main} thrown in /var/www/html/octoshow/spip_loader.php on line 998</span>
    2. </span>

    Télécharger

    Je travail sur docker, les droits rw-rw--- 1 999 999
    Merci

  • Anomalie #3689 (Nouveau) : Des messages d’erreurs qui ne semblent pas avoir lieu d’être

    9 février 2016, par Franck Dalot

    Bonjour :-)
    SPIP 3.1.0 [22811]
    Php 5.6.15
    Table en MySQL
    Prefix des table : test12

    Quand je télécharge le squelette "scolaspip" en version 4 http://plugins.spip.net/scolaspip.html via SVP, j’ai systématiquement un message d’erreur qui ne me semble pas avoir lieu d’être (voir copie d’écran erreur 0)
    Si dans .../ecrire/ ?exec=admin_plugin&voir=actif je clique sur "Tout cocher", que je choisi "désinstaller", j’ai systématiquement un autre message (voir copie d’écran erreur 1)

    A savoir que cela fait pareil en SPIP 3.0.21 [22462]

    J’ai fait aussi un test en 3.0.21 avec le squelette "SPIPMine 2.0.1 - dev" http://plugins.spip.net/spipmine.html car il necessite également spipr, j’ai le même message que la copie d’écran 0, par contre, je ne peux pas dire pour l’autre message, car SVP semble avoir un problème quand il y a pas mal de necessite, je suis dans l’obligation de réactualiser la page, mais ce point demanderait confirmation par une autre personne
    Franck

  • Update Database After shell_exec() Using FFMPEG/Laravel

    25 avril 2020, par Mike

    I want to update a database record (MySQL) after the FFMPEG process is complete. Normally I would just call a function just after the FFMPEG command, but I needed to add > /dev/null 2>/dev/null &amp; so I didn't have to wait for the FFMPEG process to complete which would mean the REST call would hang for a LONG time and that would cause bad UX for the front-end.

    &#xA;&#xA;

    I'm not sure where to begin with it. My first thought is to make a REST request, but maybe calling the method in Laravel directly would be better.

    &#xA;&#xA;

    Can I do a curl call after the FFMPEG command ? Or can I call a PHP method ? Or is there a better way ?

    &#xA;&#xA;

    PHP FFMPEG Method

    &#xA;&#xA;

    private function transcode($movie)&#xA;{&#xA;    try {&#xA;        $name       = &#x27;master.&#x27; . $movie->extension;&#xA;        $this->path = storage_path(&#x27;app/public/movies/&#x27;) . $movie->id . &#x27;/&#x27;;&#xA;        $fps        = $this->getFrameRate($name);&#xA;        $width      = $this->getVideoWidth($name);&#xA;        $height     = $this->getVideoHeight($name);&#xA;&#xA;        // ffmpeg commands&#xA;        $c = $this->buildCommand($width, $height, $fps);&#xA;&#xA;        // ffmpeg -  added &#x27;> /dev/null 2>/dev/null &amp;&#x27; so it will not wait to finish&#xA;        $ffmpeg = shell_exec(&#x27;ffmpeg -i &#x27; . $this->path . $name . &#x27; -progress &#x27; . $this->path . &#x27;transcode.log&#x27; . $c . &#x27; > /dev/null 2>/dev/null &amp;&#x27;);&#xA;&#xA;        return response()->json([&#x27;message&#x27; => &#x27;transcode initiated&#x27;], 200); &#xA;&#xA;    }&#xA;    catch(\Exception $e)&#xA;    {&#xA;        return response()->json([&#x27;error&#x27; => $e->getMessage()], 500);&#xA;    }&#xA;}&#xA;

    &#xA;&#xA;

    Here is the bash curl post idea

    &#xA;&#xA;

    $curl = &#x27;curl --data "param1=value1&amp;param2=value2" http://hostname/transcode/complete&#x27;;&#xA;&#xA;$ffmpeg = shell_exec(&#x27;ffmpeg -i &#x27; . $this->path . $name . &#x27; -progress &#x27; . $this->path . &#x27;transcode.log&#x27; . $c . &#x27;; $curl > /dev/null 2>/dev/null &amp;&#x27;);&#xA;

    &#xA;&#xA;

    I could be going down the wrong path with the above, but I'm trying to move forward with something.

    &#xA;