Normally i can add images to my node with the use of the imagefield module.
The editform shows a button to upload an image and everything is ok

Last week i upgraded to PHP 5.3 and now there are some problems:

The imagefield placeholder is still at the edit form, but the actual inputbox/button is gone. There is no possibility to add images.

I looked at the HTML of the edit form and can see that some fields are missing:

image: Order
-101
-101

The Drupal logs says the following:

Type php
Date Wednesday, September 1, 2010 - 12:46
User rein
Location http://mysite.com/admin/build/modules
Referrer http://mysite.com/node/2463/edit
Message Function ereg() is deprecated in /home/mysite/public_html/includes/file.inc on line 895.
Severity error

I have a lot of ereg() depreciated messages in my log (more than 100 per page request)

Comments

xvoid@drupal.org’s picture

Here is the HTML of the form. You can see some fields are missing.

<div id="field-blogimage-items"><table id="field_blogimage_values" class="content-multiple-table sticky-enabled">
 <thead><tr><th colspan="2">image: </th><th>Order</th> </tr></thead>
<tbody>
 <tr class="draggable odd"><td class="content-multiple-drag"></td><td></td><td class="delta-order"><div class="form-item" id="edit-field-blogimage-0--weight-wrapper">
 <select name="field_blogimage[0][_weight]" class="form-select field_blogimage-delta-order" id="edit-field-blogimage-0--weight" ><option value="-1">-1</option><option value="0" selected="selected">0</option><option value="1">1</option></select>

</div>
</td> </tr>
 <tr class="draggable even"><td class="content-multiple-drag"></td><td></td><td class="delta-order"><div class="form-item" id="edit-field-blogimage-1--weight-wrapper">
 <select name="field_blogimage[1][_weight]" class="form-select field_blogimage-delta-order" id="edit-field-blogimage-1--weight" ><option value="-1">-1</option><option value="0">0</option><option value="1" selected="selected">1</option></select>
</div>
</td> </tr>
</tbody>
</table>
<div class="content-add-more clear-block"><input type="submit" name="field_blogimage_add_more" id="edit-field-blogimage-field-blogimage-add-more" value="Add another item"  class="form-submit" />
</div></div>
xvoid@drupal.org’s picture

This looks like a duplicate of http://drupal.org/node/581074

I will try the resolution of http://drupal.org/node/581074 and report back to tell you if this is a solution or not.

quicksketch’s picture

Thanks. I should note that Drupal 6 is not compatible with PHP 5.3 at all, considering we use ereg in several core functions. I'd strongly suggest sticking with 5.2.x until Drupal 7 (which will actually require 5.2 or higher).

quicksketch’s picture

Status: Active » Closed (duplicate)