Title: Illegal string offset error
Last modified: August 21, 2016

---

# Illegal string offset error

 *  [Romeo9](https://wordpress.org/support/users/romeo9/)
 * (@romeo9)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/illegal-string-offset-error/)
 * Hi everyone
 * I’m having a problem with a theme I’m using, I get the following error: Warning:
   Illegal string offset ‘param_name’ in (shows location) on line 75
    Warning: Illegal
   string offset ‘param_name’ in (shows location) on line 77 It repeats these two
   errors 6 times each. Now the code found on lines 75 and 77 are the following:
 * 72)if(!empty($attributes[‘params’])) {
    73) $attributes_keys = Array(); 74) foreach(
   $attributes[‘params’] as $attribute) { **75)** $key = array_search($attribute[‘
   param_name’], $attributes_keys); 76) if( $key === false ) { **77)** $attributes_keys[]
   = $attribute[‘param_name’]; 78) self::$sc[$name][‘params’][] = $attribute; 79)}
   else { 80) self::$sc[$name][‘params’][$key] = $attribute;
 * The information I’ve found so far suggests that PHP 5.4 is more strict with array
   operations, hence the error message.
 * Now my question is, how must the code be altered to make it work without errors?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/illegal-string-offset-error/#post-3909045)
 * What theme?
 *  Thread Starter [Romeo9](https://wordpress.org/support/users/romeo9/)
 * (@romeo9)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/illegal-string-offset-error/#post-3909107)
 * The theme is DynamiX and it’s version 3.0.2
 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/illegal-string-offset-error/#post-3909108)
 * You’ll really need to consult the developer – as these forums don’t support commercial
   products, sorry.
 * [http://themeforest.net/item/dynamix-premium-wordpress-theme/113901](http://themeforest.net/item/dynamix-premium-wordpress-theme/113901)

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Illegal string offset error’ is closed to new replies.

## Tags

 * [illegal string offset](https://wordpress.org/support/topic-tag/illegal-string-offset/)

 * 3 replies
 * 2 participants
 * Last reply from: [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/illegal-string-offset-error/#post-3909108)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
