• Resolved dreihochzwo

    (@tmconnect)


    If I want to do an Edit template I got this error with the actual version 2.0.14. With version 2.0.13 it work.

    Fatal error: Uncaught Error: Class 'WP_Filesystem_Direct' not found in /.../wp-content/plugins/loco-translate/src/fs/FileWriter.php:20 Stack trace: #0 /.../wp-content/plugins/loco-translate/src/fs/File.php(125): Loco_fs_FileWriter->__construct(Object(Loco_fs_LocaleFile)) #1 /.../wp-content/plugins/loco-translate/src/fs/File.php(151): Loco_fs_File->getWriteContext() #2 /.../wp-content/plugins/loco-translate/src/admin/file/EditController.php(175): Loco_fs_File->writable() #3 /.../wp-content/plugins/loco-translate/src/mvc/AdminRouter.php(220): Loco_admin_file_EditController->render() #4 /.../wp-includes/class-wp-hook.php(298): Loco_mvc_AdminRouter->renderPage('') #5 /.../wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters('', Array) #6 /.../wp-content/plugins/loco-translate/src/fs/FileWriter.php on line 20

    • This topic was modified 8 years, 10 months ago by dreihochzwo.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Tim W

    (@timwhitlock)

    Thanks for reporting, but something doesn’t add up about this information.

    Your error occurring on line 20 is from version 2.0.13.
    https://github.com/loco/wp-loco/blob/2.0.13/src/fs/FileWriter.php#L20

    But version 2.0.14 could not throw this error at line 20 because it does not reference the missing class.
    https://github.com/loco/wp-loco/blob/2.0.14/src/fs/FileWriter.php#L20

    This leaves me guessing whether something went wrong with your plugin update. It’s as if some files updated and some didn’t. Either that or you have some kind of opcode cache that needs purging. Can you try clearing any server-side caches and doing a completely clean install of 2.0.14?

    If you still get the error can you please post enough information for me to reproduce the error? That means versions of PHP and WordPress and any caching or opcode modules you’re using. Thanks.

    Thread Starter dreihochzwo

    (@tmconnect)

    I reinstalled the the version 2.0.14 and now everything works fine.

    Thanks for your tip.

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

The topic ‘Fatal error if calling Edit template’ is closed to new replies.