Page 1 of 1

Notice: Undefined index | Undefined offset

Posted: Tue 22. Jan 2013, 00:48
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)

Re: Notice: Undefined index | Undefined offset

Posted: Thu 27. Jun 2013, 20:36
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

Re: Notice: Undefined index | Undefined offset

Posted: Fri 28. Jun 2013, 19:39
by juergen
You better should cut off sending notices ... these are no errors at all !

Re: Notice: Undefined index | Undefined offset

Posted: Sun 30. Jun 2013, 07:36
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.