| | 54 | |
| | 55 | ---- |
| | 56 | |
| | 57 | == Q: I see this error when I open my site: ''Warning: Missing argument 1 for TopMenuDesign(), called in ...templates\tmpl_...\scripts\BxTemplMenu.php on line 45 and defined in ...inc\menu.inc.php on line 250'' == |
| | 58 | |
| | 59 | '''A:''' Templates created for versions under 6.0.0004 will generate this error. But it can be fixed the following way: |
| | 60 | |
| | 61 | 1) open '''templates/tmpl_TEMPLATE-NAME/scripts/BxTemplMenu.php''' |
| | 62 | |
| | 63 | 2) replace |
| | 64 | {{{ |
| | 65 | $ret .= TopMenuDesign( ... ); |
| | 66 | }}} |
| | 67 | with |
| | 68 | {{{ |
| | 69 | $ret .= TopMenuDesign( (int)getParam('topmenu_items_perline'), '</tr><tr>' ); |
| | 70 | }}} |
| | 71 | |
| | 72 | This should solve the problem. |
| | 73 | |
| | 74 | ---- |