Notice: Undefined index | Undefined offset

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
User avatar
Jensensen
Posts: 3000
Joined: Tue 17. Oct 2006, 21:11
Location: auf der mlauer

Notice: Undefined index | Undefined offset

Post by Jensensen »

Hi folks,
when using
cp_trig_sort_section_v13.php

for
Sorting of (template) areas

as it has been described here:
http://www.phpwcms-howto.de/wiki/doku.p ... t-of-areas
http://www.phpwcms-howto.de/wiki/doku.p ... rt-section

I get some strange errors:

Code: Select all

Notice: Undefined index: content in .../template/inc_script/frontend_init/cp_trig_sort_section_v13.php on line 85
Notice: Undefined offset: 1 in .../template/inc_script/frontend_init/cp_trig_sort_section_v13.php on line 85
Notice: Undefined offset: 2 in .../template/inc_script/frontend_init/cp_trig_sort_section_v13.php on line 85
Notice: Undefined offset: 1 in .../template/inc_script/frontend_init/cp_trig_sort_section_v13.php on line 79
Notice: Undefined offset: 3 in .../template/inc_script/frontend_init/cp_trig_sort_section_v13.php on line 85
Notice: Undefined offset: 1 in .../template/inc_script/frontend_init/cp_trig_sort_section_v13.php on line 79
Notice: Undefined offset: 1 in .../template/inc_script/frontend_init/cp_trig_sort_section_v13.php on line 79
What's wrong?
Thank you in advance.

I'm using version phpwcms 1.6.528 (2013/01/16, r528)
{so_much} | Knick-Knack. | GitHub
Umlaute im URL sind meistens immer Kacke.
jurassicpork
Posts: 1
Joined: Thu 27. Jun 2013, 20:08

Re: Notice: Undefined index | Undefined offset

Post by jurassicpork »

I am getting an error that looks very much like yours.

Notice: Undefined index: content in .../template/inc_script/frontend_init/cp_trig_sort_section_v13.php on line 85

Did you manage to get it working in the end?

Please if you read this do let me know

________________________________
Free hosting
Last edited by jurassicpork on Mon 16. Sep 2013, 12:27, edited 2 times in total.
User avatar
juergen
Moderator
Posts: 4556
Joined: Mon 10. Jan 2005, 18:10
Location: Weinheim
Contact:

Re: Notice: Undefined index | Undefined offset

Post by juergen »

You better should cut off sending notices ... these are no errors at all !
User avatar
Oliver Georgi
Site Admin
Posts: 9892
Joined: Fri 3. Oct 2003, 22:22
Contact:

Re: Notice: Undefined index | Undefined offset

Post by Oliver Georgi »

Oh, it really means something goes wrong here or the script is doing something too early or just is not checking every condition.

But as far I see, the script is not respecting that many things might fail. Several preg_match which can result with FALSE than what is expected. Then foreach always filling a var not set.

Pretty buggy at all … needs some work.
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
Post Reply