• Resolved jstneti

    (@jstneti)


    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Jaime Segura

    (@jaimeimagely)

    Hi @jstneti,

    I am glad to help,

    There is an option in NextGEN Gallery > Add Gallery/Images > Import Folder, I think this is what you refer to, if not please correct me.

    Pleased make sure your site has permissions set as per our minimum requirements.

    You can also try activating debug mode in your wp-config.php and try again, then check inside /wp-content/debug.log file for anything pointing to NextGEN Gallery.

    Please keep me posted.

    Thread Starter jstneti

    (@jstneti)

    I didn’t make any changes and tried again on a live staging site and it worked fine. Whatever it was, was resolved.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Cannot import galleries – fatal error’ is closed to new replies.