Cannot import galleries – fatal error
-
I am setting up a site locally via Laragon and sadly don’t have access to the original DB so I have to import the galleries manually. I uploaded the galleries to the wp-content/gallery/ folder. That is also set in NGG settings. I can see them in the import view, but when clicking the “import galleries”, it says importing but nothing is imported. I checked with console and see a fatal error:
Fatal error: Uncaught Error: Class "WP_Filesystem_Direct" not found in C:\laragon\www\dekani\wp-content\plugins\nextgen-gallery\src\DataMappers\Gallery.php:149 Stack trace: #0 C:\laragon\www\dekani\wp-content\plugins\nextgen-gallery\src\DataMapper\DriverBase.php(606): Imagely\NGG\DataMappers\Gallery->save_entity(Object(Imagely\NGG\DataTypes\Gallery)) #1 C:\laragon\www\dekani\wp-content\plugins\nextgen-gallery\src\DataMapper\Model.php(110): Imagely\NGG\DataMapper\DriverBase->save(Object(Imagely\NGG\DataTypes\Gallery)) #2 C:\laragon\www\dekani\wp-content\plugins\nextgen-gallery\src\DataStorage\Manager.php(2519): Imagely\NGG\DataMapper\Model->save() #3 C:\laragon\www\dekani\wp-content\plugins\nextgen-gallery\src\DataStorage\Manager.php(2497): Imagely\NGG\DataStorage\Manager->import_gallery_from_fs('C:\\laragon\\www\\...', false, false, NULL, Array) #4 C:\laragon\www\dekani\wp-content\plugins\nextgen-gallery\products\photocrati_nextgen\modules\nextgen_addgallery_page\package.module.nextgen_addgallery_page.php(255): Imagely\NGG\DataStorage\Manager->import_gallery_from_fs('C:\\laragon\\www\\...', false, false, NULL) #5 [internal function]: A_NextGen_AddGallery_Ajax->import_folder_action() #6 C:\laragon\www\dekani\wp-content\plugins\nextgen-gallery\vendor\imagely\pope-framework\lib\class.extensibleobject.php(659): ReflectionMethod->invokeArgs(Object(A_NextGen_AddGallery_Ajax), Array) #7 C:\laragon\www\dekani\wp-content\plugins\nextgen-gallery\vendor\imagely\pope-framework\lib\class.extensibleobject.php(498): ExtensibleObject->_exec_cached_method('import_folder_a...', Array) #8 C:\laragon\www\dekani\wp-content\plugins\nextgen-gallery\vendor\imagely\pope-framework\lib\class.extensibleobject.php(581): ExtensibleObject->__call('import_folder_a...', Array) #9 C:\laragon\www\dekani\wp-content\plugins\nextgen-gallery\products\photocrati_nextgen\modules\ajax\package.module.ajax.php(40): ExtensibleObject->call_method('import_folder_a...') #10 C:\laragon\www\dekani\wp-content\plugins\nextgen-gallery\products\photocrati_nextgen\modules\ajax\module.ajax.php(44): C_Ajax_Controller->index_action() #11 C:\laragon\www\dekani\wp-includes\class-wp-hook.php(324): M_Ajax->serve_ajax_request('') #12 C:\laragon\www\dekani\wp-includes\class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #13 C:\laragon\www\dekani\wp-includes\plugin.php(517): WP_Hook->do_action(Array) #14 C:\laragon\www\dekani\wp-settings.php(643): do_action('init') #15 C:\laragon\www\dekani\wp-config.php(103): require_once('C:\\laragon\\www\\...') #16 C:\laragon\www\dekani\wp-load.php(50): require_once('C:\\laragon\\www\\...') #17 C:\laragon\www\dekani\wp-blog-header.php(13): require_once('C:\\laragon\\www\\...') #18 C:\laragon\www\dekani\index.php(17): require('C:\\laragon\\www\\...') #19 {main} thrown in C:\laragon\www\dekani\wp-content\plugins\nextgen-gallery\src\DataMappers\Gallery.php on line 149
I thought to try on a live staging site and I got the same error.
I tried deactivating all plugins and switched to the Twenty Twenty-four theme but got the same result.
Any idea what is happenning? I have the latest NGG version and I really need to import these galleries.
- The topic ‘Cannot import galleries – fatal error’ is closed to new replies.