I just created an imagecache preset for D6.7 and ran it on my localhost as uid1. No imagecache settings were created. No errors.
I just created an imagecache preset for D6.7 and ran it on my localhost as uid1. No imagecache settings were created. No errors.
Comments
Comment #1
vaish commentedCould you please provide pattern code and list of modules that were available (not necessarily enabled) in your modules folder. Do yo want to say that the same code worked on D6.6? Did you try to run imagecache patterns provided in template.xml?
Comment #2
senpai commentedOk, I'll email you the Pattern I used, and the list of modules in this Pattern will be exactly what's running on the site right now. Also, I have no idea if it worked on D6.6 cause I only wrote in the imagecache presets yesterday. :-)
Oh, and yes, I copied them from the template.xml and modified them to suit.
Comment #3
vaish commentedImagecache pattern works fine but I found several other problems in your file.
1. XML not valid.
At the moment, patterns module doesn't validate XML file so you need to make sure it's valid yourself. XML validation is one of our high priorities and should be implemented very soon.
2. You can't use HTML code within the XML tags. XML is parsing tag values and it will interpret you HTML tags as additional nested XML tags. This can produce really weird results.
In order to insert HTML or PHP inside XML tags you need to use CDATA. This is not tested at the moment and I can't guarantee it's working properly. Again, it's on our list of high priorities.
3. You should specify only valid content types within term's node tag. This was a reason for your pattern failing. You had 'sponsor' and 'session' content types listed there but they were not existing in the system yet. If this error is encountered, execution will stop and you will get the following error:
* An illegal choice has been detected. Please contact the site administrator. (this part is produced by form validation of taxonomy module)
* An error occurred while executing action #13 (Taxonomy: Add or edit vocabulary) (this is added by patterns module to clarify the above error)
However, you mentioned that no errors were reported, so I'm really curious how that could happen. Can you look into that again and confirm that you didn't get above mentioned error.
Here are some useful tips for writing and testing patterns.
1. Make sure XML is valid before running the pattern
2. if you encounter a problem, isolate it by creating mini-pattern containing only action(s) that you are testing. In that way you eliminate possibility of other code influencing your test.
Comment #4
vaish commentedOops, I forgot to mention another one:
4. all the tags should always be placed within action tag. The only sections outside 'actions' tag are 'info' and 'modules'. In your file you had 'role' and 'permissions' on the same level as info and actions.
Comment #5
senpai commentedRegarding #4, I'll be sure to document that. Thanks!
Comment #6
vaish commented