2 sam2kb Oct 05, 2011 22:13

I confirm, it's a bug
The problem is internal. The link on the general tab is referring to the tab with the parameter "settings", where other places it uses "gensettings". If you can't get to the general tab, alter the parameter to "gensettings" and the tab will appear.
That works although in is not a formal fix.
Thanks
That was definately not a formal fix - in fact, if you try and save changes to that tab you will not have any luck. I gave that information in hopes it would help in tracking down a fix.
ok, sorry about this bug.
Indeed ctrl=gensettings is correct.
If you want to fix the menu, go to inc/_core/__core.init.php and around line 914 make this change:
'href' => $dispatcher.'?ctrl=settings',
'entries' => array(
'general' => array(
'text' => T_('General'),
'href' => '?ctrl=gensettings' ),
note the second instance of ctrl=settings should be changed to ctrl=gensettings (not the first one).
This, of course, will be fixed in the next release.
That fixes the menu glitch (thank you), but hitting save on that tab still produces an error page.
Yes, sam2kb told me. So here's the fix for that:
Go to /inc/settings/views/_general.form.php and change the code like this around line 52:
$Form->begin_form( 'fform', T_('General Settings'),
// enable all form elements on submit (so values get sent):
array( 'onsubmit'=>'var es=this.elements; for( var i=0; i < es.length; i++ ) { es[i].disabled=false; };' ) );
$Form->add_crumb( 'globalsettings' );
$Form->hidden( 'ctrl', 'gensettings' );
$Form->hidden( 'action', 'update' );
// --------------------------------------------
Please let me know how that goes.
That did the trick. Thank you very much.
cool :)
I've updated the two files but I still get the error message:
An unexpected error has occurred!
If this error persists, please report it to the administrator.
Go back to home page
Additional information about this error:
The requested controller [general] does not exist.
Any more files we can modify to fix this?
Version 4.1.2 will be out shortly.
Try this
http://forums.b2evolution.net/viewtopic.php?t=22940