Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1187003

    Dear team,
    I try to upload a google font to use it locally.
    I simply follow this guide (https://kriesi.at/documentation/enfold/typography/#how-to-upload-custom-fonts) but when I try to upload the font I get the message “Couldn’t upload font because the server did not respond”.
    Any hint how to fix this and get the custom font uploaded to be used as default?

    I am running the latest version of WordPress Enfold theme.

    THanks a lot
    Cornelius

    #1187086

    Hey Cornelius,

    Please send us a temporary WordPress admin login and login URL so that we can have a closer look. You can post the details in the Private Content section of your reply. Also, which font are you looking to use?

    Best regards,
    Rikard

    #1187090

    Hello Rikard,
    thanks a lot for your answer.
    I tried to upload Open Sans, so that it will not be fetched from Google. But the above error occurred.
    Unfortunately I can not give you admin access, since this is a corporate site. Currently we switched the font to “Lucida Sans”, which works for now.
    Do you have some hints, how to investigate this?
    We could not see any issues in the web servers (error) logs.

    However, I took a look again and reaslized, that this is an ajax upload error in framework/js/avia_media_wp35.js, which indeed caused a 500 error:

    “POST /wp-admin/admin-ajax.php HTTP/1.1” 500 990 “https://netknights.it/wp-admin/admin.php?page=avia” “Mozilla/5.0 (X11; Ubuntu; Linux x86_64;
    rv:73.0) Gecko/20100101 Firefox/73.0″

    In the browser developer tool I see this:

    Request:

    Host: netknights.it
    User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:73.0) Gecko/20100101 Firefox/73.0
    Accept: application/json, text/javascript, */*; q=0.01
    Accept-Language: de,en-US;q=0.5
    Accept-Encoding: gzip, deflate, br
    Referer: https://netknights.it/wp-admin/admin.php?page=avia
    Content-Type: application/x-www-form-urlencoded; charset=UTF-8
    X-Requested-With: XMLHttpRequest
    Content-Length: 2773
    Origin: https://netknights.it
    Connection: keep-alive

    Response:

    HTTP/1.1 500 Internal Server Error
    Date: Sun, 23 Feb 2020 08:31:19 GMT
    Server: Apache/2.4.29 (Ubuntu)
    Strict-Transport-Security: max-age=63072000; includeSubdomains;
    P3P: CP=”NOI”
    Expires: Wed, 11 Jan 1984 05:00:00 GMT
    Cache-Control: no-cache, must-revalidate, max-age=0
    Pragma: no-cache
    Access-Control-Allow-Origin: https://netknights.it
    Access-Control-Allow-Credentials: true
    X-Robots-Tag: noindex
    X-Content-Type-Options: nosniff
    X-Frame-Options: SAMEORIGIN
    Referrer-Policy: strict-origin-when-cross-origin
    X-XSS-Protection: 1; mode=block
    Content-Length: 191
    Connection: close
    Content-Type: application/json

    With a generic body.

    Kind regards
    Cornelius

    #1187938

    Hi,

    Thank you for the info.

    What is the current version of PHP? Please try to upgrade PHP to v7.3. or later versions, and make sure that the ZipArchive module or extension is enabled.

    Related threads:
    // https://kriesi.at/support/topic/iconfont-manager-error-couldnt-add-the-font-because-the-server-didnt-respond-4/#post-1184888
    // https://kriesi.at/support/topic/cant-install-custom-font/
    // https://kriesi.at/support/topic/cannot-upload-a-fontel-font-zip-file/#post-1179451

    Best regards,
    Ismael

    #1188084

    Hello Ismael,

    thanks a lot for your response.
    I added the php-zip package on the system. Interestingly enough it did not have any effect at first.
    Only after restarting the web server I was able to upload the fonts.
    Kind regards
    Cornelius

    #1188091

    Hi,

    Glad Ismael could help! :)

    For your information, you can take a look at Enfold documentation here – https://kriesi.at/documentation/enfold/
    If you have any other questions or issues, feel free to start a new thread under Enfold sub forum and we will gladly try to help you :)

    Best regards,
    Yigit

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Couldn't upload font because the server did not respond’ is closed to new replies.