We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 15566
    • 73 Posts
    I am getting an error when duplicating a page:

    INSERT INTO `*******`.`modx_site_content`
     (type,contentType,pagetitle,longtitle,description,alias,link_attributes,published,pub_date,
    unpub_date,parent,isfolder,introtext,content,richtext,template,menuindex,searchable,cacheable,
    createdby,createdon,editedby,editedon,deleted,deletedon,deletedby,publishedon,publishedby,menutitle,
    donthit,haskeywords,hasmetatags,privateweb,privatemgr,content_dispo,hidemenu,barname,pw1,pw2,pw3,
    postcode,address,long,lat,phone,fax,email,manager,dummy) VALUES('document','text/html','title','','',
    '','0','0','0','276','0','copy','1','12','3','1','1','1','1258461483','0','0','0','0','0',
    '1250273898','1','','0','0','0','0','0','0','0','','','','','','','',
    '','','','','','') 


    Looking at the code, barname,postcode,address,long,lat,phone,fax,email,manager and dummy shouldn’t be trying to insert themselves into site_content. Some of these are old tmpl_vars, some are currently used (but not on the template I am using) and some I don’t recognise at all (although maybe these are old too).

    This happened in v 1.0.0 I have just upgraded and it is still there in 1.0.2

    Any ideas?