Judah Raine
Total posts: 332
16 Nov 2012 03:43

Hi there, did you miss me? :D I've been trying to be good and not worry you too much....

I have purchased and installed the Spiral Scripts Featured Module but when I enable the module I get the following error:

Fatal error: Cannot use string offset as an array in /home/classicr/public_html/components/com_cobalt/fields/url/tmpl/output/default.php on line 16

Not sure if I should be asking you, but as it's a cobalt file that's mentioned I'm starting here.

The line in the file reads:

<?php echo JHtml::link('http://' . $value[0]['url'], ($value[0]['label'] != '' ? $value[0]['label'] : $value[0]['url']), $options);?>

I did look in the spiral scripts forum but did not find anything relating to this.

I would appreciate your help.

Thanks!

Last Modified: 02 Mar 2014


Sergey
Total posts: 13,748
17 Nov 2012 09:38

Please add at line 14

var_dump($value);

And tell me what it shows.


Judah Raine
Total posts: 332
17 Nov 2012 23:18

I have just this moment checked my mail and have received a file from spiral scripts - it appears that they did have the url field included in their module display which they have now added. It's working perfectly, but thanks for your help, much appreciated.

Powered by Cobalt