Judah Raine
Total posts: 332
02 Окт 2013 08:59

I'm getting the following on article display:

Notice: Undefined offset: 13 in /home/classicr/public_html/components/com_cobalt/views/record/tmpl/default_record_library.php on line 427

Notice: Trying to get property of non-object in /home/classicr/public_html/components/com_cobalt/views/record/tmpl/default_record_library.php on line 427

Notice: Undefined offset: 5 in /home/classicr/public_html/components/com_cobalt/views/record/tmpl/default_record_library.php on line 428

Notice: Trying to get property of non-object in /home/classicr/public_html/components/com_cobalt/views/record/tmpl/default_record_library.php on line 428

It only shows if I have the error reporting set, but I'm concerned that it may create problems?

Many thanks,

Jude

Последние изменения: 02 Март 2014


Judah Raine
Total posts: 332
02 Окт 2013 22:57

What I have found is that the above relates specifically to the two lines of affiliate code that I've been trying to insert. I will do some more homework, but if someone has a quick solution I'd appreciate it


Sergey
Total posts: 13,748
03 Окт 2013 04:22

Can you show what are those liken 427 and 428


Judah Raine
Total posts: 332
03 Окт 2013 07:21

It's seems what I thought were two issues now actually are one. They are both related to the affiliate code that I'm trying to insert (the topic on this forum is: http://support.mintjoomla.com/en/cobalt-8/questions/Affiliate +Buy+Links+not+displaying+correctly-4752.html)

The lines in question are in fact the lines of the affiliate code mentioned. Perhaps I should add this query to the other topic to save you time wasted going between them?


Sergey
Total posts: 13,748
03 Окт 2013 07:51

I want to see what is in the line 427 abd 428 in /home/classicr/public_html/components/com_cobalt/views/record/tmpl/default_record_library.php


Judah Raine
Total posts: 332
03 Окт 2013 08:52
fields_by_id[13]->result; ?>
fields_by_id[5]->result; ?>

Sergey
Total posts: 13,748
04 Окт 2013 03:55

There are no those fields. Either not set to be shown in the list or not filled. Use something like this.

fields_by_id[13])):?>
<div><?php echo $item->fields_by_id[13]->result; ?></div> 

Judah Raine
Total posts: 332
04 Окт 2013 05:36

Ah, thank you, I will try that.

Работает на Cobalt