digideskio / zotonic

Automatically exported from code.google.com/p/zotonic
0 stars 0 forks source link

zotonic upgrade to 0.6 from 0.5 not working due to menu problems #162

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When I try to load my site I built on 0.5 on Zotonic on the default
branch I get HTTP 500 error.

I also get what appear to be multiple retries of mod_menu to upgrade
my menu to the new model.  It seems to be failing because it can't
find the RscId for my menu at 
http://code.google.com/p/zotonic/source/browse/modules/mod_menu/mod_menu.erl#48.
Do I need to start the site on 0.6 first and then restart on default?

Here is a transcript:

$> zotonic/bin/zotonic debug
Erlang R13B03 (erts-5.7.4) [source] [64-bit] [rq:1] [async-threads:0]
[hipe] [kernel-poll:true]

** Found 0 name clashes in code paths
Eshell V5.7.4  (abort with ^G)
(zotonic001@sandbox.local)1> ** Found 0 name clashes in code paths
** Found 0 name clashes in code paths
opening log file: "/home/zotonic/zotonic/bin/../priv/log/access.log.
2011_03_12_22"

=INFO REPORT==== 12-Mar-2011::19:14:25 ===
gen_smtp_server starting at 'zotonic001@sandbox.local'

=INFO REPORT==== 12-Mar-2011::19:14:25 ===
listening on {127,0,0,1}:2525 via tcp

=INFO REPORT==== 12-Mar-2011::19:14:26 ===
[verafin] info @ z_datamodel:132  Resource 'menu' (407) exists but is
not managed by mod_menu.

=INFO REPORT==== 12-Mar-2011::19:14:26 ===
[verafin] warning @ z_datamodel:186  Resource 'main_menu' could not be
handled because the category menu does not exist.

=INFO REPORT==== 12-Mar-2011::19:14:26 ===
[verafin] info @ mod_menu:49  Upgrading old menu structure

[snip]

                                []}}
** Reason for termination ==
** {function_clause,[{m_rsc,update,
                            [undefined,
                             [{menu,[{328,[559,324,334,335]},
                                     {329,[554,359,360,361,362,363]},
                                     {330,[555,372,352,374,371,373]},
                                     {332,[556,387,386,347,388,348]},
                                     {326,[557,346,389,390,391]},
                                     {434,
[558,396,560,397,398,314]}]}],

Original issue reported on code.google.com by scherpenisse on 14 Mar 2011 at 8:05

GoogleCodeExporter commented 8 years ago
I think the problem is this:

you have a resource in 0.5 which has the name  "menu". 
Therefore, the menu module cannot make the *category* "menu", and cannot insert 
the default menu rsc (named main_menu).

Next, when upgrading the old menu structure, this fails because the "main_menu" 
rsc cannot be found.

Try deleting/renaming your rsc which is named "menu", and see if that helps.

Original comment by scherpenisse on 24 Mar 2011 at 10:18

GoogleCodeExporter commented 8 years ago
considering resolved.
I just upgraded a production site 0.5 -> 0.6 without this issue.

Original comment by scherpenisse on 5 Jul 2011 at 12:52