Ticket #771 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Asgard: Configuring net.nehmer.static creates corrupt config snippet

Reported by: jval Assigned to: bergie
Priority: critical Milestone: 8.09.4 Ragnaroek
Component: Asgard Version: 8.09 Ragnaroek
Keywords: Cc:

Description

Parse error: syntax error, unexpected T_STRING, expecting ')' in /usr/share/php/midcom/lib/midcom/baseclasses/components/interface.php(485) : eval()'d code on line 9

Failed to parse content loaded from snippet '/sitegroup-config/net.nehmer.static/config', see above for PHP errors.

Here's what's inside '/sitegroup-config/net.nehmer.static/config':

'schemadbs' => array
(
    'file:/net/nehmer/static/config/schemadb_default.inc' => 'Default Schema Database',
),
'sort_order' => '',
'symlink_topic' => array
(
    'net_nehmer_static_symlink_topic_chooser_widget_handler_url' => 'http://mgdtest.cc.puv.fi/midcom-exec-midcom.helper.datamanager2/chooser_handler.php',
    'net_nehmer_static_symlink_topic_chooser_widget_widget_id' => ''net_nehmer_static_symlink_topic_chooser_widget'',
    'net_nehmer_static_symlink_topic_chooser_widget_min_chars' => 3,
    'net_nehmer_static_symlink_topic_chooser_widget_result_limit' => 10,
    'net_nehmer_static_symlink_topic_chooser_widget_renderer_callback' => 'false',
    'net_nehmer_static_symlink_topic_chooser_widget_result_headers' => '[ { title: 'Otsikko', name: 'extra'  }, { title: 'Nimi', name: 'name'  } ]',
    'net_nehmer_static_symlink_topic_chooser_widget_allow_multiple' => 'false',
    'net_nehmer_static_symlink_topic_chooser_widget_id_field' => ''guid'',
    'net_nehmer_static_symlink_topic_chooser_widget_format_items' => 'null',
    'net_nehmer_static_symlink_topic_chooser_widget_generate_path_for' => ''extra'',
    'net_nehmer_static_symlink_topic_chooser_widget_extra_params' => ''YToxMzp7czo5OiJjb21wb25lbnQiO3M6MTc6Im5ldC5uZWhtZXIuc3RhdGljIjtzOjU6ImNsYXNzIjtzOjE1OiJtaWRjb21fZGJfdG9waWMiO3M6MTU6Il9jYWxsYmFja19jbGFzcyI7TjtzOjE0OiJfY2FsbGJhY2tfYXJncyI7TjtzOjI0OiJfcmVuZGVyZXJfY2FsbGJhY2tfY2xhc3MiO047czoyMzoiX3JlbmRlcmVyX2NhbGxiYWNrX2FyZ3MiO2E6MDp7fXM6MTE6ImNvbnN0cmFpbnRzIjthOjI6e2k6MDthOjM6e3M6NToiZmllbGQiO3M6NToiZXh0cmEiO3M6Mjoib3AiO3M6MjoiPD4iO3M6NToidmFsdWUiO3M6MDoiIjt9aToxO2E6Mzp7czo1OiJmaWVsZCI7czo5OiJjb21wb25lbnQiO3M6Mjoib3AiO3M6MToiPSI7czo1OiJ2YWx1ZSI7czoxNzoibmV0Lm5laG1lci5zdGF0aWMiO319czoxMjoic2VhcmNoZmllbGRzIjthOjI6e2k6MDtzOjU6ImV4dHJhIjtpOjE7czo0OiJuYW1lIjt9czo2OiJvcmRlcnMiO2E6Mjp7aTowO2E6MTp7czo1OiJleHRyYSI7czozOiJBU0MiO31pOjE7YToxOntzOjQ6Im5hbWUiO3M6MzoiQVNDIjt9fXM6MTQ6InJlc3VsdF9oZWFkZXJzIjthOjI6e2k6MDthOjI6e3M6NDoibmFtZSI7czo1OiJleHRyYSI7czo1OiJ0aXRsZSI7czo3OiJPdHNpa2tvIjt9aToxO2E6Mjp7czo0OiJuYW1lIjtzOjQ6Im5hbWUiO3M6NToidGl0bGUiO3M6NDoiTmltaSI7fX1zOjE3OiJnZW5lcmF0ZV9wYXRoX2ZvciI7czo1OiJleHRyYSI7czoxNDoiYXV0b193aWxkY2FyZHMiO3M6MzoiZW5kIjtzOjEzOiJyZWZsZWN0b3Jfa2V5IjtOO30='',
    'net_nehmer_static_symlink_topic_chooser_widget_search_input' => '',
),
'enable_ajax_editing' => true,

Everything done by clicking. So there has to be a bug in the code which generates that snippet.

Change History

02/15/09 22:29:46 changed by flack

  • priority changed from major to critical.
  • component changed from MidCOM component to Asgard.
  • summary changed from PHP parse error in /sitegroup-config/net.nehmer.static/config to Asgard: Configuring net.nehmer.static creates corrupt config snippet.

Changing component to asgard (since that is where it happened to me) and priority since this cannot be repaired by normal means (Asgard cannot access the broken snippet), but has to be done directly in the database.

It also renders the entire site unusable if the site's root topic happens to be a n.n.static one

02/27/09 16:25:23 changed by jval

Yes this happens when you touch component configuration in Asgard. I just tested this again using the latest version from the pear channel and the issue is still there. Now I get "Symlink content topic is invalid, see the debug level log for details." as Server Error (Error 500) on every other page than the front page. So this is indeed critical issue. :)

02/27/09 16:39:07 changed by jval

Actually first the front page worked but now that too gives me the same error. Perhaps caching was playing tricks on me or something.

03/02/09 13:49:12 changed by bergie

(In [20731]) Get correct value from select widgets to the config, refs #771

03/02/09 13:49:27 changed by bergie

(In [20732]) Minor tweaks to config editor, refs #771

03/02/09 13:49:38 changed by bergie

  • status changed from new to closed.
  • resolution set to fixed.

(In [20733]) Check that the generated configuration has no parse errors, fixes #771

03/02/09 14:42:43 changed by bergie

(In [20735]) Deal correctly with booleans too, refs #771

03/02/09 15:42:55 changed by bergie

(In [20737]) Load topic config correctly, refs #771