Hi

I ran into this error:

Fatal error: Cannot use string offset as an array in /srv/www/vhosts/trilogos.ch/httpdocs/sites/all/modules/aef_image/aef_image.module on line 629

The screen is completely blank.
Any clue how to solve this?

CommentFileSizeAuthor
#4 aef_image.module.zip7.99 KBstefan81

Comments

stefan81’s picture

Ok, I figured the following:
I am using draggable views to order book pages.
After I reorder the book pages, I get this error on pages with aef_image.

The page is either blank on "view", or when clicking "edit".
I the second case, the aef_image is not visible.

I also posted a questions at draggableviews: http://drupal.org/node/776094

Thanks!
Stefan

lipinponmala007’s picture

can you share the code please .when i develop drupal modules i got many times such error. i was just able to solve anyway.

stefan81’s picture

Hi, Thanks for your reply!

Unfortunately, I am not a coder,
and can't be much of a help...

I attached file "aef_image.module" the following post, as I can't post it here.

But I have somehow the impression that probably the draggableviews module ( http://drupal.org/project/draggableviews ) is altering more data than it should.
Because if I reorder pages with the drupal native book manager, everything works fine.
I am using this view with the draggable views book handler:

$view = new view;
$view->name = 'Elementi_Ordnen';
$view->description = 'Inhaltsverzeichnis ordnen';
$view->tag = '';
$view->view_php = '';
$view->base_table = 'node';
$view->is_cacheable = FALSE;
$view->api_version = 2;
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->override_option('relationships', array(
  'nid' => array(
    'label' => 'Book parent',
    'required' => 0,
    'id' => 'nid',
    'table' => 'book_parent',
    'field' => 'nid',
    'override' => array(
      'button' => 'Override',
    ),
    'relationship' => 'none',
  ),
));
$handler->override_option('fields', array(
  'title' => array(
    'label' => 'Titel',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'target' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'strip_tags' => 0,
      'html' => 0,
    ),
    'empty' => '',
    'hide_empty' => 0,
    'empty_zero' => 0,
    'link_to_node' => 1,
    'exclude' => 0,
    'id' => 'title',
    'table' => 'node',
    'field' => 'title',
    'override' => array(
      'button' => 'Übersteuern',
    ),
    'relationship' => 'none',
  ),
  'weight' => array(
    'label' => 'Weight',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'strip_tags' => 0,
      'html' => 0,
    ),
    'set_precision' => FALSE,
    'precision' => 0,
    'decimal' => '.',
    'separator' => ',',
    'prefix' => '',
    'suffix' => '',
    'exclude' => 0,
    'id' => 'weight',
    'table' => 'book_menu_links',
    'field' => 'weight',
    'relationship' => 'none',
  ),
  'nid_1' => array(
    'label' => 'Parent Nid',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'strip_tags' => 0,
      'html' => 0,
    ),
    'link_to_node' => 0,
    'exclude' => 0,
    'id' => 'nid_1',
    'table' => 'node',
    'field' => 'nid',
    'override' => array(
      'button' => 'Override',
    ),
    'relationship' => 'nid',
  ),
  'timestamp' => array(
    'label' => 'Aktualisiert',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'target' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'strip_tags' => 0,
      'html' => 0,
    ),
    'empty' => '',
    'hide_empty' => 0,
    'empty_zero' => 0,
    'date_format' => 'custom',
    'custom_date_format' => 'd.m.Y H:i',
    'exclude' => 0,
    'id' => 'timestamp',
    'table' => 'node_revisions',
    'field' => 'timestamp',
    'override' => array(
      'button' => 'Übersteuern',
    ),
    'relationship' => 'none',
  ),
  'name' => array(
    'label' => 'von',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'target' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'strip_tags' => 0,
      'html' => 0,
    ),
    'empty' => '',
    'hide_empty' => 0,
    'empty_zero' => 0,
    'link_to_user' => 0,
    'overwrite_anonymous' => 0,
    'anonymous_text' => '',
    'exclude' => 0,
    'id' => 'name',
    'table' => 'users',
    'field' => 'name',
    'override' => array(
      'button' => 'Übersteuern',
    ),
    'relationship' => 'none',
  ),
  'nid' => array(
    'label' => '',
    'alter' => array(
      'alter_text' => 1,
      'text' => 'bearbeiten',
      'make_link' => 1,
      'path' => 'node/[nid]/edit',
      'link_class' => '',
      'alt' => 'Seite bearbeiten',
      'prefix' => '',
      'suffix' => '',
      'target' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'strip_tags' => 0,
      'html' => 0,
    ),
    'empty' => '',
    'hide_empty' => 0,
    'empty_zero' => 0,
    'link_to_node' => 0,
    'exclude' => 0,
    'id' => 'nid',
    'table' => 'node',
    'field' => 'nid',
    'override' => array(
      'button' => 'Übersteuern',
    ),
    'relationship' => 'none',
  ),
));
$handler->override_option('sorts', array(
  'weight_1' => array(
    'order' => 'ASC',
    'id' => 'weight_1',
    'table' => 'book_menu_links',
    'field' => 'weight',
    'override' => array(
      'button' => 'Override',
    ),
    'relationship' => 'none',
  ),
  'p' => array(
    'order' => 'ASC',
    'id' => 'p',
    'table' => 'book_menu_links',
    'field' => 'p',
    'override' => array(
      'button' => 'Override',
    ),
    'relationship' => 'none',
  ),
));
$handler->override_option('arguments', array(
  'p' => array(
    'default_action' => 'default',
    'style_plugin' => 'default_summary',
    'style_options' => array(),
    'wildcard' => 'all',
    'wildcard_substitution' => 'Alle',
    'title' => '',
    'breadcrumb' => '',
    'default_argument_type' => 'node',
    'default_argument' => '',
    'validate_type' => 'node',
    'validate_fail' => 'not found',
    'id' => 'p',
    'table' => 'draggableviews_book_book_parent',
    'field' => 'p',
    'validate_user_argument_type' => 'uid',
    'validate_user_roles' => array(
      '2' => 0,
      '3' => 0,
      '4' => 0,
    ),
    'override' => array(
      'button' => 'Übersteuern',
    ),
    'relationship' => 'none',
    'default_options_div_prefix' => '',
    'default_argument_user' => 0,
    'default_argument_fixed' => '32',
    'default_argument_php' => '',
    'validate_argument_node_type' => array(
      'elementi' => 'elementi',
      'diashow' => 0,
      'event' => 0,
      'gallery_romer' => 0,
      'home' => 0,
      'page' => 0,
      'press' => 0,
      'profile' => 0,
      'profile_cv' => 0,
      'publication' => 0,
      'webform' => 0,
    ),
    'validate_argument_node_access' => 1,
    'validate_argument_nid_type' => 'nid',
    'validate_argument_vocabulary' => array(
      '1' => 0,
      '2' => 0,
    ),
    'validate_argument_type' => 'tid',
    'validate_argument_transform' => 0,
    'validate_user_restrict_roles' => 0,
    'validate_argument_php' => '',
    'user_argument_type' => '',
    'restrict_user_roles' => 0,
    'user_roles' => array(),
  ),
));
$handler->override_option('access', array(
  'type' => 'role',
  'role' => array(
    '3' => 3,
  ),
));
$handler->override_option('cache', array(
  'type' => 'none',
));
$handler->override_option('title', 'Inhaltsverzeichnis ordnen');
$handler->override_option('empty', 'This book page doesn\'t contain any sub pages.');
$handler->override_option('empty_format', '1');
$handler->override_option('items_per_page', 0);
$handler->override_option('use_pager', '1');
$handler->override_option('style_plugin', 'draggabletable');
$handler->override_option('style_options', array(
  'override' => 1,
  'sticky' => 0,
  'order' => 'asc',
  'columns' => array(
    'title' => 'title',
    'name' => 'name',
    'nid' => 'nid',
    'weight' => 'weight',
    'nid_1' => 'nid_1',
  ),
  'info' => array(
    'title' => array(
      'sortable' => 0,
      'separator' => '',
    ),
    'name' => array(
      'sortable' => 0,
      'separator' => '',
    ),
    'nid' => array(
      'sortable' => 0,
      'separator' => '',
    ),
    'weight' => array(
      'sortable' => 0,
      'separator' => '',
    ),
    'nid_1' => array(
      'sortable' => 0,
      'separator' => '',
    ),
  ),
  'default' => '-1',
  'tabledrag_hierarchy' => array(
    'field' => 'nid_1',
    'handler' => 'book',
  ),
  'tabledrag_order' => array(
    'field' => 'weight',
    'handler' => 'book',
  ),
  'draggableviews_extensions' => array(
    'extension_top' => '3',
    'extension_bottom' => '3',
  ),
  'tabledrag_order_visible' => array(
    'visible' => 0,
  ),
  'tabledrag_hierarchy_visible' => array(
    'visible' => 0,
  ),
  'draggableviews_depth_limit' => '-1',
  'draggableviews_repair' => array(
    'repair' => 'repair',
  ),
  'tabledrag_types_add' => 'Add type',
  'tabledrag_expand' => array(
    'expand_links' => 'expand_links',
    'collapsed' => 0,
    'by_uid' => 0,
  ),
  'tabledrag_lock' => array(
    'lock' => 0,
  ),
  'draggableviews_default_on_top' => '1',
  'draggableviews_button_text' => 'Speichern',
  'draggableviews_arguments' => array(
    'use_args' => 0,
  ),
  'draggableviews_book_radios' => '0',
  'draggableviews_book_argument' => 'p',
  'draggableviews_book_filter' => 'none',
));
$handler = $view->new_display('page', 'Page', 'page_1');
$handler->override_option('path', 'node/%/inhaltsverzeichnis-ordnen');
$handler->override_option('menu', array(
  'type' => 'tab',
  'title' => 'Ordnen',
  'description' => '',
  'weight' => '10',
  'name' => 'primary-links',
));
$handler->override_option('tab_options', array(
  'type' => 'none',
  'title' => '',
  'description' => '',
  'weight' => 0,
  'name' => 'navigation',
));
stefan81’s picture

