Customizing SMF > Modifications and Packages
Automatic Newsletter for SMF2
!RFAN:
--- Quote from: !RFAN on April 10, 2012, 11:13:42 PM ---after installation i got this error after redirection:
function ModifyNewsltrSettings($return_config = false) { global $txt, $scripturl, $context, $settings, $sc, $modSettings, $smcFunc; // get list of boards... $result = $smcFunc['db_query']('', 'SELECT id_board, name FROM {db_prefix}boards'); $boards = array(0=>$txt['newsltr_includeall']); // include all boards while ($row = $smcFunc['db_fetch_assoc']($result)) $boards[$row['id_board']] = $row['name']; // get total subscribers $result = $smcFunc['db_query']('', 'SELECT COUNT(*) AS c FROM {db_prefix}hcb_newsletter'); $c = $smcFunc['db_fetch_assoc']($result); $count = $c['c']; $smcFunc['db_free_result']($result); $config_vars = array( array('check', 'newsltr_stats'), array('check', 'newsltr_news'), array('check', 'newsltr_events'), '', array('int', 'newsltr_topic_count'), array('check', 'newsltr_use_perms'), array('select', 'newsltr_exclude_boards', $boards, 'multiple'=>true,), array('desc','newsltr_prev', 'text_label'=>'[' . $txt['newsubscribe_mod_preview'] . ']'), array('desc','newsltr_subscribed', 'text_label'=> $count . $txt['newsubscribe_mod_subscribed']), array('desc','newsltr_delete', 'text_label'=>'[' . $txt['newsubscribe_mod_delmail'] . ']'), ); if ($return_config) return $config_vars; $context['post_url'] = $scripturl . '?action=admin;area=modsettings;save;sa=newsltr'; $context['settings_title'] = $txt['newsubscribe_mod_title']; // Saving? if (isset($_GET['save'])) { checkSession(); $save_vars = $config_vars; saveDBSettings($save_vars); redirectexit('action=admin;area=modsettings;sa=newsltr'); } prepareDBSettingContext($config_vars); }
Fatal error: Call to undefined function ModifyNewsltrSettings() in /home/XXXX/public_html/Sources/ManageSettings.php on line 219
--- End quote ---
HoverClub:
Does the mod install without any file mod errors showing before you click "Install Now"? Do the mod settings work OK after the installation (Admin...Configuration->Modification Settings->Newsletter)? If not, it isn't installing properly (give me a link and access and I'll take a look). If it does work then I can't explain why the settings file hasn't been updated just after install (maybe a server file cache someplace hasn't been updated quickly enough?).
toolbox:
Great mod.
Only problem is keep getting this error in the log since installing, any ideas please ?
http://www.cwht.co.uk/cwht/cwht-forum-2012/index.php?http://www.cwht.co.uk/cwht/cwht-forum-2012/ [nofollow]
8: Undefined variable: news_ltr
File: /xx/xxxxxx/xxxxxx/xxxxxxxx/cwht-forum-2012/Themes/default/languages/GoogleMap.english.php (main sub template - eval?)
Line: 121
Thanks.
HoverClub:
No idea why I'm afraid. Where did the GoogleMap fle come from (a mod?)? The only template file modified is BoardIndex.php - if you want to send me your copy I'll take a look.
toolbox:
GoogleMap is a mod and with this uninstalled the error then shows as BoardIndex.php.
Have found that it only happens when a person looks at our main front page without being logged in.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version