• Hi,

    We recently upgraded NextGEN (the free version) from 2.0.66.37 to 2.0.77.3, and since then, the following popup appears when trying to add an image to a gallery:
    “An unexpected error occurred. This is most likely due to a server misconfiguration. Check your PHP error log or ask your hosting provider for assistance. 0 images were uploaded”. Also, this prevents the image upload completely.

    This comes from line #209 in nextgen-gallery\products\photocrati_nextgen\modules\nextgen_addgallery_page\templates\upload_images.php, where we get a non-JSON answer to the Ajax image upload message POST https://***/?photocrati_ajax=1&action=upload_image&gallery_id=****&gallery_name=&nextgen_upload_image_sec=******.

    And indeed, the answer is “<h1>Exception thrown</h1><p> not defined for ExtensibleObject</p>”. This error is produced in line #516 of nextgen-gallery\pope\lib\class.extensibleobject.php. Doing a backtrace, the problem comes originally from line #506 of nextgen-gallery/products/photocrati_nextgen/modules/nextgen_data/package.module.nextgen_data.php, because $factory_method = $this->_get_driver_factory_method($context); returns null instead of the name of the C_Gallery_Storage’s method to use.

    The code of this _get_driver_factory_method() method is in line #442 of the same PHP file. Here, we try to read the value of attribute gallerystorage_driver, using the get method implemented in line #271 of nextgen-gallery\non_pope\class.photocrati_settings_manager.php.
    And there, neither C_Photocrati_Settings_Manager_Base nor C_Photocrati_Global_Settings_Manager know about this gallerystorage_driver attribute.

    The only place where I see it initialized is in line #56 of nextgen-gallery\products\photocrati_nextgen\modules\nextgen_settings\module.nextgen_settings.php

    As I am not a PHP developer, I could not check any further, but all of this points very likely to a bug in NextGEN code.

    Could you please see to it? I have been forced to roll back to an older version of the plugin, and can’t use the newer versions while this bug is active.

    https://www.ads-software.com/plugins/nextgen-gallery/

Viewing 6 replies - 1 through 6 (of 6 total)
  • I am having the same issue too. Also, when I upload a photo in the “Insert Media” section, I get an “error” message now. very frustrating.

    Plugin Contributor photocrati

    (@photocrati)

    @onkr91 – Have you tried using the Reset Option under Gallery > Other Options? If that is not available, or does not appear to be setting the NextGEN Gallery options back to their installation defaults, please send us a Bug Report so we can get you our external Reset Tool plugin (which does the same thing).

    Link: https://nextgen-gallery.com/report-bug/

    @demode3000 – Please start your own topic so we can try to help you with your specific issue on your specific site.

    See https://codex.www.ads-software.com/Forum_Welcome#Where_To_Post

    Thanks!

    – Cais.

    Thread Starter Onkr91

    (@onkr91)

    On the local clone of site that runs on my PC, Gallery -> Other Options panel didn’t open (“Exception thrown not defined for ExtensibleObject”), thus I tried the workaround provided by PiotrSolarz here: https://www.ads-software.com/support/topic/exception-thrown-not-defined-for-extensibleobject-4. Things are now back to normal on this local clone.

    However, on the production site, although I could open and use Gallery -> Other Options -> Reset Options, the problem still persist. Seing this, I tried manually adding

    $s = new C_NextGen_Settings_Installer();
    $s->install_local_settings();
    $s->install_global_settings();

    to force reinitializing NextGEN’s parameters, but to no avail.

    Plugin Contributor photocrati

    (@photocrati)

    @onkr91 – As I noted in the other topic, we offer our external Reset Tool plugin to help correctly “re-initialize” the NextGEN Gallery settings and options.

    You are welcome to send us a Bug Report to get the tool to try.

    Thanks!

    – Cais.

    Hello!

    I have the same problem after NextGen Gallery plugin update.

    I have found workaround:
    0*) Create new gallery in gallery management
    1) Upload files manually via SSH or FTP
    2) Go to gallery management, check gallery
    3) Press rescan directory to find new images.

    *If there is no existing one

    Denis.

    Plugin Contributor photocrati

    (@photocrati)

    @disa1985 – Thanks for sharing your work-around.

    – Cais.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Upload problem in the newest versions of NextGen’ is closed to new replies.