Unable to Retrieve Quota Settings for Module
Jamroom Developers
The normal fix for that is run the integrity check.
The cause is probably the module was activated, but the datastore hasn't been created yet.
Try that first.
function ujHotspots_db_update_item_listener($_data, $_user, $_conf, $_args, $event)
{
if (isset($_args['module']) && $_args['module'] == 'jrGallery' && !jrCore_get_flag('ujHotspots_already_done')) {
fdebug("ujHotspots_db_update_item_listener",$_data,$_args, $event);
jrCore_set_flag('ujHotspots_already_done', 1);
}
return $_data;
}{jrCore_list module="jrGallery" profile_id=2 group_by="gallery_title_url" return_count=true}
// Verify comments
jrCore_queue_create('jrComment', 'verify_db', array('count' => $num), 0, null, 1);
function jrGallery_repair_module_listener($_data, $_user, $_conf, $_args, $event)
{
$_rt = jrCore_db_get_items_missing_key('jrGallery', 'gallery_order');
if ($_rt && is_array($_rt)) {
$_up = array();
foreach ($_rt as $id) {
$_up[$id] = array('gallery_order' => 100);
}
if (count($_up) > 0) {
jrCore_db_update_multiple_items('jrGallery', $_up);
jrCore_logger('INF', "updated " . count($_up) . " gallery images missing gallery_order key");
}
}
return $_data;
}