StatusFileSize
new7.99 KB

"aef_image.module"

stefan81’s picture

Hi

I have still no clue what causes this message:

Fatal error: Cannot use string offset as an array in
/sites/all/modules/aef_image/aef_image.module on line 629

Any Ideas?

stefan81’s picture

ndeschildre’s picture

Hello!

This error I know well, it's pretty generic, and it's basically when you try to use a string as an offset in an array.
E.g.

$a = "boo";
$a['boo'] = "b"; //Work
$a['boo']['aa'] = "b"; //Won't work

So here:

<b>$infos['data']['presets'][$preset_name]['default_values']</b> = array(
              'x' => round(($preset_orig_image_width - $section_width)/2),
              'y' => round(($preset_orig_image_height - $section_height)/2),
              'width' => round($section_width),
              'height' => round($section_height),
            );

It would mean that $infos is a string? Weird.

The output of "print_r($infos)" would be interesting to see, please.

Cheers,
Nicolas

stefan81’s picture

thanks for your input!

Unfortunately I have no experience with coding.
Where shall I place "print_r($infos)"?

stefan81’s picture

by the way if I delete the whole paragraph,
at least the blank screen goes away and the page loads.
(aef_image is broken though)

            $section_width = $preset_orig_image_width;
            $section_height = $preset_orig_image_height;
            $width_ratio = $preset['actions'][0]['data']['width'] / $preset_orig_image_width;
            $height_ratio = $preset['actions'][0]['data']['height'] / $preset_orig_image_height;
            if($width_ratio < $height_ratio)
            {
              $main_ratio = $width_ratio / $height_ratio;
              $section_width *= $main_ratio;
            }
            else
            {
              $main_ratio = $height_ratio / $width_ratio;
              $section_height *= $main_ratio;
            }

            $infos['data']['presets'][$preset_name]['default_values'] = array(
              'x' => round(($preset_orig_image_width - $section_width)/2),
              'y' => round(($preset_orig_image_height - $section_height)/2),
              'width' => round($section_width),
              'height' => round($section_height),
            );
