Upload problem in the newest versions of NextGen
-
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 theget
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 thisgallerystorage_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.
- The topic ‘Upload problem in the newest versions of NextGen’ is closed to new replies.