I have set a Content Template where I call $node->field_pics[0]['view'], $node->field_pics[1]['view'] and $node->field_pics[2]['view'] which are 3 pictures configured throught the Edit option of the node.
I have just installed latest version (1.17). Since then all this 3 pictures are repeated. The only one showing (3 times) is the last one (field_pics[2]). If I go to the Edit page, all image URLs are OK. But the URL shown in the imageshack ID link is wrong. Example:
*** NODE EDIT PAGE ***
Image 1:
URL: http://img25.imageshack.us/img25/2105/pes101.jpg
(imageshack ID: pes101.jpg) links to: http://img39.imageshack.us/my.php?image=pes101.jpg
Image 2:
URL: http://img38.imageshack.us/img38/253/pes102o.jpg
(imageshack ID: pes101.jpg) links to: http://img39.imageshack.us/my.php?image=pes102o.jpg
Image 3:
URL: http://img39.imageshack.us/img39/1286/pes103.jpg
(imageshack ID: pes101.jpg) links to: http://img39.imageshack.us/my.php?image=pes103.jpg
*** CONTENT TEMPLATE ***
<div>
<center>
<p><?php print $node->field_pics[0]['view'] ?></p>
<p><?php print $node->field_pics[1]['view'] ?></p>
<p><?php print $node->field_pics[2]['view'] ?></p>
</center>
</div>
*** PAGE RETURNED CODE ***
<div>
<center>
<p>
<img class="imageshack" width="550" title="" alt="" src="http://img39.imageshack.us/img39/1286/pes103.jpg"/>
</p>
<p>
<img class="imageshack" width="550" title="" alt="" src="http://img39.imageshack.us/img39/1286/pes103.jpg"/>
</p>
<p>
<img class="imageshack" width="550" title="" alt="" src="http://img39.imageshack.us/img39/1286/pes103.jpg"/>
</p>
</center>
</div>
As you can see:
1. imageshack ID link copy the server from last picture in all 3 links.
2. content template is correctly configured and was working correctly before upgrade.
3. code for the final page calls the same last picture 3 times.
*** NOTE ***
Problem is solved if a re-save the node.
Is there anyway to re-save all nodes in a batch?
I have tried to use the Reload Embedded Media Data from admin/content/node but I get:
Fatal error: Call to undefined function relevant_content_cck_content_is_empty() in /home/MYSITE/public_html/sites/all/modules/cck/content.module on line 906
Any ideas??
Thanks in advance!!
Comments
Comment #1
realOFF commentedAfter a little research, we have found the problem is in drup_content_field_pics.field_pics_data.
There the content is the same for the 3 deltas.
About the error when running Reload Embedded Media Data, I have disabled the Relevant Content CCK module which was causing trouble. However I get a timeout and just a few nodes are updated.
I need to recreate the data in drup_content_field_pics.field_pics_data for 1500+ nodes.
Any ideas on how to achieve this?
Comment #2
realOFF commentedI have gone through all the nodes re saving them one by one.
Thanks anyway.