stefan81’s picture

by deleting the mentioned paragraph,
I still get this error:

Fatal error: Cannot use string offset as an array in /srv/www/vhosts/trilogos.ch/httpdocs/sites/all/modules/aef_image/aef_image.module on line 621

but again, this only happened on pages, I reordered with draggable views (book handler).

stefan81’s picture

sorry for nagging.
Any clue what this could be?

lipinponmala007’s picture

i couln't produce that error man

ok .can you please chage on line 629
$infos['data']['presets'][$preset_name]['default_values']
to

$infos['data'] in this attachmen tfile?
and check the out put please

and an error will be there. please sent me that error.

and also after the

$infos['data']['presets'][$preset_name]['default_values'] = array(
'x' => round(($preset_orig_image_width - $section_width)/2),
'y' => round(($preset_orig_image_height - $section_height)/2),
'width' => round($section_width),
'height' => round($section_height),
);
print_r(infos);

you will see some thing interesting

stefan81’s picture

Hi, thanks for your kind help!

My results:
- Damaged page appears again :)
- some strange layout behaviours.
- infosinfosinfos at the top of the page.
- aef images don't show up. Visible in page edit though.
- Error (drupal generated error in red box) at page edit:

warning: Division by zero in /srv/www/vhosts/trilogos.ch/httpdocs/sites/all/modules/aef_image/aef_image_field.inc on line 818.
warning: Division by zero in /srv/www/vhosts/trilogos.ch/httpdocs/sites/all/modules/aef_image/aef_image_field.inc on line 818.
warning: Division by zero in /srv/www/vhosts/trilogos.ch/httpdocs/sites/all/modules/aef_image/aef_image_field.inc on line 818.
warning: Division by zero in /srv/www/vhosts/trilogos.ch/httpdocs/sites/all/modules/aef_image/aef_image_field.inc on line 818.
warning: Division by zero in /srv/www/vhosts/trilogos.ch/httpdocs/sites/all/modules/aef_image/aef_image_field.inc on line 818.
warning: Division by zero in /srv/www/vhosts/trilogos.ch/httpdocs/sites/all/modules/aef_image/aef_image_field.inc on line 818.
warning: Division by zero in /srv/www/vhosts/trilogos.ch/httpdocs/sites/all/modules/aef_image/aef_image_field.inc on line 818.
warning: Division by zero in /srv/www/vhosts/trilogos.ch/httpdocs/sites/all/modules/aef_image/aef_image_field.inc on line 818.
warning: Division by zero in /srv/www/vhosts/trilogos.ch/httpdocs/sites/all/modules/aef_image/aef_image_field.inc on line 818.
lipinponmala007’s picture

