yes, mm_rules.inc.php is untouched - perhaps I had a problem with the path to that file? I’ll check.
Thanks. I already fixed it by adding my own rules to my chunk. Thanks for the great work on this update!
Quote from: towerofbabel at Jul 08, 2008, 03:36 AM
yes, mm_rules.inc.php is untouched - perhaps I had a problem with the path to that file? I’ll check.
No, there’s no problem -- it is trying to run the rules in this file, but you don’t have the same TVs, so it’s causing an error. You need to replace all the rules in it with your own OR put your rules in the chunk.
It would be nice
The best MM since integrating the rules chunk! Next we get a nice form based user interface instead of this chunk?
// All
mm_hideFields('link_attributes,introtext');
mm_renameField('pagetitle','Seitentitel', '', '', 'Wird im Browser ganz oben angezeigt');
mm_renameField('longtitle','Überschrift', '', '', 'Die erste Ueberschrift auf der Seite, bei Reisen der Reisename');
mm_hideSections('content', '', '8,9,12');
mm_renameSection('tvs', 'Weitere Felder');
mm_widget_showimagetvs();
// Reisen template
mm_renameSection('content', 'Reisebeschreibung', '', '11');« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« Execution of a query to the database failed - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 »
SQL: SELECT name FROM `DBxxxxx`.`modx_site_tmplvars` tvs LEFT JOIN `DBxxxxx`.`modx_site_tmplvar_templates` rel ON rel.tmplvarid = tvs.id WHERE 1=1 AND type IN ('image') AND rel.templateid =
Getting an error in creating new documents. Buttons "save / duplicate / delete / cancel" disappear in the top, at bottom I get a parse error (look further down). I have MM v0.3 and this chunk:
$cur_tpl = ' AND rel.templateid = '.$tpl_id;
$cur_tpl = !empty($tpl_id) ? ' AND rel.templateid = ' . $tpl_id : '';
Getting an error in creating new documents. Buttons "save / duplicate / delete / cancel" disappear in the top, at bottom I get a parse error (look further down). I have MM v0.3 and this chunk:
// All mm_hideFields('link_attributes,introtext'); mm_renameField('pagetitle','Seitentitel', '', '', 'Wird im Browser ganz oben angezeigt'); mm_renameField('longtitle','Überschrift', '', '', 'Die erste Ueberschrift auf der Seite, bei Reisen der Reisename'); mm_hideSections('content', '', '8,9,12'); mm_renameSection('tvs', 'Weitere Felder'); mm_widget_showimagetvs(); // Reisen template mm_renameSection('content', 'Reisebeschreibung', '', '11');
The error given is
« MODx Parse Error » MODx encountered the following error while attempting to parse the requested resource: « Execution of a query to the database failed - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 » SQL: SELECT name FROM `DBxxxxx`.`modx_site_tmplvars` tvs LEFT JOIN `DBxxxxx`.`modx_site_tmplvar_templates` rel ON rel.tmplvarid = tvs.id WHERE 1=1 AND type IN ('image') AND rel.templateid =
Any ideas? Thanks.
EDIT: Must be a problem with the mm_widget_showimagetvs(). Commented out the error disappears.
Same error, but different cause. If you removed the default line "mm_widget_tags(’blogTags’);" from mm_rules.inc.php it would go away.
Same error I got above - it only went away for me when I put rules in my mm_rules chunk.
This discussion is closed to further replies. Keep calm and carry on.