Support for Sample Content Generator
Permalink
I'm using Sample Content Generator and I found what *may* be a bug in it but when I went to report it on the add-on support I found no option to file a report or contact support. Is that normal for free add-ons? Where should we file bug reports?
In case anyone is interested or needs a workaround this is what I found in 5.6.2.1 - not clear if this is a bug in the Sample Content Generator or the C5 installation of StartingPoints but it's a problem that requires manual XML editing to workaround.
forceImageToMatchDimensions Bug during StartingPoint Installation
The XML node <forceImageToMatchDimensions> sometimes has no value in your XML export from Sample Content Generator. This will lead a MySQL error such as the following error during import of your StartingPoint:
mysqlt error: [1064: 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 'altText='' WHERE bID=58' at line 1] in EXECUTE("UPDATE btContentImage SET fID=8,fOnstateID=0,maxWidth=0,maxHeight=0,externalLink='',internalLinkCID=0,forceImageToMatchDimensions=,altText='' WHERE bID=58")
It is unclear if that error is because the output from Sample Content Generator should be setting the value of <forceImageToMatchDimensions> to 0, or if the importer should be handling this writing valid SQL. As it stands you must search your XML for the following:
<forceImageToMatchDimensions><![CDATA[]]></forceImageToMatchDimensions>
And replace it with the valid:
<forceImageToMatchDimensions><![CDATA[0]]></forceImageToMatchDimensions>
In case anyone is interested or needs a workaround this is what I found in 5.6.2.1 - not clear if this is a bug in the Sample Content Generator or the C5 installation of StartingPoints but it's a problem that requires manual XML editing to workaround.
forceImageToMatchDimensions Bug during StartingPoint Installation
The XML node <forceImageToMatchDimensions> sometimes has no value in your XML export from Sample Content Generator. This will lead a MySQL error such as the following error during import of your StartingPoint:
mysqlt error: [1064: 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 'altText='' WHERE bID=58' at line 1] in EXECUTE("UPDATE btContentImage SET fID=8,fOnstateID=0,maxWidth=0,maxHeight=0,externalLink='',internalLinkCID=0,forceImageToMatchDimensions=,altText='' WHERE bID=58")
It is unclear if that error is because the output from Sample Content Generator should be setting the value of <forceImageToMatchDimensions> to 0, or if the importer should be handling this writing valid SQL. As it stands you must search your XML for the following:
<forceImageToMatchDimensions><![CDATA[]]></forceImageToMatchDimensions>
And replace it with the valid:
<forceImageToMatchDimensions><![CDATA[0]]></forceImageToMatchDimensions>
Thanks Sean, I posted the bug.
I don't see a bug posted on this. Are you sure it got posted successfully?
I'm not sure this is a bug. I would classify it as more of an 'abandoned feature'. I think Franz responded in another thread indicating that the concept of 'Starting Points' in general was running into bigger issues with licensing.
That being said, I'd love to re-invigorate the discussion on this because I believe it's a powerful competitive advantage if we can get it right.
I'm not sure this is a bug. I would classify it as more of an 'abandoned feature'. I think Franz responded in another thread indicating that the concept of 'Starting Points' in general was running into bigger issues with licensing.
That being said, I'd love to re-invigorate the discussion on this because I believe it's a powerful competitive advantage if we can get it right.
Thanks for noticing that mhawke, I think I got a validation error on my first bug report and then closed the window. Report is in now!http://www.concrete5.org/index.php?cID=581491...
I'm pretty excited about C5's XML import/export. StartingPoints could be very useful. Importing objects into live sites is probably even more (commonly) needed. You are correct that the idea of putting StartingPoints in the Marketplace is abandoned as Franz confirmed when I asked about it herehttp://www.concrete5.org/community/forums/chat/startingpoints-in-ma...
The pieces that make up the StartingPoints functionality though should be quite solid and here to stay. It's really the core installer itself that imports XML and the XML export functions of those objects that matter... Sample Content Generator is really just a helper that extends core Importer class and does nothing more than call the various functions. If there was more interest in StartingPoints I might rebuild it, I had a good look at the underlying importer and exporter classes when I built an addon for importing pages,http://www.concrete5.org/marketplace/addons/page-importer/...
I'm pretty excited about C5's XML import/export. StartingPoints could be very useful. Importing objects into live sites is probably even more (commonly) needed. You are correct that the idea of putting StartingPoints in the Marketplace is abandoned as Franz confirmed when I asked about it herehttp://www.concrete5.org/community/forums/chat/startingpoints-in-ma...
The pieces that make up the StartingPoints functionality though should be quite solid and here to stay. It's really the core installer itself that imports XML and the XML export functions of those objects that matter... Sample Content Generator is really just a helper that extends core Importer class and does nothing more than call the various functions. If there was more interest in StartingPoints I might rebuild it, I had a good look at the underlying importer and exporter classes when I built an addon for importing pages,http://www.concrete5.org/marketplace/addons/page-importer/...
Your page_importer must still be in the PRB because the link leads to a restricted area.
If you have the time, patience and knowledge to fix this, I urge you to do so. The problem I had when I started using it was the amount of slicing and dicing I had to do to pare down the XML for importing. For this to be a useful and elegant solution, it needs to 'just work'. Export from one site and import into another, period.
If you have the time, patience and knowledge to fix this, I urge you to do so. The problem I had when I started using it was the amount of slicing and dicing I had to do to pare down the XML for importing. For this to be a useful and elegant solution, it needs to 'just work'. Export from one site and import into another, period.
mhawke, I've come up with something I'm calling it Starting Point Generator. Here is a post about it http://www.concrete5.org/index.php?cID=584189...
Please try it out let me know how you find it working. On GitHub it'shttps://github.com/goldhatdev/starting_point_generator...
Please try it out let me know how you find it working. On GitHub it'shttps://github.com/goldhatdev/starting_point_generator...
http://www.concrete5.org/developers/bugs/5-6-2-1/...