if the above is to understand the current value of $infos

make the code as older that means the uploaded condition

then for you information
in line 549 the info is declared so
the $item must be an array
and $infos must must be initialized as an array
so after line 547
please insert

$infos=array();

then run the code and see whether the error is still there

lipinponmala007’s picture

ho ho ho @ comment #12 it was a mistake by me i missed to put the "$sign"

Really sorry for that please for give me

so please change print_r($infos) instead of print_r(infos) and give me the result please

stefan81’s picture

hi

It works with the following:

$infos['data']['presets'][$preset_name]['default_values'] = array(
'x' => round(($preset_orig_image_width - $section_width)/2),
'y' => round(($preset_orig_image_height - $section_height)/2),
'width' => round($section_width),
'height' => round($section_height),
);

and on line 548 I added $infos=array();. In context it looks like:

function _aef_image_creator_fetch_data($item, $preset_names = array())
{
  $infos=array();
  _aef_image_unserialize_data($item['data']);
  $infos = $item;
stefan81’s picture

hmm, still get this Fatal error: Cannot use string offset as an array in /srv/www/vhosts/trilogos.ch/httpdocs/sites/all/modules/aef_image/aef_image.module on line 630 on other pages damaged (after using draggable views)...

stefan81’s picture

but the page appears after deleting this: ['data']['presets'][$preset_name]['default_values']

$infos['data'] = array(
'x' => round(($preset_orig_image_width - $section_width)/2),
'y' => round(($preset_orig_image_height - $section_height)/2),
'width' => round($section_width),
'height' => round($section_height),
);

on page edit again error:

warning: Division by zero in /srv/www/vhosts/trilogos.ch/httpdocs/sites/all/modules/aef_image/aef_image_field.inc on line 818.
warning: Division by zero in /srv/www/vhosts/trilogos.ch/httpdocs/sites/all/modules/aef_image/aef_image_field.inc on line 818.
warning: Division by zero in /srv/www/vhosts/trilogos.ch/httpdocs/sites/all/modules/aef_image/aef_image_field.inc on line 818.
warning: Division by zero in /srv/www/vhosts/trilogos.ch/httpdocs/sites/all/modules/aef_image/aef_image_field.inc on line 818.
warning: Division by zero in /srv/www/vhosts/trilogos.ch/httpdocs/sites/all/modules/aef_image/aef_image_field.inc on line 818.
warning: Division by zero in /srv/www/vhosts/trilogos.ch/httpdocs/sites/all/modules/aef_image/aef_image_field.inc on line 818.
warning: Division by zero in /srv/www/vhosts/trilogos.ch/httpdocs/sites/all/modules/aef_image/aef_image_field.inc on line 818.
warning: Division by zero in /srv/www/vhosts/trilogos.ch/httpdocs/sites/all/modules/aef_image/aef_image_field.inc on line 818.
warning: Division by zero in /srv/www/vhosts/trilogos.ch/httpdocs/sites/all/modules/aef_image/aef_image_field.inc on line 818.
warning: Division by zero in /srv/www/vhosts/trilogos.ch/httpdocs/sites/all/modules/aef_image/aef_image_field.inc on line 818.
warning: Division by zero in /srv/www/vhosts/trilogos.ch/httpdocs/sites/all/modules/aef_image/aef_image_field.inc on line 818.
warning: Division by zero in /srv/www/vhosts/trilogos.ch/httpdocs/sites/all/modules/aef_image/aef_image_field.inc on line 818.
warning: Division by zero in /srv/www/vhosts/trilogos.ch/httpdocs/sites/all/modules/aef_image/aef_image_field.inc on line 818.
warning: Division by zero in /srv/www/vhosts/trilogos.ch/httpdocs/sites/all/modules/aef_image/aef_image_field.inc on line 818.
warning: Division by zero in /srv/www/vhosts/trilogos.ch/httpdocs/sites/all/modules/aef_image/aef_image_field.inc on line 818.
warning: Division by zero in /srv/www/vhosts/trilogos.ch/httpdocs/sites/all/modules/aef_image/aef_image_field.inc on line 818.
warning: Division by zero in /srv/www/vhosts/trilogos.ch/httpdocs/sites/all/modules/aef_image/aef_image_field.inc on line 818.
warning: Division by zero in /srv/www/vhosts/trilogos.ch/httpdocs/sites/all/modules/aef_image/aef_image_field.inc on line 818.
warning: Division by zero in /srv/www/vhosts/trilogos.ch/httpdocs/sites/all/modules/aef_image/aef_image_field.inc on line 818.
warning: Division by zero in /srv/www/vhosts/trilogos.ch/httpdocs/sites/all/modules/aef_image/aef_image_field.inc on line 818.
warning: Division by zero in /srv/www/vhosts/trilogos.ch/httpdocs/sites/all/modules/aef_image/aef_image_field.inc on line 818.
warning: Division by zero in /srv/www/vhosts/trilogos.ch/httpdocs/sites/all/modules/aef_image/aef_image_field.inc on line 818.
warning: Division by zero in /srv/www/vhosts/trilogos.ch/httpdocs/sites/all/modules/aef_image/aef_image_field.inc on line 818.
warning: Division by zero in /srv/www/vhosts/trilogos.ch/httpdocs/sites/all/modules/aef_image/aef_image_field.inc on line 818.

by the way: an other info output:

Array ( [nid] => 0 [fid] => 978 [data] => Array ( [x] => 23 [y] => 0 [width] => 1087 [height] => 815 ) [image_infos] => Array ( [fid] => 978 [uid] => 16 [filename] => 2_Abschlusspruefung_von_Judith_Salai_zur_Medialen_Uebungsleiterin_p2.jpg [filepath] => sites/default/files/2_Abschlusspruefung_von_Judith_Salai_zur_Medialen_Uebungsleiterin_p2.jpg [filemime] => image/jpeg [filesize] => 465181 [status] => 1 [timestamp] => 1268408595 [width] => 1132 [height] => 815 [extension] => jpg [file_size] => 465181 [mime_type] => image/jpeg ) ) Array ( [nid] => 0 [fid] => 3601 [data] => Array ( [x] => 0 [y] => 5 [width] => 547 [height] => 410 ) [image_infos] => Array ( [fid] => 3601 [uid] => 1 [filename] => 01b_02.jpg [filepath] => sites/default/files/01b_02_25.jpg [filemime] => image/jpeg [filesize] => 128329 [status] => 1 [timestamp] => 1269325269 [width] => 547 [height] => 420 [extension] => jpg [file_size] => 128329 [mime_type] => image/jpeg ) ) Array ( [nid] => 0 [fid] => 3607 [data] => Array ( [x] => 0 [y] => 0 [width] => 560 [height] => 420 ) [image_infos] => Array ( [fid] => 3607 [uid] => 1 [filename] => 01a_01.jpg [filepath] => sites/default/files/01a_01_16.jpg [filemime] => image/jpeg [filesize] => 87850 [status] => 1 [timestamp] => 1269325445 [width] => 560 [height] => 420 [extension] => jpg [file_size] => 87850 [mime_type] => image/jpeg ) ) Array ( [nid] => 0 [fid] => 3609 [data] => Array ( [x] => 0 [y] => 123 [width] => 420 [height] => 315 ) [image_infos] => Array ( [fid] => 3609 [uid] => 1 [filename] => 01a_02.jpg [filepath] => sites/default/files/01a_02_6.jpg [filemime] => image/jpeg [filesize] => 67985 [status] => 1 [timestamp] => 1269325452 [width] => 420 [height] => 560 [extension] => jpg [file_size] => 67985 [mime_type] => image/jpeg ) ) Array ( [nid] => 0 [fid] => 3610 [data] => Array ( [x] => 0 [y] => 123 [width] => 420 [height] => 315 ) [image_infos] => Array ( [fid] => 3610 [uid] => 1 [filename] => 01e_02.jpg [filepath] => sites/default/files/01e_02_18.jpg [filemime] => image/jpeg [filesize] => 94021 [status] => 1 [timestamp] => 1269325531 [width] => 420 [height] => 560 [extension] => jpg [file_size] => 94021 [mime_type] => image/jpeg ) ) Array ( [nid] => 0 [fid] => 3612 [data] => Array ( [x] => 0 [y] => 123 [width] => 420 [height] => 315 ) [image_infos] => Array ( [fid] => 3612 [uid] => 1 [filename] => 01e_04.jpg [filepath] => sites/default/files/01e_04_18.jpg [filemime] => image/jpeg [filesize] => 79729 [status] => 1 [timestamp] => 1269325540 [width] => 420 [height] => 560 [extension] => jpg [file_size] => 79729 [mime_type] => image/jpeg ) ) Array ( [nid] => 0 [fid] => 3603 [data] => Array ( [x] => 0 [y] => 16 [width] => 518 [height] => 389 ) [image_infos] => Array ( [fid] => 3603 [uid] => 1 [filename] => 01f_01.jpg [filepath] => sites/default/files/01f_01_25.jpg [filemime] => image/jpeg [filesize] => 50105 [status] => 1 [timestamp] => 1269325274 [width] => 518 [height] => 420 [extension] => jpg [file_size] => 50105 [mime_type] => image/jpeg ) ) Array ( [nid] => 0 [fid] => 3605 [data] => Array ( [x] => 56 [y] => 0 [width] => 237 [height] => 178 ) [image_infos] => Array ( [fid] => 3605 [uid] => 1 [filename] => 01f_03.jpg [filepath] => sites/default/files/01f_03_27.jpg [filemime] => image/jpeg [filesize] => 17368 [status] => 1 [timestamp] => 1269325291 [width] => 350 [height] => 178 [extension] => jpg [file_size] => 17368 [mime_type] => image/jpeg ) )
lipinponmala007’s picture

hi this means that(coment #18 ) the $infos is appearing correctly as an array. it fetches the informations of the image very correctly.
take back the code as the oldest form.
Now,is your dependency modules are installed correctly? you
please check the image cache settings brother .please send me that also.
check all the dependency module configurations also. i suspect there is a problem with your image cache configaration

i think there is an update for the uber image module http://drupal.org/project/aef_image can you try that ? in that the line 629 is different so please use that .please follow the updating process strictly.

sorry for the repeated asking of data because i couldn't produce that error here. And i wish we can solve the problem

gastonGlobant’s picture

I'm experiencing this bug currently.
And seems like a module's developer has tried to fix it somehow, by unserializing the "data" array a couple of times. The thing is.. that the "data" array is getting serialized even when it is already serialized, unlimited times, based on something (that I do not yet know).

I've seen the "data" array being serialized like 12 times, and I'm afraid, it gets serialized everytime I save a node (that contains an uberimage field).

I've "Fixed" the issue, just be increasing the amount of times the "data" array gets unserialized (check _aef_image_unserialize_data function and you will see).

Anybody knows where the data array gets serialized, and how to prevent it to get serialized more than once?

Thanks!