Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #341198
    PennOTO
    Participant

    Hello, after updating WordPress the theme crashed with a fatal error. <span data-olk-copy-source=”MessageBody”>The fatal error occurs in wp-content/themes/clean-blocks-pro/inc/wptt-webfont-loader.php I will include the longer error message bellow. Can you please help me with this issue? This occurred even after installing the 2.1 update.</span>
    <div dir=”ltr” data-olk-copy-source=”MessageBody”>[10-Sep-2025 16:31:04 UTC] PHP Fatal error:  Uncaught TypeError: ftp_nlist(): Argument #1 ($ftp) must be of type FTP\Connection, null given in /home/wpmulti/web_docs/wp-admin/includes/class-wp-filesystem-ftpext.php:438</div>

    #341205
    sujeet
    Keymaster

    Hello @pennoto,

    Sorry for the inconvenience caused.
    Can you please try deactivating plugins and check?

    Also please kindly share your website URL.

    Regards,
    Sujeet

    #341210
    Sakin
    Keymaster

    @pennoto: This is your server configuration issue. As this update uses a New package to allow locally hosting webfonts due to
    GDPR issue as mentioned here https://make.wordpress.org/themes/2022/06/18/complying-with-gdpr-when-using-google-fonts/.

    So, it’s better to ask your hosting server to fix this folder permission issue.

    WordPress uses FS_METHOD to determine how it interacts with the file system. If your server environment doesn’t require FTP for file operations (e.g., if PHP has direct file access), setting FS_METHOD to direct can often resolve this. Add or modify the following line in your wp-config.php file:

    define('FS_METHOD', 'direct');

    Check this for more details https://kinsta.com/knowledgebase/constant-fs_method/

    #341221
    PennOTO
    Participant

    Hi Sakin,

    With the FS_METHOD added, I still got a 500-error message and crash when trying to preview the theme. Looking into the database I saw s:23 “clean blocks title font”; s:4: “lora”; s:31 “clean blocks content title font”; s:4: “lora”.

    I tried downloading the Lora font from google and installing it to /usr/share/fonts/custom/ but this did not resolve the error.

    Will deleting the database values listed repair the error? Or should something else be done?

    Thank you.

    #341223
    Sakin
    Keymaster

    Hi @pennoto:

    You need to contact your hosting support and check the FS_Method and folder permissions. They should be able to fix the issue.

    Regards,
    Sakin

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.