Tag: PHP

  • Laravel. No supported encrypter found. The cipher and / or key length are invalid.

    If you have pull a project from a Git repository or from another source and you get the error

    RuntimeException in compiled.php line 7706:
    No supported encrypter found. The cipher and / or key length are invalid.

    (more…)

  • “No input file specified” using Homestead

    If you see the message “No input file specified” in the browser (using Homestead as development VM machine), one possible problem is that Homestead doesn’t load the parameters from the config file Homestead.yaml

    Try to provision the VM another time, running

    $ vagrant reload --provision
  • How to add a new project in Laravel Homestead

    If you want to add a new project in Laravel Homestead, you have to edit the “Homestead.yaml” file, adding a new site:

    (more…)

  • Nothing to publish for tag [] in Laravel

    If you are trying to publish a new package in a Laravel project and you receive the output “Nothing to publish for tag [].”, this is happening because you have cached your config files.

    (more…)

  • Transparencias de “Git para el día a día” de la Meetup PHP Vigo

    En este enlace (5,15 MB) dejo las transparencias de la presentación “Git para el día a día” de la Meetup PHP Vigo del día 14 de marzo de 2016.

    El contenido, pensado para usuarios familiarizados con Git, es el siguiente:

    • Breve introducción a Git.
    • Ramas, fusión y conflictos.
    • Repositorios remotos.
    • Flujos de trabajo.
    • Git flow.
  • Git para el día a día. Mi charla en la Meetup de PHP Vigo

    El lunes 14 de marzo de 2016, a las 19:30, en la Meetup de PHP Vigo, que tendrá lugar en la Casa del Libro de Vigo, daré una charla en el que repasaré los elementos más habituales de Git.

    Para asistir solo hay que apuntarse en la página de la Meetup.

  • Instalar Composer de forma global en Debian

    Para instalar Composer de forma global en Debian hay que ejecutar

    $ sudo apt-get update && apt-get install curl php5-cli
    $ curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer

    Para comprobar que funciona de forma global, hay que ejecutar

    $ composer

    y comprobar que su salida es similar a la siguiente.

    ______
     / ____/___ ____ ___ ____ ____ ________ _____
     / / / __ \/ __ `__ \/ __ \/ __ \/ ___/ _ \/ ___/
     / /___/ /_/ / / / / / / /_/ / /_/ (__ ) __/ /
     \____/\____/_/ /_/ /_/ .___/\____/____/\___/_/
     /_/
     Composer version 1.0-dev (c0883d85fa9e1b1b1bfb42e02261d55cdfd5af20) 2016-02-25 15:44:15
    Usage:
     command [options] [arguments]
  • Fin del soporte de seguridad de PHP en Debian 7

    Actualizando una Debian 7 me encuentro con este mensaje de fin del soporte de seguridad de PHP, por lo que es conveniente migrar a Debian 8.

    php5 (5.4.45-0+deb7u2) wheezy-security; urgency=medium

    * PHP 5.4 has reached end-of-life on 14 Sep 2015 and as a result there
    will be no more new upstream releases. The security support of PHP
    5.4 in Debian will be best effort only and you are strongly advised
    to upgrade to latest stable Debian release that includes PHP 5.6 that
    will reach end of security support on 28 Aug 2017.

    — Ondřej Surý <ondrej@debian.org> Sun, 04 Oct 2015 17:05:37 +0200

  • Fatal error: Call to undefined function mime_content_type()

    Si estás desarrollando o probando alguna aplicación desarrollada en PHP en Windows y te aparece el error

    Fatal error: Call to undefined function mime_content_type()

    (more…)