Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • @zaea
    It might be solved by configuration, e.g. changing amount of allocated memory etc.

    Please have a look:
    https://jp.godaddy.com/community/Using-WordPress/Wordpress-theme-upload-error-quot-The-link-you-followed-has/td-p/101292

    If it does not work, please let me know. I might be able to help you.
    twitter @befiveinfo

    • This reply was modified 6 years, 1 month ago by befiveinfo.

    Sorry but I cannot remember which site it was and why I was having the problem.

    Just out of curiosity, what theme are you using?

    What I can suggest you is to deactivate all the theme and plugin, and try again.

    I think that there was once a case when check_admin_referer causes a clash at wp_update_nav_menu_item hook in the course of wordpress-importer trying to import contents. The action hook function needs to do “return” immediately if the hook was called during ajax.

    Hello, do you see a message like:

    “The link you followed has expired.

    Please try again.”

    And after you click on the try again link, do you see this message in the following page?

    “Import WordPress
    Sorry, there has been an error.
    File is empty. Please upload something more substantial. This error could also be caused by uploads being disabled in your php.ini or by post_max_size being defined as smaller than upload_max_filesize in php.ini.”

    additional note:
    after installation of WordPress, as soon as I enabled debug mode one, I got

    Warning: mysqli_real_connect(): (HY000/2002): No such file or directory in /var/www/vhosts/xxxx.nl/httpdocs/wp-includes/wp-db.php on line 1489

    and a couple of deprecation notices.

    I worked around by modifying the followings to my wp_config.php

    /** MySQL hostname */
    define('DB_HOST', 'localhost:/tmp/mysql.sock');

    Forgot to mention about my current environment :
    OSX El Capitan
    Server version: Apache/2.4.18 (Unix)
    PHP 5.5.31 (Stock)
    mysql Ver 14.14 Distrib 5.7.12, for osx10.11 (x86_64) installed with home brew which has a different mysql.sock file location than that expected by the apache / php.

    Hello,

    In my case it was PHP not being able to find where mysql.sock is when trying to connect to mysql.

    My environment which I encountered the problem was
    Clean install OSX 10.11 El Capitan + stock php enabled.
    mysql installed with home brew

    I had to make php.ini then I set mysql.default_socket as follows:

    ; Default socket name for local MySQL connects.  If empty, uses the built-in
    ; MySQL defaults.
    ; https://php.net/mysql.default-socket
    mysql.default_socket = /tmp/mysql.sock

    Note: you can find out where your php searches for the mysql.sock with the phpinfo() command.

    Hope it helps.

Viewing 5 replies - 1 through 5 (of 5 total)