Closed (fixed)
Project:
Custom Formatters
Version:
6.x-1.5
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Jun 2011 at 09:22 UTC
Updated:
8 Sep 2011 at 10:11 UTC
I use
Insert 6.x-1.1
Custom formatters 6.x-1.5
Token 6.x-1.16
Custom formatters and Insert have stopped working properly together for some time.
I get WSOD when I try to edit my previous nodes that contain images inserted with Insert.
When I create a new node edit form open correctly, however if I try to upload an image with Insert nothing happens...
The problem seems related to Custom formatters. Indeed, if in my content type I deselect my custom formatters in the list of formatters for Insert all working again.
Is anybody else noticed this problem?
Comments
Comment #1
pfx commentedI specified that I use basic formatters like this
<a class="colorbox" href="/[filefield-filepath]" title="[filefield-title]"><img alt="[filefield-title]" class="imagecache-image220 imageenligne" src="/[filefield-imagecache-image220]" title="[filefield-title]"></a>The problem occurs even if I use "Example - image (basic)" for Insert as formatters.
Comment #2
himagarwal commentedI am having the same problem.
1. When I select custom formatter for insert in content type and try to upload an image, nothing happens. Image never loads.
2. When I try to edit the node where custom formatter was being used with insert, the edit page shows error.
3. If I disable the custom formatter for insert in content type, then everything works fine.
I'm using custom formatter for imagefield cck which has following format:
The problem is indeed with custom formatter.
Comment #3
joelstein commentedI'm having a similar problem on D7: #1231096: Insert integration causes fatal error on node edit
Comment #4
himagarwal commentedI have been waiting for a fix for this problem. It has been ages since this problem has been reported and haven't had a fix.
Comment #5
decipheredFixed and committed to 6.x-1.x.
Issue was that there was no Node object information being passed along to replace tokens with, which is due to the fact that there is no Node object until you create the node (after you've inserted the field). Not all tokens work.
Cheers,
Deciphered.
Comment #6
joelstein commentedThanks! Is a similar fix needed for the D7 version?
#1231096: Insert integration causes fatal error on node edit
Comment #7
himagarwal commentedThere's still an issue. Maybe new one with 6.x-1.x-dev.
Now, when I try to enable the custom formatters through module page it shows a blank page in my debian server. And, the whole website now shows a blank page.
But, in another serve it shows following problem when try to enable it through module page. The whole website now shows this error.
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /sites/all/modules/custom_formatters/custom_formatters.module on line 31Comment #8
decipheredFix committed.... don't know how that slipped in there.
@joelstein
No need in D7, however the contextual links functionality is an issue with insert, but you can disable that.
Comment #9
himagarwal commentedThank you so much for the fix Deciphered.
But, it still has some problems with token output when used with Insert module.
Custom formatters is outputting "blank" for tokens like: [node-type], [filefield-title], [filefield-alt].
However, it was able to output tokens like: [site-url], [filefield-description], [filefield-filepath], [filefield-imagecache-????]
There are other many tokens which are showing blank and some others are even outputting the token code itself like: [node-date] in page.
I used "basic" mode with field type as "file" in custom formatters settings. And, use this custom formatter with ImageField module for uploading image in node.